TWI469604B - Router and method of remote booting using the router - Google Patents
Router and method of remote booting using the router Download PDFInfo
- Publication number
- TWI469604B TWI469604B TW99121963A TW99121963A TWI469604B TW I469604 B TWI469604 B TW I469604B TW 99121963 A TW99121963 A TW 99121963A TW 99121963 A TW99121963 A TW 99121963A TW I469604 B TWI469604 B TW I469604B
- Authority
- TW
- Taiwan
- Prior art keywords
- client computer
- router
- message packet
- protocol
- tftp
- Prior art date
Links
Description
本發明涉及一種路由器,尤其是一種能夠支援用戶端電腦遠端啟動作業系統的路由器及利用該路由器實現遠端啟動作業系統的方法。 The invention relates to a router, in particular to a router capable of supporting a remote start operating system of a client computer and a method for realizing a remote starting operating system by using the router.
目前,大部分電腦的網卡都附帶了PXE功能。所述PXE(preboot execute environment,預啟動執行環境)是一種電腦無碟(即沒有硬碟)技術。PXE工作於Client/Server的網路模式,支援用戶端電腦透過網路從遠端伺服器下載映射,並由此支援來自網路的作業系統的啟動過程。 Currently, most computer NICs come with PXE. The PXE (preboot execute environment) is a computer-free (ie, no hard disk) technology. PXE works in the network mode of Client/Server, and supports the client computer to download the mapping from the remote server through the network, and thus supports the startup process of the operating system from the network.
傳統的,在利用網卡的PXE功能對用戶端電腦執行遠端啟動作業系統或者對網卡的PXE功能進行測試時,需要另外架設一台與用戶端電腦相連接的PXE伺服器,且該PXE伺服器需要安裝DHCP(Dynamic Host Configuration Protocol,動態主機設置協定)服務。由於安裝了DHCP服務,為了不和用戶端電腦原所屬網路相衝突,需要另外組建一個網路。然而,架設PXE伺服器及組建網路的成本都很高。 Traditionally, when using the PXE function of the network card to perform a remote boot operating system on the client computer or testing the PXE function of the network card, a PXE server connected to the client computer needs to be additionally set up, and the PXE server is provided. A DHCP (Dynamic Host Configuration Protocol) service needs to be installed. Since the DHCP service is installed, in order not to conflict with the original network of the client computer, a separate network needs to be established. However, the cost of setting up a PXE server and building a network is high.
鑒於以上內容,有必要提出一種路由器及利用該路由器實現遠端 啟動作業系統的方法,其增加了PXE功能,利用該路由器可以支援用戶端電腦遠端啟動作業系統。 In view of the above, it is necessary to propose a router and use the router to achieve remote The method of starting the operating system, which adds the PXE function, can be used to support the remote start operating system of the client computer.
一種路由器,包括:DHCP/代理DHCP服務模組,用於回應與該路由器連接的用戶端電腦發送的DHCP Discover消息包,而向該用戶端電腦分配IP位址;啟動服務模組,用於回應上述用戶端電腦發送的Boot Service Discover消息包,而向該用戶端電腦提供包含遠端啟動鏡像檔案名、TFTP配置參數的消息包;及MTFTP/TFTP服務模組,用於當接收到上述用戶端電腦發送的透過MTFTP協定或者TFTP協定下載遠端啟動鏡像的請求消息包時,建立一個基於MTFTP協定或者TFTP協定的連接。 A router includes: a DHCP/proxy DHCP service module, configured to respond to a DHCP Discover message packet sent by a client computer connected to the router, and allocate an IP address to the client computer; and start a service module for responding The Boot Service Discover message packet sent by the client computer, and the message packet including the remote boot image file name and the TFTP configuration parameter is provided to the client computer; and the MTFTP/TFTP service module is configured to receive the user terminal. When the request packet of the remote boot image is downloaded by the computer through the MTFTP protocol or the TFTP protocol, a connection based on the MTFTP protocol or the TFTP protocol is established.
用戶端電腦利用上述路由器實現遠端啟動作業系統的方法,包括:發送DHCP Discover消息包至路由器;接收路由器回應上述DHCP Discover消息包而回復的IP位址,並將該IP位址設置為用戶端電腦的IP位址;發送Boot Service Discover消息包至路由器;接收路由器回復的包含遠端啟動鏡像檔案名及TFTP配置參數的DHCPACK消息包;根據上述TFTP配置參數,發送透過MTFTP或者TFTP協議向路由器下載上述遠端啟動鏡像檔案名所對應的遠端啟動鏡像的請求消息包;透過MTFTP協定或者TFTP協定從路由器下載遠端啟動鏡像;及執行該遠端啟動鏡像,完成用戶端電腦的遠端啟動作業系統。 The method for the client computer to remotely start the operating system by using the foregoing router includes: sending a DHCP Discover message packet to the router; receiving an IP address replied by the router in response to the DHCP Discover message packet, and setting the IP address to the client end The IP address of the computer; the Boot Service Discover message packet is sent to the router; the DHCPACK message packet containing the remote boot image file name and the TFTP configuration parameter replied by the router is received; according to the TFTP configuration parameter, the sending is downloaded to the router through the MTFTP or TFTP protocol. The request packet of the remote boot image corresponding to the remote boot image file name; downloading the remote boot image from the router through the MTFTP protocol or the TFTP protocol; and executing the remote boot image to complete the remote booting operation system of the client computer .
上述路由器支援用戶端電腦遠端啟動作業系統的方法,包括:收用戶端電腦發送的DHCP Discover消息包;回應上述DHCP Discover消息包,並發送IP位址給用戶端電腦;接收用戶端電腦發送的Boot Service Discover消息包;根據上述Boot Service Discover消息包發送包含遠端啟動鏡像檔案名及TFTP配置參數等的DHCPACK消息包給用戶端電腦;接收用戶端電腦發送的透過MTFTP協定或者TFTP協定下載遠端啟動鏡像的請求消息包;及建立一個基於MTFTP協定或者TFTP協定的連接,以供用戶端電腦透過該連接下載遠端啟動鏡像。 The foregoing router supports a method for starting a working system by a client computer, comprising: receiving a DHCP Discover message packet sent by a client computer; responding to the DHCP Discover message packet, and sending an IP address to the client computer; receiving the sending by the client computer Boot Service Discover message packet; according to the above Boot Service The Discover message packet sends a DHCPACK message packet including the remote boot image file name and the TFTP configuration parameter to the client computer; and receives a request message packet sent by the client computer through the MTFTP protocol or the TFTP protocol to download the remote boot image; and establishes a request message packet; A connection based on the MTFTP protocol or the TFTP protocol for the client computer to download the remote boot image through the connection.
相較於習知技術,本發明所提供之路由器及利用該路由器實現遠端啟動作業系統的方法不需要另外架設PXE伺服器及另外組建網路,只需在路由器增加PXE服務,因此,方法簡單且可以節約成本。 Compared with the prior art, the router provided by the present invention and the method for realizing the remote starting operation system by using the router do not need to set up a PXE server and separately set up a network, and only need to add a PXE service to the router, so the method is simple. And can save costs.
1‧‧‧路由器 1‧‧‧ router
10‧‧‧DHCP/代理DHCP服務模組 10‧‧‧DHCP/Proxy DHCP Service Module
11‧‧‧啟動服務模組 11‧‧‧Start service module
12‧‧‧MTFTP/TFTP服務模組 12‧‧‧MTFTP/TFTP Service Module
2‧‧‧用戶端電腦 2‧‧‧Customer computer
20‧‧‧網卡 20‧‧‧ network card
201‧‧‧PXE bootROM 201‧‧‧PXE bootROM
21‧‧‧BIOS 21‧‧‧BIOS
圖1係本發明較佳實施方式中路由器的結構圖。 1 is a structural diagram of a router in a preferred embodiment of the present invention.
圖2係本發明較佳實施方式中利用圖1中的路由器實現遠端啟動作業系統的系統架構圖。 2 is a system architecture diagram of a remote start operating system implemented by using the router of FIG. 1 in a preferred embodiment of the present invention.
圖3係本發明較佳實施方式中用戶端電腦2利用圖1中的路由器1實現遠端啟動作業系統的方法流程圖。 3 is a flow chart of a method for a client computer 2 to implement a remote start operating system by using the router 1 of FIG. 1 in a preferred embodiment of the present invention.
圖4係本發明較佳實施方式中圖1中的路由器支援用戶端電腦2遠端啟動作業系統的方法流程圖。 4 is a flow chart of a method for the router in FIG. 1 to support the remote start operation system of the client computer 2 in the preferred embodiment of the present invention.
參閱圖1所示,係本發明較佳實施方式中路由器的結構圖。本發明所述路由器1包括DHCP/代理(Proxy)DHCP服務模組10、啟動服務模組11,及MTFTP/TFTP服務模組12。模組10-12是安裝在路由器1中實現或者完成某種功能的各個軟體程式段,比軟體程式本身更適合於描述軟體在路由器1中的執行過程,因此本發明對 軟體程式的描述都以模組描述。其中,該模組10-12所實現或者完成的功能將在下述的圖2中描述。 Referring to Figure 1, there is shown a block diagram of a router in a preferred embodiment of the present invention. The router 1 of the present invention includes a DHCP/Proxy DHCP service module 10, a startup service module 11, and an MTFTP/TFTP service module 12. The module 10-12 is a software program segment installed in the router 1 to implement or perform a certain function, and is more suitable for describing the execution process of the software in the router 1 than the software program itself, so the present invention is The description of the software program is described in modules. The functions implemented or completed by the module 10-12 will be described in FIG. 2 below.
參閱圖2所示,係本發明較佳實施方式中利用路由器1實現遠端啟動作業系統的系統架構圖。所述路由器1透過內部網路或者外部網路(圖2中未示)與多台用戶端電腦2相連接。其中每台用戶端電腦2都包括一個帶有PXE(preboot execute environment,預啟動執行環境)功能的網卡20及一個BIOS(basic input output system,基本輸入輸出系統)21。其中,網卡20中內置有一段執行代碼PXE bootRom(PXE啟動晶片)201。網卡20的PXE功能透過該PXE bootRom 201實現。該PXE bootRom 201在用戶端電腦2被開啟後會自動運行。 Referring to FIG. 2, a system architecture diagram of a remote start operating system using the router 1 in the preferred embodiment of the present invention is shown. The router 1 is connected to a plurality of client computers 2 via an internal network or an external network (not shown in FIG. 2). Each of the client computers 2 includes a network card 20 with a PXE (preboot execution environment) function and a BIOS (basic input output system) 21. The NIC 20 has a built-in execution code PXE bootRom 201. The PXE function of the network card 20 is implemented by the PXE bootRom 201. The PXE bootRom 201 will automatically run after the client computer 2 is turned on.
所述的BIOS 21用於當用戶端電腦2被開啟時,初始化網卡20及用戶端電腦2。 The BIOS 21 is configured to initialize the network card 20 and the client computer 2 when the client computer 2 is turned on.
所述的DHCP(dynamic host configuration protocol,動態主機配置協定)/代理(Proxy)DHCP服務模組10用於回應用戶端電腦2的網卡20中PXE bootRom 201發送的DHCP Discover消息包,而向用戶端電腦2分配IP位址。 The DHCP (dynamic host configuration protocol)/proxy DHCP service module 10 is configured to respond to the DHCP Discover message packet sent by the PXE bootRom 201 of the network card 20 of the client computer 2 to the client. Computer 2 assigns an IP address.
所述的啟動服務模組11用於回應用戶端電腦2的網卡20中PXE bootRom 201發送的Boot Service Discover消息包,而向用戶端電腦2提供包含遠端啟動鏡像檔案名、TFTP(trivial file transfer protocol,簡單檔傳輸協定)配置參數等資料的消息包。 The startup service module 11 is configured to respond to the Boot Service Discover message packet sent by the PXE bootRom 201 of the network card 20 of the client computer 2, and provide the remote boot image file name and TFTP (trivial file transfer) to the client computer 2. Protocol, simple file transfer protocol) message package for configuration parameters and other data.
所述的MTFTP(multicast trivial file transfer protocol, 多點的簡單檔傳輸協定)/TFTP服務模組1用於當接收到用戶端電腦2的網卡20中PXE bootRom 201發送的透過MTFTP協定或者TFTP協定下載遠端啟動鏡像的請求消息包時,建立一個基於MTFTP協定或者TFTP協定的連接。 The MTFTP (multicast trivial file transfer protocol, The multi-point simple file transfer protocol/TFTP service module 1 is configured to receive a request message packet sent by the PXE bootRom 201 in the network card 20 of the client computer 2 through the MTFTP protocol or the TFTP protocol to download the remote boot image. A connection based on the MTFTP protocol or the TFTP protocol.
參閱圖3所示,係本發明較佳實施方式中用戶端電腦2利用圖1中的路由器1實現遠端啟動作業系統的方法流程圖。 Referring to FIG. 3, a flow chart of a method for implementing a remote start operating system by using the router 1 in FIG. 1 in the preferred embodiment of the present invention is shown.
步驟S10,連接於路由器1的一台或者多台用戶端電腦2被開啟。 In step S10, one or more client computers 2 connected to the router 1 are turned on.
步驟S11,用戶端電腦2的BIOS 21初始化該用戶端電腦2及其中的網卡20。 In step S11, the BIOS 21 of the client computer 2 initializes the client computer 2 and the network card 20 therein.
步驟S12,網卡20中的PXE bootRom 201自動運行。 In step S12, the PXE bootRom 201 in the network card 20 operates automatically.
步驟S13,PXE bootRom 201發送DHCP Discover消息包至路由器1。 In step S13, the PXE bootRom 201 sends a DHCP Discover message packet to the router 1.
步驟S14,PXE bootRom 201接收路由器1的DHCP/代理DHCP服務模組10回應上述DHCP Discover消息包而回復的IP位址,並將該IP位址設置為用戶端電腦的IP位址。 In step S14, the PXE bootRom 201 receives the IP address replied by the DHCP/proxy DHCP service module 10 of the router 1 in response to the DHCP Discover message packet, and sets the IP address as the IP address of the client computer.
步驟S15,PXE bootRom 201發送Boot Service Discover消息包至路由器1。 In step S15, the PXE bootRom 201 sends a Boot Service Discover message packet to the router 1.
步驟S16,PXE bootRom 201接收路由器1回復的包含遠端啟動鏡像檔案名及TFTP配置參數的DHCPACK消息包。 In step S16, the PXE bootRom 201 receives the DHCPACK message packet replied by the router 1 and includes the remote boot image file name and the TFTP configuration parameter.
步驟S17,PXE bootRom 201根據上述TFTP配置參數,發送透過MTFTP或者TFTP協議向路由器1下載上述遠端啟動鏡像檔案名所對應的遠端啟動鏡像的請求消息包。 In step S17, the PXE bootRom 201 sends a request packet for downloading the remote boot image corresponding to the remote boot image file name to the router 1 through the MTFTP or TFTP protocol according to the TFTP configuration parameter.
步驟S18,PXE bootRom 201透過MTFTP協定或者TFTP協定從路由器1下載遠端啟動鏡像。 In step S18, the PXE bootRom 201 downloads the remote boot image from the router 1 through the MTFTP protocol or the TFTP protocol.
步驟S19,PXE bootRom 201於下載完成後,執行該遠端啟動鏡像,完成用戶端電腦2的PXE啟動。 Step S19: After the download is completed, the PXE bootRom 201 executes the remote boot image to complete the PXE boot of the client computer 2.
參閱圖4所示,係本發明較佳實施方式中圖1中的路由器支援用戶端電腦2遠端啟動作業系統的方法流程圖。 Referring to FIG. 4, in a preferred embodiment of the present invention, a flow chart of a method for the router in FIG. 1 to support the remote end of the operating system of the client computer 2 is shown.
步驟S20,路由器1接收用戶端電腦2發送的DHCP Discover消息包。 In step S20, the router 1 receives the DHCP Discover message packet sent by the client computer 2.
步驟S21,路由器1中的DHCP/代理DHCP服務模組10回應上述DHCP Discover消息包,並發送IP位址給用戶端電腦2。 In step S21, the DHCP/proxy DHCP service module 10 in the router 1 responds to the DHCP Discover message packet and sends an IP address to the client computer 2.
步驟S22,路由器1接收用戶端電腦2發送的Boot Service Discover消息包。 In step S22, the router 1 receives the Boot Service Discover message packet sent by the client computer 2.
步驟S23,路由器1中的啟動服務模組11根據上述Boot Service Discover消息包發送包含遠端啟動鏡像檔案名及TFTP配置參數等的DHCPACK消息包給用戶端電腦2。 In step S23, the startup service module 11 in the router 1 sends a DHCPACK message packet including the remote boot image file name and the TFTP configuration parameter to the client computer 2 according to the Boot Service Discover message packet.
步驟S24,路由器1接收用戶端電腦2發送的透過MTFTP協定或者TFTP協定下載遠端啟動鏡像的請求消息包。 In step S24, the router 1 receives the request message packet sent by the client computer 2 to download the remote boot image through the MTFTP protocol or the TFTP protocol.
步驟S25,路由器1中的MTFTP/TFTP服務模組12建立一個基於MTFTP協定或者TFTP協定的連接,以供用戶端電腦2透過該連接下載遠端啟動鏡像。 In step S25, the MTFTP/TFTP service module 12 in the router 1 establishes a connection based on the MTFTP protocol or the TFTP protocol, so that the client computer 2 can download the remote boot image through the connection.
以上所述僅為本發明之較佳實施方式而已,且已達廣泛之使用功效,凡其他未脫離本發明所揭示之精神下所完成之均等變化或修 飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and has been used for a wide range of functions, and other equal changes or modifications have been made without departing from the spirit of the present invention. Decorations are to be included in the scope of the patent application below.
1‧‧‧路由器 1‧‧‧ router
10‧‧‧DHCP/代理DHCP服務模組 10‧‧‧DHCP/Proxy DHCP Service Module
11‧‧‧啟動服務模組 11‧‧‧Start service module
12‧‧‧MTFTP/TFTP服務模組 12‧‧‧MTFTP/TFTP Service Module
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99121963A TWI469604B (en) | 2010-07-05 | 2010-07-05 | Router and method of remote booting using the router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99121963A TWI469604B (en) | 2010-07-05 | 2010-07-05 | Router and method of remote booting using the router |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201203972A TW201203972A (en) | 2012-01-16 |
TWI469604B true TWI469604B (en) | 2015-01-11 |
Family
ID=46756485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99121963A TWI469604B (en) | 2010-07-05 | 2010-07-05 | Router and method of remote booting using the router |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI469604B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030005096A1 (en) * | 2001-06-28 | 2003-01-02 | International Business Machines Corporation | Method and system for dynamic redistribution of remote computer boot service in a network containing multiple boot servers |
US6606643B1 (en) * | 2000-01-04 | 2003-08-12 | International Business Machines Corporation | Method of automatically selecting a mirror server for web-based client-host interaction |
-
2010
- 2010-07-05 TW TW99121963A patent/TWI469604B/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6606643B1 (en) * | 2000-01-04 | 2003-08-12 | International Business Machines Corporation | Method of automatically selecting a mirror server for web-based client-host interaction |
US20030005096A1 (en) * | 2001-06-28 | 2003-01-02 | International Business Machines Corporation | Method and system for dynamic redistribution of remote computer boot service in a network containing multiple boot servers |
Also Published As
Publication number | Publication date |
---|---|
TW201203972A (en) | 2012-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4454539B2 (en) | IP telephone automatic setting system and method | |
US7565418B2 (en) | Network device setup utility | |
US20180136946A1 (en) | Securely and reliably transferring startup script | |
CN106911729B (en) | Remote installation method of operating system suitable for domestic processor | |
US20070118654A1 (en) | Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems | |
CN102316003A (en) | Router and method for remotely starting operating system by router | |
CN106572200A (en) | IP address configuration method and IP address configuration device for baseboard management controller BMC | |
US20060155838A1 (en) | Program installation system and method using the same | |
JP2003330728A (en) | System and method for custom installation of operating, system on remote client | |
JP2014535228A (en) | Port setting method, routing device, and computer program product | |
CN102468992A (en) | PXE function test system and method | |
JP2013115737A (en) | Relay device and method for initiating electronic apparatus | |
US10938648B2 (en) | System and method for configuring an information handling system | |
US20100205420A1 (en) | System and method for realizing remote test on computer apparatus without storage device | |
CN104935468A (en) | PXE technology-based interactive system and method for realizing operation of operating system thereof | |
TW201428613A (en) | System and method for staring a diskless workstation | |
CN107247596A (en) | Starting-up method, device and electronic equipment | |
US9059919B1 (en) | Systems and methods for preserving network settings for use in a pre-boot environment | |
JP4612427B2 (en) | Firmware and download system and method for communication terminal and program thereof | |
TWI469604B (en) | Router and method of remote booting using the router | |
CN106487524A (en) | The method of remote opening | |
TW201508469A (en) | Test controlling system and method | |
WO2014008822A1 (en) | Method, device and system for setting dns server address | |
US11233813B2 (en) | Discovering and provisioning computing devices in a security enhanced environment | |
JP5271939B2 (en) | Network boot device and network boot method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |