Communication device, communication device management method, and management program
The communication device's determination unit ensures continuous connectivity with the management terminal by comparing and maintaining or changing IP addresses as needed during ZTP, addressing the issue of severed connections during IP address rewrites.
Patent Information
- Application Number
- JP2023068657
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
During zero-touch provisioning (ZTP), the IP address of a communication device is rewritten, severing the connection with the management terminal, preventing administrators from checking the device's operating status.
A communication device is equipped with a determination unit that compares the existing IP address with the new address allocated by the DHCP server, maintaining the connection if they match, and changing the IP address only if they do not, ensuring continuous connectivity with the management terminal.
This approach allows for uninterrupted monitoring and management of the communication device during ZTP by maintaining the connection with the management terminal, enabling administrators to check and change settings without disruption.
Smart Images

Figure 2024154688000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication device, a management method for a communication device, and a management program. [Background technology]
[0002] Zero Touch Provisioning (ZTP) is known as a technology for automating network settings of a communication device (for example, Patent Document 1). When ZTP is started, an IP (Internet Protocol) address ("Internet" is a registered trademark) is issued to the communication device from a DHCP (Dynamic Host Configuration Protocol) server, and the communication device obtains firmware and a configuration definition file from an FTP (File Transfer Protocol) server or the like via the IP network. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2022-149680 A Summary of the Invention [Problem to be solved by the invention]
[0004] To perform maintenance management of a communication device, an administrator connects to the communication device from an administration terminal using a remote control protocol such as TELNET or SSH, and remotely operates the communication device. When ZTP is executed while the communication device is connected to the administration terminal using the remote control protocol, the IP address of the communication device is rewritten to a new IP address assigned by the DHCP server. This causes a problem that the connection between the communication device and the administration terminal via the IP network is cut off, and the administrator cannot check the operating status of the communication device. [Means for solving the problem]
[0005] A communication device according to one embodiment of the present disclosure is a communication device that communicates with a counterpart device, and includes a communication unit used for connecting to a management terminal, a setting unit that sets an Internet Protocol address in the communication device to a first address before zero-touch provisioning is started, an acquisition unit that acquires a second address which is an Internet Protocol address received by the communication unit from a Dynamic Host Configuration Protocol server when zero-touch provisioning is started, and a determination unit that determines whether a first network unit which is a network unit in the first address and a second network unit which is a network unit in the second address acquired by the acquisition unit match, and when it is determined by the determination unit that the first network unit and the second network unit match, the setting unit maintains the Internet Protocol address set in the communication device to the first address. Effect of the Invention
[0006] According to the present disclosure, after ZTP is executed, the connection between the communication device and the management terminal via the IP network can be maintained. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a management system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of the communication device according to the embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating an example of a hardware configuration of a control module according to the embodiment. [Figure 4] FIG. 4 is a functional block diagram illustrating an example of functions of the communication device according to the embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of an IP address set in a communication interface. [Figure 6]FIG. 6 is a diagram illustrating an example of an IP address assigned from a DHCP server. [Figure 7] FIG. 7 is a diagram for explaining another example of an IP address assigned from a DHCP server. [Figure 8] FIG. 8 is a flowchart illustrating an example of a management process of the communication device according to the embodiment. [Figure 9] FIG. 9 is a sequence diagram illustrating an example of the operation of the management system according to the embodiment. [Figure 10] FIG. 10 is a sequence diagram showing another example of the operation of the management system according to the embodiment. [Figure 11] FIG. 11 is a flowchart showing a part of the management process of the communication device 10 according to the modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] <Overview of the embodiment of the present disclosure> Below, an overview of the embodiments of the present disclosure will be listed and described.
[0009] (1) A communication device according to the present embodiment is a communication device that communicates with a counterpart device, and includes a communication unit used for connecting to a management terminal, a setting unit that sets an Internet Protocol address in the communication device to a first address before zero-touch provisioning is started, an acquisition unit that acquires a second address, which is an Internet Protocol address received by the communication unit from a Dynamic Host Configuration Protocol server when zero-touch provisioning is started, and a determination unit that determines whether a first network unit that is a network unit in the first address matches a second network unit that is a network unit in the second address acquired by the acquisition unit, and when the determination unit determines that the first network unit and the second network unit match, the setting unit maintains the Internet Protocol address set in the communication device to the first address. As a result, when the first network unit and the second network unit match, the IP address in the communication unit is not changed, and the connection between the communication device and the management terminal by the IP network is maintained.
[0010] (2) In the above (1), the setting unit may change an Internet Protocol address set in the communication device from the first address to the second address when the determination unit determines that the first network unit and the second network unit do not match, thereby making it possible to change the IP address setting of the communication unit to the second address including a correct network address unit when the first network unit and the second network unit do not match.
[0011] (3) In the above (2), the communication device may further include a notification unit that, when the determination unit determines that the first network unit and the second network unit do not match, causes the communication unit to transmit notification information for notifying the management terminal of the second address before the setting unit changes an Internet Protocol address set in the communication device from the first address to the second address. This allows an administrator to easily confirm the second address and resume the connection between the communication device and the management terminal via the IP network.
[0012] (4) In any one of (1) to (3) above, the setting unit may set a first subnet mask, which is a subnet mask of the first address, in the communication device before the zero-touch provisioning is started, the acquisition unit may acquire a second subnet mask, which is a subnet mask of the second address received by the communication unit from the Dynamic Host Configuration Protocol server, and the determination unit may determine that the first network unit and the second network unit do not match when the first subnet mask and the second subnet mask do not match. This makes it possible to accurately determine whether the first network unit and the second network unit match.
[0013] (5) A method for managing a communication device according to the present embodiment is a method for managing a communication device that communicates with an opposing device, and includes the steps of: setting an Internet Protocol address in the communication device to a first address before zero-touch provisioning is started; acquiring a second address, which is an Internet Protocol address received by a communication unit used for connecting to a management terminal, from a Dynamic Host Configuration Protocol server when the zero-touch provisioning is started; determining whether a first network unit, which is a network unit in the first address, matches a second network unit, which is a network unit in the acquired second address; and, when it is determined that the first network unit and the second network unit match, maintaining the Internet Protocol address set in the communication device to the first address. As a result, when the first network unit and the second network unit match, the IP address in the communication unit is not changed, and the connection between the communication device and the management terminal through the IP network is maintained.
[0014] (6) A management program according to the present embodiment is a management program used in a communication device that communicates with an opposing device, and causes a computer to execute the following steps before zero-touch provisioning is started: setting an Internet Protocol address in the communication device to a first address; acquiring a second address, which is an Internet Protocol address received by a communication unit used for connecting to a management terminal, from a Dynamic Host Configuration Protocol server when the zero-touch provisioning is started; determining whether a first network unit, which is a network unit in the first address, matches a second network unit, which is a network unit in the acquired second address; and, when it is determined that the first network unit and the second network unit match, maintaining the Internet Protocol address set in the communication device to the first address. As a result, when the first network unit and the second network unit match, the IP address in the communication unit is not changed, and the connection between the communication device and the management terminal through the IP network is maintained.
[0015] The present disclosure can be realized not only as a communication device having the above-described characteristic configuration, a management method for a communication device having steps each representing a characteristic process, and a management program for causing a communication device to execute a characteristic process, but also as a communication system including a communication device, or as a semiconductor integrated circuit in which part or all of the communication device is implemented.
[0016] <Details of the embodiment of the present disclosure> Hereinafter, the details of the embodiments of the present invention will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any desired manner.
[0017] [1. Management System] 1 is a diagram showing an example of the configuration of a management system according to an embodiment. The management system 1 is a system for managing a communication device 10. The management system 1 includes the communication device 10, a management terminal 30, a DHCP server 40, and a TFTP (Trivial File Transfer Protocol) server 50.
[0018] Each of the communication device 10, the management terminal 30, the DHCP server 40, and the TFTP server 50 is connected to an IP network 20. The communication device 10 is operated by a telecommunications carrier to provide communication services. The IP network 20 is a network owned by the telecommunications carrier, and is a network for managing the communication device 10. The management terminal 30 is used by an administrator belonging to the telecommunications carrier to manage the communication device 10.
[0019] For example, the management terminal 30 is located in a remote location from the communication device 10. In a specific example, the management terminal 30 is located in a station center which is an office of a telecommunications carrier, and the communication device 10 is located in a subcenter which is an office away from the station center.
[0020] The management terminal 30 is a terminal used by an administrator and is a user interface device. For example, the management terminal 30 is a computer such as a personal computer or a workstation. As another example, the management terminal 30 may be a portable information terminal such as a tablet or a smartphone.
[0021] For example, the management terminal 30 includes an input device including a pointing device such as a keyboard and a mouse, and a display device including, for example, a liquid crystal panel or an OEL (organic electroluminescence) panel. The input device may be a capacitive or pressure-sensitive touch pad overlaid on the screen of the display device. The management terminal 30 can accept data input by a user to the input device, and display information such as the status of the communication device 10 on the display device.
[0022] The administrator can use the management terminal 30 to view the status of the communication device 10 and input various instructions to the communication device 10. Specifically, the management terminal 30 is connected to the communication device 10 by a remote control protocol such as TELNET or SSH. The administrator can use the remote control protocol to check and change the settings of the communication device 10. The following description will be given assuming that the remote control protocol is TELNET.
[0023] The DHCP server 40 assigns an IP address in response to a request from the communication device 10. The IP address assigned by the DHCP server 40 corresponds to a network address of the IP network 20. The communication device 10 can set the IP address assigned by the DHCP server 40 to the communication device 10 itself.
[0024] The TFTP server 50 stores firmware and a configuration definition file for the communication device 10. The configuration definition file is a file that stores setting parameters used to set the communication functions of the communication device 10. For example, the setting parameters include main signal communication settings (VLAN (Virtual Local Area Network), QoS (Quality of Service), port interface, etc.), monitoring and maintenance settings (NTP (Network Time Protocol), alarm issuance conditions, system log settings, etc.). The communication device 10 downloads the firmware and the configuration definition file from the TFTP server 50. Note that the firmware and the configuration definition file may be downloaded from an FTP server instead of the TFTP server 50.
[0025] [2. Configuration of communication device] FIG. 2 is a diagram illustrating an example of the configuration of the communication device according to the embodiment.
[0026] The communication device 10 includes a control module 100 and communication modules 200_1 and 200_2.
[0027] The communication modules 200_1 and 200_2 are modules that execute communication with a counterpart device. For example, the communication modules 200_1 and 200_2 are relay modules that relay communication between a plurality of external communication devices different from the communication device 10. The communication module 200_1 is connected to communication lines 22_11 and 22_12 for communicating with an external communication device. The communication module 200_2 is connected to communication lines 22_21 and 22_22 for communicating with an external communication device. Hereinafter, the communication modules 200_1 and 200_2 may be collectively referred to as "communication modules 200."
[0028] The communication module 200 is, for example, a communication module for Ethernet (registered trademark). As another example, the communication module 200 may be a communication module for OTN (Optical Transport Network). The communication module 200 may be a communication module for PON (Passive Optical Network). Specifically, the communication module 200 may be a communication module for G-PON (Gigabit PON), a communication module for GE-PON (Gigabit Ethernet PON), or a communication module for 10G-EPON (10 Gigabit Ethernet PON). The communication module 200 may be a communication module for a communication standard other than the above.
[0029] The control module 100 is a module for controlling the communication modules 200_1 and 200_2. The control module 100 and the communication modules 200_1 and 200_2 are connected to each other by signal lines (not shown).
[0030] The communication device 10 is configured by housing the control module 100 and the communication modules 200_1 and 200_2 in a housing 11. For example, the communication device 10 is a frame-type communication device in which the control module 100 and the communication modules 200_1 and 200_2 are detachably attached to the housing.
[0031] 1, two communication modules 200_1 and 200_2 are attached to the communication device 10, but the present invention is not limited to this. For example, the communication device 10 may be provided with only one communication module, or may be provided with three or more communication modules.
[0032] The control module 100 includes an Ethernet communication interface (described later), and is connected to an IP network 20 via a communication line 21 connected to the communication interface.
[0033] [3. Control module configuration] FIG. 3 is a block diagram illustrating an example of a hardware configuration of a control module according to the embodiment.
[0034] The control module 100 includes a processor 101, a non-volatile memory 102, a volatile memory 103, a communication interface (hereinafter also referred to as “communication I / F”) 104, and an input / output interface (hereinafter also referred to as “I / O”) 105.
[0035] The volatile memory 103 is a semiconductor memory such as a static random access memory (SRAM) or a dynamic random access memory (DRAM). The nonvolatile memory 102 is a rewritable nonvolatile memory such as a flash memory, a hard disk, a programmable read only memory (PROM), an erasable PROM (EPROM), or an electrically erasable PROM (EEPROM). The nonvolatile memory 102 stores a management program 110, which is a computer program, and data used to execute the management program 110. Each function of the control module 100 is exerted by the processor 101 executing the management program 110.
[0036] The processor 101 is, for example, a CPU (Central Processing Unit). However, the processor 101 is not limited to a CPU. The processor 101 may be a GPU (Graphics Processing Unit). In a specific example, the processor 101 is a multi-core processor. The processor 101 may be a single-core processor. The processor 101 is configured to be able to execute a computer program. However, the processor 101 may be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as a gate array or an FPGA (Field Programmable Gate Array). In this case, the ASIC or the programmable logic device is configured to be able to execute the same function as the management program 110.
[0037] The communication I / F 104 is an Ethernet interface. The communication I / F 104 is connected to the IP network 20 via a communication line (Ethernet cable) 21. The communication I / F 104 is a communication interface for managing the communication device 10.
[0038] The I / O 105 inputs and outputs data between the control module 100 and the outside. In a specific example, the I / O 105 is connected to the communication modules 200_1 and 200_2.
[0039] The management program 110 is a program for managing the communication device 10. More specifically, the management program 110 is a program for managing the settings of the IP address of the communication device 10.
[0040] The non-volatile memory 102 stores a communication control program 111. The communication control program 111 is a program for performing communication via the communication I / F 104 in accordance with a protocol at or above the network layer (layer 3) in the OSI reference model.
[0041] The communication device 10 downloads the firmware and the configuration file from the TFTP server 50. The downloaded firmware 113 and the configuration file 114 are stored in the non-volatile memory 102.
[0042] [4. Functions of communication devices] FIG. 4 is a functional block diagram illustrating an example of functions of the communication device according to the embodiment.
[0043] A communication unit 120 (see FIG. 5) is realized by the processor 101 executing the communication control program 111. More specifically, the communication unit 120 is realized by the communication I / F 104 and the processor 101 executing the communication control program 111. The communication unit 120 can transmit and receive, for example, TCP / IP (Transmission Control Protocol / Internet Protocol) packets. More specifically, the communication unit 120 can transmit and receive not only TCP packets but also UDP (User Datagram Protocol) packets.
[0044] An IP address is preset in the communication device 10. For example, the IP address preset in the communication device 10 may be a default IP address set when the communication device 10 is started, or may be an IP address set in the communication device 10 by an administrator using the management terminal 30. The setting value of the IP address in the communication device 10 is stored in the non-volatile memory 102. The IP address 112 stored in the non-volatile memory 102 is the IP address set in the communication I / F 104 before ZTP is executed. Hereinafter, the IP address 112 set in the communication I / F 104 before ZTP is executed is also referred to as the "first address."
[0045] 5 is a diagram for explaining an example of an IP address set in the communication device 10. Consider a case where the first address 112 is "192.168.1.1" in decimal notation. When the first address 112 is converted to binary notation, it becomes "11000000 10101000 00000001 00000001."
[0046] A subnet mask is also set in the communication device 10. Hereinafter, the subnet mask set in the communication device 10 will also be referred to as the "first subnet mask." In the example of Fig. 5, the first subnet mask is "255.255.255.0" in decimal notation. When the first subnet mask is converted to binary notation, it becomes "11111111 11111111 11111111 00000000."
[0047] A subnet mask indicates the division of an IP address into a network portion and a host portion. That is, in a binary notation subnet mask, the portion of successive "1's" corresponds to the network portion, and the portion of successive "0's" corresponds to the host portion. In a first subnet mask, the upper 24 digits correspond to the network portion, and the lower 8 digits correspond to the host portion. Therefore, in first address 112, the portion of "192.168.1" (11000000 10101000 00000001) is the network portion, and the portion of the last "1" (00000001) is the host portion. Hereinafter, the network portion of first address 112 is also referred to as the "first network portion."
[0048] An address in which the value of the host part in an IP address has been changed to "0" is a network address. That is, the network address corresponding to first address 112 is "192.168.1.0" in decimal notation, and "11000000 10101000 00000001 00000000" in binary notation. Hereinafter, the network address corresponding to first address 112 is also referred to as the "first network address." The first network address indicates the network to which the host (communication device 10) to which the first address is set belongs.
[0049] 4, in addition to the above-mentioned communication unit 120, the control module 100 has the functions of an acquisition unit 121, a determination unit 122, a setting unit 123, and a notification unit 124. The functions of the acquisition unit 121, the determination unit 122, the setting unit 123, and the notification unit 124 are realized by the processor 101 executing the management program 110.
[0050] As described above, the first address 112 is set in advance in the communication device 10. That is, before the communication device 10 starts ZTP, the setting unit 123 sets the first address 112 as the IP address of the communication device 10.
[0051] When the communication device 10 executes ZTP, the communication device 10 requests the DHCP server 40 to assign an IP address. The DHCP server 40 assigns an IP address in response to the request, and transmits the assigned IP address to the communication device 10. The communication unit 120 receives the IP address transmitted from the DHCP server 40. Hereinafter, the IP address assigned by the DHCP server 40 as a result of the execution of ZTP is also referred to as a "second address."
[0052] The acquisition unit 121 acquires the second address that the communication unit 120 receives from the DHCP server 40.
[0053] Determination unit 122 determines whether or not the first network part in first address 112 matches the network part in the second address acquired by acquisition unit 121. Hereinafter, the network part of the second address is also referred to as the "second network part."
[0054] 6 is a diagram for explaining an example of an IP address assigned by a DHCP server. Consider a case where the second address is "192.168.10.3" in decimal notation. When the second address is converted to binary notation, it becomes "11000000 10101000 00001010 00000011."
[0055] A subnet mask is also transmitted from DHCP server 40. Communication unit 120 receives the subnet mask transmitted from the DHCP server, and acquisition unit 121 acquires the subnet mask received by communication unit 120 (see FIG. 5). Hereinafter, the subnet mask issued from DHCP server 40 is also referred to as a "second subnet mask." In the example of FIG. 6, the second subnet mask is "255.255.255.0" in decimal notation. When the second subnet mask is converted to binary notation, it becomes "11111111 11111111 11111111 00000000."
[0056] In the second subnet mask, the upper 24 digits correspond to the network part, and the lower 8 digits correspond to the host part. Therefore, in the second address, the "192.168.10" (11000000 10101000 00001010) part is the network part (second network part), and the last "3" (00000011) part is the host part.
[0057] The network address corresponding to the second address is "192.168.10.0" in decimal notation, and "11000000 10101000 00001010 00000000." Hereinafter, the network address corresponding to the second address will also be referred to as the "second network address."
[0058] For example, an IP address including a network portion indicating the IP network 20 (or a sub-network thereof) is issued from the DHCP server 40. That is, the second network portion corresponds to the IP network 20 (or a sub-network thereof), and the second network address is the network address of the IP network 20 (or a sub-network thereof).
[0059] Returning to Fig. 4, the first network part (11000000 10101000 00000001) in the first address 112 shown in Fig. 5 does not match the second network part (11000000 10101000 00001010) in the second address shown in Fig. 6. That is, the first network address (11000000 10101000 00000001 00000000) shown in Fig. 5 is different from the second network address (11000000 10101000 00001010 00000000) shown in Fig. 6. Therefore, in this case, the determination unit 122 determines that the first network part and the second network part do not match.
[0060] 7 is a diagram for explaining another example of an IP address assigned by a DHCP server. Consider a case where the second address is "192.168.1.3" in decimal notation. When the second address is converted to binary notation, it becomes "11000000 10101000 00000001 00000011".
[0061] In the example in Figure 7, the second subnet mask is "255.255.255.0" in decimal notation. When converted to binary notation, the second subnet mask becomes "11111111 11111111 11111111 00000000."
[0062] In the second subnet mask, the first 24 digits correspond to the network portion, and the last 8 digits correspond to the host portion. Therefore, in the second address, the "192.168.1" (11000000 10101000 00000001) part is the network portion (second network portion), and the last "3" (00000011) part is the host portion.
[0063] The second network address is "192.168.1.0" in decimal notation and "11000000 10101000 00000001 00000000" in binary notation. In this case, the network address of IP network 20 (or a subnetwork thereof) is "11000000 10101000 00000001 00000000".
[0064] Returning to Fig. 4, the first network part (11000000 10101000 00000001) in the first address 112 shown in Fig. 5 matches the second network part (11000000 10101000 00000001) in the second address shown in Fig. 7. That is, the first network address (11000000 10101000 00000001 00000000) shown in Fig. 5 is the same as the second network address (11000000 10101000 00000001 00000000) shown in Fig. 7. Therefore, in this case, the determination unit 122 determines that the first network part and the second network part match.
[0065] When the determination unit 122 determines that the first network unit and the second network unit match, the setting unit 123 maintains the IP address set in the communication device 10 at the first address 112. That is, in this case, the setting unit 123 does not change the IP address set in the communication device 10 from the first address 112 to the second address. This makes it possible to prevent disconnection between the management terminal 30 and the communication device 10 due to a change in the IP address of the communication device 10, for example, when the management terminal 30 is connected to the communication device 10 by TELNET before the execution of ZTP. Therefore, the administrator can continue to check the state of the communication device 10 and change the settings of the communication device 10 after the start of ZTP.
[0066] When the determining unit 122 determines that the first network part and the second network part do not match, the setting unit 123 changes the IP address set in the communication device 10 from the first address 112 to the second address. As a result, when, for example, the first network part of the first address does not correspond to the IP network 20 (or its sub-network), that is, the first network address is different from the network address of the IP network 20 (or its sub-network), it is possible to change the IP address of the communication device 10 to a correct network address, that is, a second address including a second network part corresponding to the IP network 20 (or its sub-network).
[0067] In addition to the above-mentioned IP address (second address), the DHCP server 40 transmits the address of the TFTP server 50 as additional information to the communication device 10. The acquisition unit 121 accesses the TFTP server 50 via the communication unit 120, using the address of the TFTP server 50 transmitted from the DHCP server 40. The acquisition unit 121 requests the TFTP server 50 to transmit the firmware 113 and the configuration file 114 via the communication unit 120. The TFTP server 50 transmits the firmware 113 and the configuration file 114 for the communication device 10 to the communication device 10, and the communication unit 120 receives the firmware 113 and the configuration file 114 transmitted from the TFTP server 50.
[0068] The acquisition unit 121 acquires the firmware 113 and the configuration file 114 that the communication unit 120 receives from the TFTP server 50. The setting unit 123 updates the firmware of the communication device 10 (control module 100) by the firmware 113 acquired by the acquisition unit 121. The setting unit 123 sets setting parameters of the communication device 10 by the configuration file 114 acquired by the acquisition unit 121, and reflects the configuration file 114 in the setting contents of the communication device 10.
[0069] When the determining unit 122 determines that the first network part and the second network part do not match, the notifying unit 124 causes the communication unit 120 to transmit notification information to the management terminal 30. The notification information is information for notifying the administrator of the second address.
[0070] The notification information transmitted by the communication unit 120 is received by the management terminal 30. For example, the management terminal 30 displays a notification screen for notifying the administrator of the second address based on the received notification information. This allows the administrator to recognize that the IP address newly set in the communication device 10 is the second address.
[0071] In a specific example, the setting unit 123 changes the IP address of the communication device 10 from the first address 112 to the second address after confirming that the notification unit 124 will transmit the notification information to the management terminal 30. This makes it possible to notify the administrator of the IP address after the setting change (the second address) before the setting of the IP address of the communication device 10 is changed. When the TELNET connection between the communication device 10 and the management terminal 30 is disconnected, the administrator can quickly reconnect the communication device 10 and the management terminal 30 using the second address.
[0072] [5. Operation of the management system] The operation of the management system according to the embodiment will be described below.
[0073] Before ZTP is executed, the communication device 10 is connected to the IP network 20, and an IP address (first address) is set in the communication device 10. For example, when the communication device 10 is started up without a first address being set, a default IP address is set as the first address in the communication device 10. In another example, the first address is set in the communication device 10 by an administrator or other maintenance personnel.
[0074] The processor 101 of the communication device 10 executes the management program 110, whereby the processor 101 starts the following management process. Fig. 8 is a flowchart showing an example of the management process of the communication device according to the embodiment.
[0075] The administrator operates the management terminal 30 to connect the management terminal 30 to the communication device 10 by TELNET. In this state, the administrator can use the management terminal 30 to check the operating state or setting contents of the communication device 10 or change the setting. For example, the communication device 10 is preset so that ZTP is automatically executed when the communication device 10 is first started (after the default first address is set). In another example, the communication device 10 is preset so that ZTP is automatically executed when the communication device 10 is restarted. In yet another example, the administrator can input an execution instruction for ZTP from the management terminal 30 to the communication device 10 by TELNET. In yet another example, a button switch for ZTP execution is provided on the housing of the communication device 10, and the administrator or maintenance person near the communication device 10 can input an execution instruction for ZTP to the communication device 10 by pressing the button switch.
[0076] The processor 101 receives an instruction to execute ZTP (step S101).
[0077] When ZTP is started, the processor 101 requests the DHCP server 40 to assign an IP address. Specifically, the processor 101 broadcasts a DHCP Discover message to the IP network 20. The DHCP server 40 selects an IP address from an address pool in response to the request, and transmits a message (DHCP Offer) proposing the selected IP address. The processor 101 of the communication device 10, which is a DHCP client, transmits a DHCP Request, which is a message notifying that the IP address proposal is accepted. The DHCP server 40 transmits a DHCP Ack including an IP address (second address) used by the communication device 10 and additional information. The additional information includes a subnet mask (second subnet mask) and an address of the TFTP server 50. For example, the additional information further includes an address of a default gateway, a lease period of the IP address, and an address of a DNS (Domain Name System) server. When the communication device 10 receives the DHCP Ack, the processor 101 acquires the second address (step S102).
[0078] The processor 101 identifies the first network part of the first address set in the communication device 10, and identifies the second network part of the received second address. For example, the processor 101 identifies the first network part from the first address and the first subnet mask, and identifies the second network part from the second address and the second subnet mask. The processor 101 determines whether the first network part and the second network part are identical (step S103). That is, the processor 101 compares the first network part and the second network part to determine whether the first network part and the second network part match.
[0079] If the first network part and the second network part do not match ("not identical" in step S103), the processor 101 transmits notification information to notify the management terminal 30 of the second address assigned by the DHCP server 40 (step S104).
[0080] The processor 101 changes the IP address of the communication device 10 from the first address to the second address assigned by the DHCP server 40 (step S105). In this case, the processor 101 changes the subnet mask set in the communication device 10 from the first subnet mask to the second subnet mask assigned by the DHCP server 40, and updates the setting of the lease period of the IP address. Furthermore, the processor 101 reflects the address of the default gateway and the address of the DNS server notified by the DHCP server 40 in the setting of the communication I / F 104. After that, the processor 101 proceeds to step S106.
[0081] If the first network part and the second network part match ("Same" in step S103), the processor 101 proceeds to step S106 while maintaining the IP address of the communication device 10 as the first address. In this case, the processor 101 maintains the subnet mask set in the communication device 10 as the first subnet mask, and does not set a lease period for the IP address. The processor 101 may reflect the address of the default gateway and the address of the DNS server notified by the DHCP server 40 in the settings of the communication device 10.
[0082] The processor 101 accesses the TFTP server 50 using the address of the TFTP server 50 notified by the DHCP server 40, and receives the firmware 113 and the configuration file 114 from the TFTP server 50 (step S106). Specifically, the processor 101 transmits a GET request (GET command) for the firmware 113 and the configuration file 114 to the TFTP server 50. In response to the request, the TFTP server 50 transmits the firmware 113 and the configuration file 114 to the communication device 10. When the processor 101 has completed receiving the firmware 113 and the configuration file 114, it transmits an Ack to the TFTP server 50.
[0083] Next, the processor 101 uses the received new firmware 113 to update the firmware (step S107), and restarts the communication device 10 (or the control module 100) (step S108). Furthermore, the processor 101 sets configuration parameters using the configuration definition file 114, and reflects the configuration definition file 114 in the settings of the communication device 10 (step S109). This completes the management process.
[0084] FIG. 9 is a sequence diagram illustrating an example of the operation of the management system according to the embodiment.
[0085] The administrator operates the management terminal 30 and connects the management terminal 30 to the communication device 10 via TELNET (step S11). In this state, for example, the administrator inputs an instruction to execute ZTP to the communication device 10, whereby ZTP is started.
[0086] The communication device 10 transmits a DHCP Discover requesting the assignment of an IP address (step S12). Upon receiving the DHCP Discover, the DHCP server 40 selects an IP address from an address pool and transmits a DHCP Offer proposing the selected IP address (step S13). Upon receiving the DHCP Offer, the communication device 10 transmits a DHCP Request (step S14). Upon receiving the DHCP Request, the DHCP server 40 transmits a DHCP Ack including a second address (step S15).
[0087] The communication device 10 determines whether the first network unit and the second network unit are identical (step S16).
[0088] 9 shows an example in which the first network part and the second network part are the same. In this case, the communication device 10 maintains the IP address of the communication device 10 as the first address. As a result, the TELNET connection between the management terminal 30 and the communication device 10 is not disconnected.
[0089] The communication device 10 performs settings for the communication device 10 based on the additional information received from the DHCP server 40.
[0090] The communication device 10 uses the address of the TFTP server 50 received from the DHCP server 40 to generate a GET Request requesting the firmware 113 and the configuration file 114 from the TFTP server 50, and transmits the generated GET Request (step S17). Upon receiving the GET Request, the TFTP server 50 transmits the firmware 113 and the configuration file 114 to the communication device 10 (step S18). The firmware 113 and the configuration file 114 are divided into multiple data and transmitted from the TFTP server 50. Each time the communication device 10 completes reception of each divided data of the firmware 113 and the configuration file 114, it transmits a TFTP Ack, which is a message notifying the completion of reception, to the TFTP server 50 (step S19).
[0091] The communication device 10 executes a firmware update using the received firmware 113 (step S20), and executes a reboot of the communication device 10 (or the control module 100) (step S21). Furthermore, the communication device 10 reflects the configuration file 114 in the settings of the communication device 10 (step S22).
[0092] FIG. 10 is a sequence diagram showing another example of the operation of the management system according to the embodiment.
[0093] Steps S11 to S16 are the same as those in FIG. 9, so the description will be omitted.
[0094] 10 shows an example in which the first network unit and the second network unit are not the same. In this case, the communication device 10 transmits notification information of the second address to the management terminal 30 (step S31). After that, the communication device 10 changes the IP address of the communication device 10 from the first address to the second address (step S32). As a result, the TELNET connection between the management terminal 30 and the communication device 10 is disconnected.
[0095] The management terminal 30 displays a notification screen of the second address based on the notification information (step S33). This allows the administrator to know the second address. The administrator operates the management terminal 30 and reconnects the management terminal 30 to the communication device 10 using the second address (step S34).
[0096] Steps S17 to S22 are the same as those in Fig. 9, and therefore the description will be omitted. However, the reconnection between the management terminal 30 and the communication device 10 in step S34 is executed at any timing. That is, although an example in which step S34 is executed before steps S17 to S22 is shown in Fig. 10, this is not limiting. Step S34 can be executed at a timing unrelated to steps S17 to S22.
[0097] [6. Variation Examples] Please refer to Fig. 5. In one modified example of the communication device 10 according to the embodiment, the determination unit 122 determines whether the first subnet mask and the second subnet mask match in determining the identity between the first network unit and the second network unit.
[0098] In a specific example, the determination of identity between the first network part and the second network part by the determination unit 122 includes a subnet mask identity determination to determine the identity between the first subnet mask and the second subnet mask, and a network part identity determination to determine the identity between the first network part and the second network part.
[0099] In determining whether the subnet masks are the same, the determination unit 122 compares the first subnet mask with the second subnet mask and determines whether the first subnet mask and the second subnet mask match. If the first subnet mask and the second subnet mask do not match, the determination unit 122 does not perform a determination of whether the network parts are the same, and determines that the first network part and the second network part do not match.
[0100] If the first subnet mask and the second subnet mask match, the determination unit 122 executes a determination of the identity of the network parts. That is, the determination unit 122 compares the first network part with the second network part and determines whether the first network part and the second network part match. If the first network part and the second network part match, the determination unit 122 determines that the first network part and the second network part match. If the first network part and the second network part do not match, the determination unit 122 determines that the first network part and the second network part do not match.
[0101] Fig. 11 is a flowchart showing a part of the management process of the communication device 10 according to the modified example. Fig. 11 shows only the part of the process for determining whether the first network unit and the second network unit are identical (S103 in Fig. 8).
[0102] After the communication device 10 receives the second address assigned from the DHCP server 40, the processor 101 compares the first subnet mask with the second subnet mask and determines whether the first subnet mask and the second subnet mask match (step S103_1).
[0103] If the first subnet mask and the second subnet mask do not match (NO at step S103_1), the processor 101 proceeds to step S104.
[0104] If the first subnet mask and the second subnet mask match (YES at step S103_1), the processor 101 compares the first network part with the second network part and determines whether or not the first network part and the second network part match (step S103_2).
[0105] If the first network unit and the second network unit do not match (NO at step S103_2), the processor 101 proceeds to step S104.
[0106] If the first network unit and the second network unit match (YES at step S103_2), the processor 101 proceeds to step S106.
[0107] [7. Supplementary Notes] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims rather than the above-described embodiments, and includes the meaning equivalent to the claims and all modifications within the scope thereof. [Explanation of symbols]
[0108] 1 Management System 10. Communications Equipment 20 IP Networks 21, 22_11, 22_12, 22_21, 22_22 Communication lines 30 Management terminal 40 DHCP Server 50 TFTP Server 100 Control Module 101 Processor 102 Non-volatile memory 103 Volatile Memory 104 Communication Interface (Communication I / F) 105 Input / Output Interface (I / O) 110 Management Program 112 IP address (first address, second address) 113 Firmware 114 Configuration File 120 Communications Department 121 Acquisition Department 122 Judgment section 123 Settings 124 Notification Department 200,200_1,200_2 Communication module
Claims
1. A communication device that communicates with an opposing device, A communication unit used for connecting to a management terminal; a setting unit that sets an Internet Protocol address in the communication device to a first address before zero-touch provisioning is started; an acquisition unit that acquires a second address, which is an Internet Protocol address received by the communication unit, from a Dynamic Host Configuration Protocol server when zero-touch provisioning is started; a determination unit that determines whether a first network portion that is a network portion in the first address and a second network portion that is a network portion in the second address acquired by the acquisition unit match each other; Equipped with When the determination unit determines that the first network unit and the second network unit match, the setting unit maintains an Internet Protocol address set in the communication device to the first address. Communications equipment.
2. the setting unit changes an Internet Protocol address set in the communication device from the first address to the second address when the determination unit determines that the first network unit and the second network unit do not match. The communication device according to claim 1 .
3. the communication device further includes a notification unit that, when the determination unit determines that the first network unit and the second network unit do not match, causes the communication unit to transmit notification information for notifying the management terminal of the second address before an Internet Protocol address set in the communication device is changed from the first address to the second address by the setting unit; The communication device according to claim 2 .
4. The setting unit sets a first subnet mask, which is a subnet mask of the first address, in the communication device before the zero-touch provisioning is started; the acquisition unit acquires a second subnet mask, which is a subnet mask of the second address received by the communication unit, from the Dynamic Host Configuration Protocol server; the determination unit determines that the first network portion and the second network portion do not match when the first subnet mask and the second subnet mask do not match. The communication device according to any one of claims 1 to 3.
5. A method for managing a communication device that communicates with an opposing device, comprising: setting an Internet Protocol address in the communication device to a first address before zero-touch provisioning is initiated; When the zero-touch provisioning is started, acquiring, from a Dynamic Host Configuration Protocol server, a second address which is an Internet Protocol address received by a communication unit used for connecting to a management terminal; A step of determining whether a first network portion that is a network portion in the first address and a second network portion that is a network portion in the acquired second address match each other; maintaining an Internet Protocol address set in the communication device to the first address when it is determined that the first network unit and the second network unit match; Including, A method for managing a communication device.
6. A management program used in a communication device that communicates with an opposing device, On the computer, setting an Internet Protocol address in the communication device to a first address before zero-touch provisioning is initiated; When the zero-touch provisioning is started, acquiring, from a Dynamic Host Configuration Protocol server, a second address which is an Internet Protocol address received by a communication unit used for connecting to a management terminal; A step of determining whether a first network portion that is a network portion in the first address and a second network portion that is a network portion in the acquired second address match each other; maintaining an Internet Protocol address set in the communication device to the first address when it is determined that the first network unit and the second network unit match; In order to execute Management program.
Citation Information
Patent Citations
Communication device and communication system
JP2022149680A
