WO2011108708A1 - 電子機器、および電子機器の動作設定方法 - Google Patents

電子機器、および電子機器の動作設定方法 Download PDF

Info

Publication number
WO2011108708A1
WO2011108708A1 PCT/JP2011/055078 JP2011055078W WO2011108708A1 WO 2011108708 A1 WO2011108708 A1 WO 2011108708A1 JP 2011055078 W JP2011055078 W JP 2011055078W WO 2011108708 A1 WO2011108708 A1 WO 2011108708A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
electronic device
message
session
operation setting
Prior art date
Application number
PCT/JP2011/055078
Other languages
English (en)
French (fr)
Inventor
純 浅見
Original Assignee
ヤマハ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ヤマハ株式会社 filed Critical ヤマハ株式会社
Priority to CN201180012371.6A priority Critical patent/CN102783086B/zh
Publication of WO2011108708A1 publication Critical patent/WO2011108708A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/385Uniform resource identifier for session initiation protocol [SIP URI]

Definitions

  • the present invention relates to a technique for setting operation of an electronic device, and more particularly to a technique for setting operation from a remote place.
  • the operation setting of the relay device means, for example, setting of a VPN connection destination, various parameters used for the connection, setting of data specifying a packet to be filtered, and the like.
  • the operation setting of the relay device is generally performed by connecting a serial console to the relay device to be set and inputting a command via the serial console.
  • an engineer for example, a network administrator who performs the setting work has to go to the installation location of the relay device to be set and perform the operation setting, which is inconvenient.
  • IP Internet Protocol
  • telnet Telecommunication network
  • the IP address of the relay device is not always known (or can be acquired). Therefore, various technologies for enabling remote operation setting of an electronic device whose IP address is unknown have been proposed, and an example thereof is the technology disclosed in Patent Document 1.
  • Patent Document 1 discloses a technique for performing remote maintenance / maintenance of an electronic device that performs communication based on SIP (Session Initiation Protocol) with a so-called information home appliance and implements a function specific to the device.
  • SIP Session Initiation Protocol
  • SIP is one of communication protocols in the application layer, and is a session control protocol for establishing, changing, and terminating a communication session for realizing bidirectional real-time communication typified by an IP phone.
  • a communication message (such as an INVITE message in which a command requesting establishment of the communication session is written) is transmitted via the SIP server. Transmission / reception is performed.
  • the SIP server refers to “SIP URI (Uniform Resource Identifier)”, which is an identifier for uniquely identifying an electronic device in SIP (that is, a higher layer communication address than IP), and a network lower than SIP. It is a computer device that stores a pair of IP addresses, which are communication addresses for uniquely identifying the electronic device in the layer, as position information, and relays communication messages using the position information.
  • SIP is extended so that remote maintenance / command can be transmitted and received (GetLog, etc., see paragraphs 0040 to 41 of Patent Document 1), and the expanded SIP
  • various commands for operation setting are transmitted from the remote maintenance operation terminal to the operation setting target electronic device, and the electronic device is caused to interpret and execute the command. Thereby, even if the IP address of the electronic device targeted for operation setting is unknown, the remote operation setting can be realized.
  • the present invention has been made in view of the above problems, and an object of the present invention is to provide a technique that enables remote operation setting of an electronic device whose IP address is unknown without extending an existing communication protocol.
  • an aspect of the present invention includes a control unit that causes the electronic device to perform a specific operation, and a communication unit that transmits and receives a communication message via a communication network.
  • a first communication address used for identifying the electronic device when establishing a communication session with another device in accordance with a predetermined session control protocol, and the protocol layer below the session control protocol A second communication address used for identifying an electronic device is assigned, and the control means is a request message for requesting establishment of the communication session according to the session control protocol, A request in which an identifier for requesting permission to execute remote operation settings is written in the message body
  • a permission response message for permitting establishment of the communication session is generated, and the second communication address assigned to the electronic device is written in the message body portion Triggered by the communication means receiving a communication message including a first process of returning to the transmission source of the request message and a command having the second communication address assigned to the electronic device as a transmission destination address.
  • an electronic device configured to
  • a request source transmission source of the request message
  • Communication address for example, IP address
  • Remote operation setting for the electronic device is realized by transmitting a communication message in which an operation setting command is written with the second communication address acquired in this way as a destination.
  • the electronic device receiving the operation setting communicates whether or not it is a request for establishing a communication session for remote operation setting by determining whether or not the identifier is written in the message body part of the request message. It can be determined prior to session establishment.
  • writing some data in the message body part does not correspond to the change of the message format and does not correspond to the addition of a new communication message, and therefore does not add an extension to the session control protocol. Therefore, according to the present invention, it is possible to realize the remote operation setting of an electronic device whose IP address is unknown without extending an existing communication protocol.
  • the electronic apparatus further includes a storage unit that preliminarily stores an operation definition parameter that defines an operation specific to the electronic device, and the control unit causes the electronic device to execute an operation specific to the operation specification parameter.
  • the control means receives the communication specification parameter stored in the storage means when the communication means receives a communication message including a command instructing rewriting of the action specification parameter in the second process. The electronic device may be rewritten according to the command.
  • the storage means stores a remote operation setting enable / disable flag indicating whether or not remote operation setting is permitted as one of the operation specification parameters or separately from the operation specification parameters.
  • the control means may be an electronic device that returns the permission response message when the request message is received only when the remote operation setting availability flag is stored in the storage means.
  • whether the control means of the electronic device establishes the communication session with a transmission source of a communication message including a command instructing rewriting of the operation specification parameter in the second processing It may be determined whether or not the operation defining parameter is rewritten according to a command included in the communication message only when the communication session is established. According to such an aspect, even if the second communication address can be obtained illegally without establishing a communication session, the remote operation setting of the electronic device can be performed using the second communication address. It can be prevented from being performed.
  • the storage means of the electronic device stores a session management table in which a communication address of a communication session establishment destination is registered, and the control means transmits in the first process.
  • ACK acknowledgment
  • a third process for writing the original communication address to the session management table is executed prior to the second process, and when a predetermined time elapses after the writing, the communication address is stored in the session management table.
  • a fourth process to be deleted from the communication message is executed, and in the second process, the communication source of the communication message is communicated.
  • the address is registered in the session management table, it may be determined that a communication session is established between the source of the communication message. According to such an aspect, it is possible to appropriately cope with a so-called SYN flood-like attack. Details will be made clear in the description of the modification of the present invention.
  • the first communication address used for identifying the electronic device when establishing a communication session with another device in accordance with a predetermined session control protocol and the session control.
  • a second communication address used to identify the electronic device is assigned in a protocol layer lower than the protocol, and has a function of transmitting and receiving communication messages via the communication network and performs a specific operation.
  • An operation setting method for an electronic device having a function to generate a request message for requesting that an operation terminal connected to the communication network establish a communication session according to the session control protocol, and the message Before writing an identifier requesting permission to execute remote operation settings in the body The first step of transmitting to the electronic device, and the electronic device that has received the request message transmitted from the operation terminal generates a permission response message to permit establishment of a communication session, and in the message body portion A second step of writing the second communication address assigned to the electronic device and returning it to the operation terminal; and the operation terminal receiving the permission response message transmitted from the electronic device sends a specific command
  • a third step of transmitting a communication message including the second communication address written in the message body part of the permission response message as a transmission destination address; and receiving the communication message transmitted from the operation terminal A fourth step in which the electronic device performs predetermined control according to the command.
  • FIG. 3 is a block diagram illustrating a configuration example of a relay device 30.
  • FIG. 4 is a flowchart showing a flow of communication session management processing executed by a control unit 310 of the relay device 30. It is a flowchart which shows the flow of the operation
  • 2 is a diagram illustrating an example of a communication sequence in the communication system 1.
  • FIG. 2 is a diagram illustrating an example of a communication sequence in the communication system 1.
  • FIG. 1 is a diagram illustrating a configuration example of a communication system 1 including relay devices 30A and 30B which are an embodiment of an electronic apparatus according to the invention.
  • the communication system 1 is configured, for example, by connecting a local LAN (in FIG. 1, local LANs 20A and 20B) to a general public network 10 installed at each base of a company.
  • the general public network 10 is the Internet, for example, and is a communication network that is jointly used by an unspecified number of people.
  • a SIP server 40 is connected to the general public network 10.
  • the SIP server 40 stores a pair of “SIP URI” and an IP address as position information, and uses this position information to relay a communication message transmitted and received in accordance with SIP. Device. Since the SIP server 40 is not different from the conventional SIP server, detailed description thereof is omitted.
  • the local LAN 20A is connected to the general public network 10 via the relay device 30A
  • the local LAN 20B is connected to the general public network 10 via the relay device 30B.
  • the relay devices 30A and 30B are, for example, routers, and each is assigned a unique IP address. In the present embodiment, the relay devices 30A and 30B have the same configuration. For this reason, in the following, when it is not necessary to distinguish between the relay devices 30A and 30B, they are referred to as “relay device 30”.
  • the relay device 30 includes a communication device connected to the local LAN in the connection destination and another communication device (for example, a communication device connected to the general public network 10 or a communication device connected to another local LAN). And packet communication performed in accordance with IP.
  • each of the relay devices 30A and 30B is assigned a unique “SIP URI”, and has a function of establishing a communication session with another communication device in accordance with a SIP-compliant procedure.
  • a pair of the “SIP URI” and the IP address assigned to the relay device 30 is registered (registered) in the SIP server 40 as position information.
  • the operation terminal 50 is connected to the local LAN 20A.
  • the operation terminal 50 is, for example, a personal computer, and a telnet client program is installed in advance.
  • the telnet client program is a program for realizing remote login (telnet connection).
  • the user of the operation terminal 50 designates a remote login destination electronic device (for example, designation of a remote login destination IP address) and various commands to be given to the electronic device via a user interface provided by the telnet client program. Input can be made.
  • the command or the like input in this way is transmitted to the connected electronic device according to telnet.
  • the remote operation setting of the relay device 30 is realized by using this telnet client program to remotely log in to the relay device 30 and giving an operation setting command (hereinafter, operation setting command).
  • the operation terminal 50 may be serially connected to the relay device 30A, and a telnet client program on the relay device 30A may be executed to make a telnet connection to the relay device 30B.
  • FIG. 1 illustrates the case where one operation terminal 50 is connected to the local LAN 20A, but a plurality of communication devices other than the operation terminal 50 may be connected to the local LAN 20A. Similarly, a plurality of communication devices may be connected to the local LAN 20B.
  • the user of the operation terminal 50 uses both “SIP URI” and IP address in advance for the relay device 30A belonging to the same segment as the operation terminal 50 (that is, connected to the same local LAN 20A). I know only the "SIP URI" for the relay device 30B. For this reason, the user of the operation terminal 50 cannot make the telnet connection of the operation terminal 50 to the relay device 30B, and it seems that the remote operation setting of the relay device 30B cannot be performed.
  • the relay device 30 is configured to perform remote operation setting if the “SIP URI” is known even if the IP address is unknown, and this is a feature of this embodiment.
  • the relay device 30 that is a feature of the present embodiment will be mainly described.
  • FIG. 2 is a block diagram illustrating a configuration example of the relay device 30.
  • the relay device 30 includes a control unit 310, a first communication interface (hereinafter referred to as I / F) unit 320, a second communication I / F unit 330, an external device I / F unit 340, and a storage unit 350. , And a bus 360 that mediates data exchange between these components.
  • I / F first communication interface
  • the control unit 310 is, for example, a CPU (Central Processing Unit).
  • the control unit 310 is a control that centrally controls the operation of each unit of the relay device 30 by executing a program (firmware) stored in the storage unit 350 (more precisely, the nonvolatile storage unit 354). Serves as a means. Details of processing executed by the control unit 310 according to the firmware will be clarified later.
  • the first communication I / F unit 320 and the second communication I / F unit 330 are both NIC (Network Interface Card) and are connected to different communication networks. Specifically, the second communication I / F unit 330 is connected to the general public network 10 in both the relay devices 30A and 30B. On the other hand, the first communication I / F unit 320 of the relay device 30A is connected to the local LAN 20A, and the first communication I / F unit 320 of the relay device 30B is connected to the local LAN 20B.
  • NIC Network Interface Card
  • the first communication I / F unit 320 and the second communication I / F unit 330 divide a packet (communication message by a predetermined data size by a predetermined amount of data received from each connection destination communication network, The data block obtained by adding the header is transferred to the control unit 310 and the packet transferred from the control unit 310 is sent to each communication network of the connection destination. That is, the first communication I / F unit 320 serves as a communication unit that transmits and receives communication messages via the local LAN of the connection destination, and the second communication I / F unit 330 passes through the general public network 10. It serves as a communication means for transmitting and receiving communication messages.
  • the external device I / F unit 340 exchanges data with an external device such as an external storage medium (for example, a USB (Universal Serial Bus) memory) or a serial console according to a predetermined protocol (USB or RS-232C).
  • an external device such as an external storage medium (for example, a USB (Universal Serial Bus) memory) or a serial console according to a predetermined protocol (USB or RS-232C).
  • USB Universal Serial Bus
  • RS-232C RS-232C interface
  • the storage unit 350 includes a volatile storage unit 352 and a nonvolatile storage unit 354.
  • the volatile storage unit 352 is a volatile memory such as a RAM (Random Access Memory), and is used as a work area when the control unit 310 executes firmware.
  • the volatile storage unit 352 also stores a session management table for registering the communication address of an electronic device that has established a communication session with the relay device 30. The timing of registering and deleting the communication address in the session management table will be clarified in the operation example.
  • the non-volatile storage unit 354 is a non-volatile memory such as EPROM (Erasable Programmable Read Only Memory).
  • the nonvolatile storage unit 354 stores various types of data in addition to firmware.
  • the operation defining parameter is a parameter that defines the unique operation of the relay device 30.
  • the operation defining parameters of the present embodiment include a parameter (not shown) that defines the operation of the relay device 30 as a relay device (that is, an operation in packet relay processing) and a remote operation setting availability flag.
  • parameters that define unique operations in packet relay processing include VPN connection destination addresses, parameters used for the connection (for example, parameters used for encrypted communication), parameters for specifying packets to be filtered, and the like. . These parameters are also called router config. By rewriting this router configuration, the operation of the packet relay processing executed by the relay device 30 can be changed.
  • the remote operation setting enable / disable flag is binary data (in this embodiment, data having a value of “1” or “0”). If the value is “1”, the remote operation setting is executed. If the value is “0”, the remote operation setting is not allowed to be executed.
  • the remote operation setting enable / disable flag is set to “1” or “0” at the time of shipment of the relay device 30 according to an instruction given from a serial console connected to the external device I / F unit 340.
  • the value may be rewritten by remote operation setting.
  • the remote operation setting flag is included in the operation specification parameter.
  • the remote operation setting flag is stored in the nonvolatile storage unit 354. Also good.
  • the firmware stored in the nonvolatile storage unit 354 is a program for causing the control unit 310 to execute packet relay processing, communication session management processing, and operation setting processing, as shown in FIG.
  • the control unit 310 reads the firmware from the nonvolatile storage unit 354 to the volatile storage unit 352 and starts executing the firmware.
  • the packet relay process executed by the control unit 310 in accordance with the firmware is a process in which router-specific operations such as VPN establishment and packet relay are performed according to the operation defining parameters. Since this packet relay process is not different from that in a general relay apparatus, detailed description is omitted.
  • FIG. 3 is a flowchart showing a flow of a communication session management process executed by the control unit 310 according to the firmware
  • FIG. 4 is a flowchart showing a flow of an operation setting process executed by the control unit 310 according to the firmware.
  • the communication session management process is a process for determining whether or not the establishment of a communication session is requested from another electronic device in accordance with a SIP-compliant procedure.
  • the operation setting process determines whether or not a telnet connection is requested from another electronic device. When the telnet connection is permitted, an operation setting command is transmitted to the operation setting command transmitted from the connected electronic device. Therefore, it is a process of rewriting the operation regulation parameter.
  • the feature of this embodiment is in these communication session management processing and operation setting processing. Details of the communication session management process and the operation setting process will be clarified in an operation example in order to avoid duplication. The above is the configuration of the relay device 30.
  • the operation of the relay device 30 will be described by taking as an example the case where the operation manager of the communication system 1 operates the operation terminal 50 to set the operation of the relay device 30B.
  • the “SIP URI” assigned to the relay device 30A is sip: xxx @ aaa
  • the “SIP URI” assigned to the relay device 30B is sip: yyy @ bbb. Suppose there is.
  • FIG. 5 is a diagram illustrating an example of a communication sequence in the communication system 1.
  • the control unit 310 of the relay device 30A which has been instructed to perform the remote operation setting, uses the “SIP URI” (ie, sip: yyy @ bbb) instructed by the user as a communication session establishment destination.
  • An establishment request message (FIG. 5: INVITE) is generated, and an identifier (character string “remote setup” in this operation example) requesting permission to execute remote operation setting is written and transmitted in the message body part.
  • the communication session establishment request message transmitted from the relay device 30A in this way is received by the SIP server 40 as shown in FIG. Note that an identifier peculiar to the present embodiment is written in the message body part of the communication session establishment request message.
  • the SIP server 40 does not discard the communication session establishment request message in which the identifier is written in the message body part.
  • the SIP server 40 upon receiving the communication session establishment request message, the SIP server 40 relays a communication message (FIG. 5: “100 Trying”) notifying that processing corresponding to the request is being executed. Reply to device 30A. Then, the SIP server 40 identifies the IP address corresponding to the “SIP URI” designated as the establishment destination of the communication session in the communication session establishment request message with reference to the location information registered in the own device, The communication session establishment request message is transferred to the IP address. Thereby, the communication session establishment request message is transferred to the relay device 30B. When the control unit 310 of the relay device 30B receives the communication session establishment request message via the second communication I / F unit 330, the communication message (FIG. 5) notifies that the processing corresponding to the request is being executed. : "100 Trying”) is returned, and the communication session management process is executed.
  • a communication message (FIG. 5: “100 Trying”) notifying that processing corresponding to the request is being executed.
  • FIG. 3 is a flowchart showing the flow of communication session management processing.
  • the control unit 310 of the relay device 30B first determines whether or not the received communication session establishment request message requests establishment of a communication session and permission to execute remote operation settings. Is determined (step SA100). Specifically, the control unit 310 analyzes the message body part of the received communication session establishment request message, and determines whether or not a predetermined identifier (character string “remote setup” in the present embodiment) is written. judge. If the identifier is written, the control unit 310 determines that the remote operation setting execution permission is requested.
  • a predetermined identifier character string “remote setup” in the present embodiment
  • step SA110 When the determination result in step SA100 is “No”, if the relay device 30 has a function related to voice communication such as the VoIP function, the control unit 310 is the same as when a normal communication session establishment request message is received. (FIG. 3: normal SIP processing) is executed (step SA110). For example, an identifier (for example, “SIP URI”) indicating the transmission source of the communication session establishment request message is displayed on a display device or the like, and the user is inquired whether the communication session can be established. On the other hand, when the determination result of step SA100 is “Yes”, control unit 310 executes the processes after step SA120. As described above, a predetermined identifier is written in the message body part of the communication session establishment request message transmitted from the relay device 30A in this operation example. For this reason, the determination result of step SA100 is “Yes”, and the processes after step SA120 are executed.
  • a predetermined identifier is written in the message body part of the communication session establishment request message transmitted from the relay device 30A in this operation example
  • step SA120 is a process in which the control unit 310 confirms whether or not the setting for permitting the execution of the remote operation setting has been made. Specifically, the control unit 310 is set to allow execution of remote operation setting if the value of the remote operation setting enable / disable flag stored in the nonvolatile storage unit 354 is “1”. Is determined. On the contrary, if the value of the remote operation setting enable / disable flag is “0”, the control unit 310 determines that the setting that does not allow the execution of the remote operation setting is made. If the determination result in step SA120 is “No”, control unit 310 returns a rejection response message (for example, 406 Not Acceptable) to reject establishment of the communication session (step SA130), and this communication session. The management process ends.
  • a rejection response message for example, 406 Not Acceptable
  • step SA120 determines whether the remote operation setting enable / disable flag stored in the nonvolatile storage unit 354 of the relay device 30B is “1”, the determination result in step SA120 is “Yes”, and the steps after step SA140 are performed. Processing is executed.
  • step SA140 is a process of returning a permission response message (FIG. 5: “200 OK”) for permitting establishment of a communication session.
  • the control unit 310 of the relay device 30B sets the IP address assigned to the own device and the port number of the communication port that accepts the telnet connection in text format in SDP (Session Descript Protocol). Therefore, write back in the message body part.
  • the control unit 310 of the relay device 30B waits for an acknowledgment response (so-called ACK) to be returned from the transmission destination (FIG. 3: step SA150).
  • ACK acknowledgment response
  • the communication port that accepts the telnet connection is a so-called well-known port, the port number can be omitted.
  • the permission response message transmitted from the relay device 30B as described above reaches the relay device 30A via the SIP server 40 as shown in FIG.
  • the control unit 310 of the relay device 30A that has received this permission response message reads the IP address and port number written in the message body part of the permission response message, and uses it as remote operation setting destination information indicating the remote operation setting destination.
  • the control unit 310 of the relay device 30A returns an acknowledgment (FIG. 5: ACK) with the IP address included in the remote operation setting destination information as the transmission destination address and the IP address of the own device as the transmission source address. To do.
  • the confirmation response returned from the relay device 30A in this way is appropriately routed in the general public network 10 and reaches the relay device 30B.
  • control unit 310 of relay device 30B Upon receiving the confirmation response (FIG. 3: Step SA150, Yes), control unit 310 of relay device 30B registers the transmission source address in the session management table as a communication address indicating the establishment destination of the communication session (FIG. 3: Step SA160), the communication session management process is terminated.
  • the user of the operation terminal 50 When the user of the operation terminal 50 confirms the establishment of a communication session between the relay device 30A and the relay device 30B by the notification, the user of the operation terminal 50 establishes a telnet connection to the connection destination indicated by the remote operation setting destination information. Give instructions to do so.
  • the control unit 310 of the relay device 30A to which such an instruction is given generates a communication message for requesting a telnet connection, and transmits the communication message to the IP address and port number indicated by the remote operation setting destination information.
  • the communication address of the relay device 30A is written as the transmission source address
  • the communication address shown in the remote operation setting destination information is written as the transmission destination address.
  • the communication message transmitted from the relay device 30A in this way is appropriately routed in the general public network 10 and sent to the electronic device (that is, the relay device 30B) having the remote operation setting destination address without going through the SIP server 40. To reach.
  • FIG. 4 is a flowchart showing a flow of operation setting processing executed by the control unit 310 of the relay device 30B when a communication message for requesting the telnet connection is received.
  • the control unit 310 first determines whether or not a communication session has been established with the transmission source of the communication message (step SB100). Specifically, when the transmission source address of the communication message is registered in the session management table, control unit 310 determines that a communication session has been established with the communication message transmission source. On the contrary, when the transmission source address is not registered in the session management table, it is determined that a communication session is not established with the transmission source.
  • control unit 310 telnet-connects the transmission source of the communication message (step SB110), and is transmitted from the connection destination thereafter. Execute the incoming command.
  • the communication message is transmitted from the relay device 30A to the relay device 30B, the communication address of the relay device 30A is registered in the session management table of the relay device 30B. Therefore, in this operation example, the determination result of step SB100 is “Yes”, and the process of step SB110 is executed.
  • the user of the operation terminal 50 transmits various operation setting commands to the relay device 30B via the relay device 30A, and causes the control unit 310 of the relay device 30B to interpret and execute these operation setting commands. Thereby, the operation defining parameter of the relay device 30B is rewritten according to the operation setting command, and the remote operation setting of the relay device 30B is realized.
  • the control unit 310 of the relay device 30A When the user of the operation terminal 50 completes the remote operation setting of the relay device 30B, the user instructs the relay device 30A to disconnect the telnet connection, and further instructs the relay device 30A to disconnect the communication session. Then, the control unit 310 of the relay device 30A generates a communication session disconnection notification message (FIG. 5: BYE) for notifying the disconnection of the communication session and transmits it to the relay device 30B. Upon receiving the communication session disconnection notification message, control unit 310 of relay device 30B returns an acknowledgment (FIG. 5: ACK) and deletes the source address of the communication session disconnection notification message from the session management table. Complete the disconnection of the communication session.
  • ACK acknowledgment
  • the user of the operation terminal 50 illegally acquires the IP address of the relay device 30B by some method and tries to establish a telnet connection using the IP address as the destination address. Even if an illegal telnet connection is attempted in this way, the communication address of the relay device 30A is not registered in the session management table of the relay device 30B, so the determination result in step SB100 described above is “No”. For this reason, the relay device 30A is not telnet-connected to the relay device 30B, and the operation setting of the relay device 30B is not performed via the relay device 30A.
  • the value of the remote operation setting enable / disable flag is set to “0”, the communication session is not established between the relay device 30A and the relay device 30B, and the telnet connection is provided on the condition that the communication session is established. Therefore, even if the IP address of the relay device 30B is illegally acquired, it is possible to reliably prevent the remote operation setting by the illegal telnet connection to the relay device 30B using the IP address. be able to.
  • the relay device 30 in which the value of the remote operation setting enable / disable flag is set to “1” conforms to SIP even if the IP address is unknown.
  • an IP address is acquired, and remote operation setting can be performed.
  • a predetermined identifier is written in the message body part of the communication session establishment request message to clearly indicate that it is a communication session establishment request for remote operation setting.
  • the writing of does not extend the SIP. That is, according to the present embodiment, it is possible to perform remote operation setting of a relay device whose IP address is unknown without expanding SIP.
  • the present invention is applied to the operation setting of the router has been described, but the present invention may of course be applied to the operation setting of the gateway device.
  • the application target of the present invention is not limited to the operation setting of a relay device such as a router or a gateway device, but also to the operation setting of a communication device located at a terminal node such as a WWW server or an application server or a so-called information appliance Applicable.
  • the present invention can be applied to the operation setting (that is, the rewriting of the operation defining parameter).
  • SIP is used as a communication protocol for establishing a communication session, but other session control protocols can also be used.
  • any session control protocol that can acquire the communication address (for example, IP address) of the lower protocol layer for the establishment destination in the establishment process of the communication session may be used.
  • telnet is used as a communication protocol for transmitting and receiving commands for operation setting, but other communication protocols may be used.
  • an operation setting command to be executed and a parameter to be set may be transmitted using the POST method of HTTP (HyperText Transfer Protocol).
  • a communication session is established by a procedure compliant with SIP, and only when the communication session is established, a telnet connection is permitted to the establishment destination of the communication session and remote operation is performed. Setting was made.
  • the number of operation terminals that can establish a communication session for remote operation setting with the relay device 30 may be limited to one in order to avoid a conflict of remote operation setting.
  • a request for establishing a communication session for remote operation setting is further made to the relay device 30 that has already established a communication session for remote operation setting, a request for the establishment request is made. What is necessary is just to make the control part 310 of the relay apparatus 30 perform the process which returns a rejection response message unconditionally to the origin.
  • a mode is also conceivable in which a plurality of operation terminals are allowed to establish a communication session for remote operation setting.
  • the communication is performed when a certain time has elapsed since the communication session was established. It is preferable to cause the control unit 310 to execute processing for disconnecting the session. This is to cope with a so-called SYN flood-like attack.
  • SYN flood is an attack technique that makes a communication device inoperable by using the weakness of a 3-way handshake that is a procedure for establishing a communication connection in TCP.
  • the relay device 30 is requested to establish a communication session, and if it is established, it is left without performing a telnet connection, and the communication of the operation terminal is performed. It may be possible to continue requesting establishment of a communication session while changing the address.
  • the relay device 30 has a function of disconnecting the communication session when a predetermined time has elapsed after the establishment of the communication session.
  • the communication address of the establishment destination of the communication session will continue to be registered in the session management table, eventually causing an overflow and becoming inoperable. turn into.
  • a function to disconnect the communication session when a certain time has elapsed after establishing the communication session is provided, even if an attack similar to SYN flood is made, it is registered in the session management table Since the communication address is deleted after a lapse of a certain time from the registration, the overflow does not occur as described above, and the operation is not disabled.
  • the permission response message when the value of the remote operation setting availability flag is “1”, the permission response message is unconditionally returned to the control unit 310. However, even if the communication session establishment request message in which the predetermined identifier is written in the message body part is received and the value of the remote operation setting enable / disable flag is “1”, the permission response message is unconditionally sent.
  • the permission response message may be returned only when the communication session establishment request message is sent from a predetermined electronic device without replying.
  • an IP address (or “SIP URI”) of an electronic device that can execute remote operation setting for the relay device 30B is registered in the relay device 30B in advance, and the received communication session establishment request message Only when the transmission source address is the IP address (or “SIP URI”), the control unit 310 is caused to execute a process of returning a permission response message.
  • connection may be permitted only when a telnet connection is requested from a communication device having a predetermined communication address.
  • the connection with the requester of the telnet connection is allowed.
  • the telnet connection may be permitted regardless of whether or not a communication session is established. This is because, in such an aspect, the remote operation setting request source is limited in advance, so that there is little possibility of unauthorized remote operation setting being performed.
  • a specific method for registering a communication device that permits telnet connection in advance a mode in which the communication address of such a communication device is stored in advance in the nonvolatile storage unit 354 or a communication session is established even once.
  • the communication address may be stored in the nonvolatile storage unit 354.
  • the user of the operation terminal 50 operates the operation terminal 50 to log in to the relay device 30A, and the remote operation setting target relay device (relay device 30B in the above-described operation example) “ After providing a SIP URI "to the relay device 30A and establishing a communication session with the relay device 30B according to a SIP-compliant procedure, the IP address and port number of the relay device 30B obtained in the establishment process are used.
  • the remote device 30B is separately logged in separately to set the operation of the relay device 30B.
  • the relay device 30A is instructed to disconnect the telnet connection and the communication session.
  • a telnet connection that uses the communication address (“SIP URI” or telephone number) of the upper layer of the relay device (for example, the relay device 30B) as a remote operation setting target as an argument.
  • the user of the operation terminal 50 is caused to perform an operation of giving a command (for example, an open command) to the relay device 30A.
  • a command for example, an open command
  • the control unit 310 of the relay device 30A executes the following processing.
  • a communication session is established in accordance with the SIP-compliant procedure with the upper layer communication address (“053XXXXXX” in the above example) given as an argument of the telnet connection command (in the above example) as an argument. Then, using the IP address and port number of the connection destination obtained in the establishment process, a process of performing a telnet connection to the connection destination (a process of executing a telnet command using these IP address and port number as arguments) is executed.
  • a telephone number is given as the communication address of the upper layer, it is only necessary to establish a communication session using “SIP: URI” after conversion to “SIP: phone number @ domain” and “SIP_URI”. .
  • the control unit 310 of the relay device 30A executes a process of disconnecting the communication session along with the disconnection. According to such an aspect, it is possible to obtain an effect that the operation burden on the user is reduced by the operations for establishing and disconnecting the communication session.
  • a program that causes the control unit 310 of the relay device 30 to execute processing that clearly shows the characteristics of the present invention is stored in the storage unit 350 of the relay device 30 in advance.
  • the program may be distributed by being written on a computer-readable recording medium such as a CD-ROM (Compact Disk-Read Memory) or downloaded via a telecommunication line such as the Internet. You may distribute it.
  • the program distributed in this way is stored in a general relay device, and then the control unit of the relay device is operated according to the program (so-called firmware upgrade) to the existing relay device. This is because functions similar to those of the relay device of the above embodiment can be provided.
  • the remote operation setting of the relay device 30B is realized by giving an operation setting command after remotely logging in to the relay device 30B.
  • a command for instructing rewriting of the operation defining parameter of the relay device 30B is given.
  • the type of command is not limited to a command that instructs rewriting of the operation defining parameter.
  • a command instructing firmware update, log acquisition (statistics, diagnosis, status display), execution of a specific script (for example, Lua script), etc. is sent to the relay device 30B, so that the command is sent to the relay device 30B. You may make it perform predetermined control according to a command.
  • DESCRIPTION OF SYMBOLS 10 ... General public network, 20A, 20B ... Local LAN, 30, 30A, 30B ... Relay apparatus, 310 ... Control part, 320 ... 1st communication I / F part, 330 ... 2nd communication I / F part, 340 ... External device I / F unit, 350 ... storage unit, 352 ... volatile storage unit, 354 ... non-volatile storage unit, 360 ... bus, 40 ... SIP server, 50 ... operation terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

 既存の通信プロトコルを拡張することなく、IPアドレスが不明な電子機器の遠隔動作設定を行うことを可能にする。動作設定元の中継装置30Aと動作設定を受ける側の中継装置30Bとの間でSIPサーバ40を介してSIPに準拠した手順で通信セッションを確立する。そして、通信セッションの確立過程で取得される中継装置30BのIPアドレスを宛先アドレスとして中継装置30Aは中継装置30Bにtelnet接続し、その動作設定を行う。

Description

電子機器、および電子機器の動作設定方法
 本発明は、電子機器の動作設定を行う技術に関し、特に、遠隔地から動作設定を行う技術に関する。
 企業等においては、支社などの各拠点に敷設される拠点内LAN(Local Area Network)を相互に接続して全社的な情報システムを構築することが一般に行われている。従来、各拠点内LANの相互接続には、十分な通信速度を確保し、さらに、セキュリティを確保するという観点から、専用線接続が採用されることが多かった。しかし、近年では、ルータなどの中継装置を介して各拠点内LANを一般公衆網(例えば、インターネット)に接続して情報システムを構築することが一般的になってきている。これは、専用線の敷設および維持管理には多大な費用がかかるといった問題があったことに加えて、光通信やVPN(Virtual Private Network)の普及に伴い、一般公衆網を介して高速かつセキュリティの高いデータ通信を行うことが可能になったからである。このように、中継装置を用いて拠点内LANを一般公衆網に接続する態様では、中継装置の動作設定を適切に行っておくことが必要である。ここで、中継装置の動作設定とは、例えばVPNの接続先やその接続に用いる各種パラメータの設定、フィルタリングの対象パケットを特定するデータの設定などを行うことである。
 従来、中継装置の動作設定は、設定対象の中継装置にシリアルコンソールを接続し、そのシリアルコンソールを介したコマンド入力により行われることが一般的であった。しかし、このような態様では、その設定作業を行う技術者(例えば、ネットワーク管理者)は設定対象の中継装置の設置場所に赴いてその動作設定を行わねばならず、不便であった。なお、設定対象の中継装置のIP(Internet Protocol)アドレスが判っているのであれば、telnet(Telecommunication network)などによりその中継装置に遠隔ログインして動作設定を行うことが可能であるが、設定対象の中継装置のIPアドレスが常に判っている(或いは、取得できる)とは限らない。そこで、IPアドレスが不明な電子機器の遠隔動作設定を可能にする技術が種々提案されており、その一例としては特許文献1に開示された技術が挙げられる。
 特許文献1には、所謂情報家電などとSIP(Session Initiation Protocol)に準拠した通信を行い、機器固有の機能を実現する電子機器の遠隔保守・メンテナンスを実現する技術が開示されている。ここで、SIPとは、アプリケーション層の通信プロトコルの1つであって、IP電話などに代表される双方向リアルタイム通信を実現するための通信セッションの確立や変更、終了を行うセッション制御プロトコルである。SIPにおいては、通常、通信セッションの確立先の電子機器のIPアドレスが不明である場合には、SIPサーバを介して通信メッセージ(通信セッションの確立を要求するコマンドが書き込まれたINVITEメッセージなど)の送受信が行われる。なお、SIPサーバとは、SIPにおいて電子機器を一意に識別するための識別子(すなわち、IPよりも上位層の通信アドレス)である“SIP URI(Uniform Resource Identifier)”と、SIPよりも下位のネットワーク層においてその電子機器を一意に識別するための通信アドレスであるIPアドレスの対を位置情報として記憶し、その位置情報を使って通信メッセージの中継を行うコンピュータ装置のことである。特許文献1に開示された技術では、遠隔保守・メンテナンスを実現するためのコマンド(GetLog等、特許文献1段落0040~41参照)の送受信が可能なようにSIPを拡張し、当該拡張されたSIPにより操作設定用の各種コマンドを遠隔保守用の操作端末から動作設定対象の電子機器へと送信し、そのコマンドの解釈および実行を当該電子機器に行わせる。これにより、動作設定対象の電子機器のIPアドレスが不明であっても、その遠隔動作設定を実現することができるのである。
日本国特開2006-237996号公報
 しかし、特許文献1に開示された技術には、SIPの拡張(例えば、動作設定用のコマンドを送信するための新たな通信メッセージの追加等)に伴って、SIPサーバを使用する場合は電子機器だけでなくSIPサーバもその拡張に対応させなければならない、といった問題がある。何故ならば、SIPサーバが上記拡張に対応していないと、上記新たな通信メッセージはSIPの仕様からはずれた不適切なものであるとして破棄され、その宛先へ転送されることはないからである。また、特許文献1に開示された技術では、動作設定用のコマンドの送受信に先立って動作設定対象の電子機器と操作端末との間に通信セッションを確立しておく必要があるが、通信セッションの確立を行う時点では、その確立が動作設定のためのものであるか否かを上記電子機器に判別させることはできず、セキュリティ上の脆弱性がある、といった問題もある。
 本発明は上記課題に鑑みて為されたものであり、既存の通信プロトコルを拡張することなく、IPアドレスが不明な電子機器の遠隔動作設定を行うことを可能にする技術を提供することを目的とする。
 上記課題を解決するために本発明の態様は、固有の動作を当該電子機器に実行させる制御手段と、通信網を介して通信メッセージの送受信を行う通信手段と、を備え、当該電子機器には、予め定められたセッション制御プロトコルにしたがって他の機器と通信セッションを確立する際に当該電子機器を識別するために使用する第1の通信アドレスと、前記セッション制御プロトコルよりも下位のプロトコル階層において当該電子機器を識別するために使用する第2の通信アドレスとが割り当てられており、前記制御手段は、前記通信セッションを前記セッション制御プロトコルにしたがって確立することを要求する旨の要求メッセージであって、そのメッセージボディ部に遠隔動作設定の実行許可を要求する旨の識別子が書き込まれた要求メッセージを前記通信手段により受信したことを契機として、前記通信セッションの確立を許可する旨の許可応答メッセージを生成し、そのメッセージボディ部に当該電子機器に割り当てられた前記第2の通信アドレスを書き込んで前記要求メッセージの送信元へ返信する第1の処理と、当該電子機器に割り当てられた前記第2の通信アドレスを送信先アドレスとしたコマンドを含む通信メッセージを前記通信手段により受信したことを契機として、当該コマンドにしたがって所定の制御を行う第2の処理と、を実行するよう構成されることを特徴とする電子機器を提供する。なお、本発明の別の態様としては、上記第1の処理と第2の処理とをコンピュータ装置に実行させるプログラムを提供する態様も考えられる。
 このような電子機器によれば、所定のセッション制御プロトコルにしたがって通信セッションを確立する過程で、その通信セッションの確立を要求した要求元(上記要求メッセージの送信元)は、上記電子機器の第2の通信アドレス(例えば、IPアドレス)を取得することができる。このようにして取得される第2の通信アドレスを宛先として動作設定用コマンドを書き込んだ通信メッセージを送信することで、上記電子機器に対する遠隔動作設定が実現される。動作設定を受ける側の電子機器では、要求メッセージのメッセージボディ部に上記識別子が書き込まれているか否かを判別することによって、遠隔動作設定のための通信セッションの確立要求であるか否かを通信セッションの確立に先立って判別することができる。また、メッセージボディ部に何らかのデータを書き込むことは、メッセージフォーマットの変更には該当せず、新たな通信メッセージの追加にも該当しないのであるから、上記セッション制御プロトコルに拡張を加えるものではない。したがって、本発明によれば、既存の通信プロトコルの拡張を行うことなく、IPアドレスが不明な電子機器の遠隔動作設定を実現することが可能になる。
 上記態様においては、当該電子機器の固有の動作を規定する動作規定パラメータを予め記憶した記憶手段をさらに有し、前記制御手段は、前記動作規定パラメータにしたがって固有の動作を当該電子機器に実行させ、前記制御手段は、前記第2の処理において、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージを前記通信手段により受信したことを契機として、前記記憶手段に記憶された動作規定パラメータを当該コマンドにしたがって書き換えるような電子機器としてもよい。
 また、上記態様においては、前記記憶手段には、遠隔動作設定を許容するか否かを示す遠隔動作設定可否フラグが前記動作規定パラメータの1つとして、或いは前記動作規定パラメータとは別個に記憶されており、前記制御手段は、前記遠隔動作設定可否フラグが前記記憶手段に記憶されている場合にのみ、前記要求メッセージの受信を契機として前記許可応答メッセージを返信するような電子機器としてもよい。
 より好ましい態様においては、上記電子機器の制御手段は、前記第2の処理において、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージの送信元との間に前記通信セッションが確立されているか否かを判定し、前記通信セッションが確立されている場合にのみ当該通信メッセージに含まれているコマンドにしたがって前記動作規定パラメータを書き換えるようにしてもよい。このような態様によれば、通信セッションの確立を行うことなく上記第2の通信アドレスを不正に取得することができたとしても、その第2の通信アドレスを用いて電子機器の遠隔動作設定が行われることを防止することができる。
 さらに好ましい態様においては、上記電子機器の記憶手段には、通信セッションの確立先の通信アドレスが登録されるセッション管理テーブルが記憶されており、前記制御手段は、前記第1の処理にて送信した前記許可応答メッセージの送信先から、当該許可応答メッセージを受信したことを示す確認応答(所謂ACK)を受信したことを契機としてその送信先との間に通信セッションを確立し、その確認応答の送信元の通信アドレスを前記セッション管理テーブルに書き込む第3の処理を前記第2の処理に先立って実行するとともに、その書き込みを行った時から所定時間が経過した時点で当該通信アドレスを前記セッション管理テーブルから削除する第4の処理を実行し、前記第2の処理においては、前記通信メッセージの送信元の通信アドレスが前記セッション管理テーブルに登録されている場合に、前記通信メッセージの送信元との間に通信セッションが確立されていると判定するようにしてもよい。このような態様によれば、所謂SYNフラッド類似の攻撃が為されても適切に対処することが可能になる。なお、詳細については本発明の変形例の説明において明らかにする。
 また、本発明の別の態様においては、予め定められたセッション制御プロトコルにしたがって他の機器と通信セッションを確立する際に当該電子機器を識別するために使用する第1の通信アドレスと前記セッション制御プロトコルよりも下位のプロトコル階層において当該電子機器を識別するために使用する第2の通信アドレスとが割り当てられており、通信網を介して通信メッセージを送受信する機能を有するとともに、固有の動作を実行する機能を有する電子機器の動作設定方法であって、前記通信網に接続された操作端末が、通信セッションを前記セッション制御プロトコルにしたがって確立することを要求する旨の要求メッセージを生成し、そのメッセージボディ部に遠隔動作設定の実行許可を要求する旨の識別子を書き込んで前記電子機器へ送信する第1のステップと、前記操作端末から送信された前記要求メッセージを受信した前記電子機器が、通信セッションの確立を許可する旨の許可応答メッセージを生成し、そのメッセージボディ部に当該電子機器に割り当てられた前記第2の通信アドレスを書き込んで前記操作端末へ返信する第2のステップと、前記電子機器から送信された許可応答メッセージを受信した前記操作端末が、特定のコマンドを含む通信メッセージを、当該許可応答メッセージのメッセージボディ部に書き込まれている前記第2の通信アドレスを送信先アドレスとして送信する第3のステップと、前記操作端末から送信された前記通信メッセージを受信した前記電子機器が、前記コマンドにしたがって所定の制御を行う第4のステップと、を含むことを特徴とする電子機器の動作設定方法を提供する。
本発明の電子機器の一実施形態である中継装置30Aおよび30Bを含む通信システム1の構成例を示す図である。 中継装置30の構成例を示すブロック図である。 同中継装置30の制御部310が実行する通信セッション管理処理の流れを示すフローチャートである。 同制御部310が実行する動作設定処理の流れを示すフローチャートである。 通信システム1における通信シーケンスの一例を示す図である。 通信システム1における通信シーケンスの一例を示す図である。
 以下、図面を参照しつつ本発明の実施形態について説明する。
(A:構成)
 図1は、本発明の電子機器の一実施形態である中継装置30Aおよび30Bを含む通信システム1の構成例を示す図である。この通信システム1は、例えば企業の各拠点に敷設される拠点内LAN(図1では、拠点内LAN20Aおよび20B)を一般公衆網10に接続して構成される。一般公衆網10は、例えばインターネットであり、不特定多数の者によって共同利用される通信網である。図1に示すように、一般公衆網10にはSIPサーバ40が接続されている。前述したように、SIPサーバ40は、“SIP URI”と、IPアドレスとの対を位置情報として記憶し、この位置情報を使って、SIPに準拠して送受信される通信メッセージの中継を行うコンピュータ装置である。このSIPサーバ40については従来のSIPサーバと何ら変るところはないため、詳細な説明を省略する。
 拠点内LAN20Aは中継装置30Aを介して一般公衆網10に接続され、拠点内LAN20Bは中継装置30Bを介して一般公衆網10に接続される。中継装置30Aおよび30Bは、例えばルータであり、各々固有のIPアドレスが割り当てられている。本実施形態では、中継装置30Aと30Bは同一の構成を有している。このため、以下では、中継装置30Aと30Bの各々を区別する必要がない場合には「中継装置30」と表記する。中継装置30は、その接続先の拠点内LANに接続される通信装置と、他の通信装置(例えば、一般公衆網10に接続される通信装置や他の拠点内LANに接続される通信装置)との間でIPにしたがって行われるパケット通信を仲介する機能を有している。また、中継装置30Aおよび30Bの各々には、固有の“SIP URI”が割り当てられており、SIPに準拠した手順で他の通信装置との間に通信セッションを確立する機能も有している。そして、この“SIP URI”と中継装置30に割り当てられているIPアドレスの対が位置情報としてSIPサーバ40に登録(レジスト)されている。
 拠点内LAN20Aには、操作端末50が接続されている。この操作端末50は、例えばパーソナルコンピュータであり、telnetクライアントプログラムが予めインストールされている。telnetクライアントプログラムとは、遠隔ログイン(telnet接続)を実現するためのプログラムである。操作端末50のユーザは、telnetクライアントプログラムの提供するユーザインタフェースを介して、遠隔ログイン先の電子機器の指定(例えば、遠隔ログイン先のIPアドレスの指定等)や、その電子機器に与える各種コマンドの入力を行うことができる。このようにして入力されたコマンド等はtelnetにしたがってその接続先の電子機器に送信される。本実施形態では、このtelnetクライアントプログラムを利用して中継装置30に遠隔ログインし動作設定用のコマンド(以下、動作設定用コマンド)を与えることで、中継装置30の遠隔動作設定が実現される。なお、操作端末50を中継装置30Aにシリアル接続し、中継装置30A上のtelnetクライアントプログラムを実行して中継装置30Bにtelnet接続しても良い。さらに、図1では、1台の操作端末50が拠点内LAN20Aに接続されている場合を例示しているが、操作端末50の他に複数の通信装置が拠点内LAN20Aに接続されていても良いし、同様に、拠点内LAN20Bにも複数の通信装置が接続されていても良い。
 本実施形態では、操作端末50のユーザは、操作端末50と同一セグメントに属する(すなわち、同一の拠点内LAN20Aに接続されている)中継装置30Aについては“SIP URI”とIPアドレスの両者を予め知ってはいるが、中継装置30Bについては“SIP URI”のみしか知らない。このため、操作端末50のユーザは、操作端末50を中継装置30Bにtelnet接続させることはできず、中継装置30Bの遠隔動作設定を行えないかに見える。しかし、中継装置30は、IPアドレスが不明であっても、“SIP URI”が判っていれば遠隔動作設定を行えるように構成されており、この点に本実施形態の特徴がある。以下、本実施形態の特徴である中継装置30を中心に説明する。
 図2は中継装置30の構成例を示すブロック図である。
 図2に示すように、中継装置30は、制御部310、第1通信インタフェース(以下、I/F)部320、第2通信I/F部330、外部機器I/F部340、記憶部350、およびこれら構成要素間のデータ授受を仲介するバス360を含んでいる。
 制御部310は、例えばCPU(Central Processing Unit)である。この制御部310は、記憶部350(より正確には、不揮発性記憶部354)に記憶されているプログラム(ファームウェア)を実行することにより、中継装置30の各部の作動制御を中枢的に行う制御手段の役割を果たす。制御部310がファームウェアにしたがって実行する処理の詳細については後に明らかにする。
 第1通信I/F部320と第2通信I/F部330は、共にNIC(Network Interface Card)であり、各々異なる通信網に接続されている。具体的には、第2通信I/F部330は、中継装置30Aと30Bの何れにおいても、一般公衆網10に接続されている。一方、中継装置30Aの第1通信I/F部320は拠点内LAN20Aに、中継装置30Bの第1通信I/F部320は拠点内LAN20Bに各々接続されている。第1通信I/F部320と第2通信I/F部330は、各々の接続先の通信網から受信したパケット(通信メッセージを予め定められたデータサイズ分ずつに分割し、その各々に所定のヘッダを付与して得られるデータブロック)を制御部310へ引渡すとともに、制御部310から引渡されるパケットを各々の接続先の通信網へと送出する。つまり、第1通信I/F部320は、その接続先の拠点内LANを介して通信メッセージの送受信を行う通信手段の役割を果たし、第2通信I/F部330は一般公衆網10を介して通信メッセージの送受信を行う通信手段の役割を果たすのである。
 外部機器I/F部340は、外部記憶媒体(例えば、USB(Universal Serial Bus)メモリ等)やシリアルコンソールなどの外部機器との間で所定のプロトコル(USBやRS-232C)にしたがってデータの授受を行うインタフェースの集合体である。例えば、外部機器としてUSBメモリを用いる場合には、USBインタフェースを外部機器I/F部340に含めておけば良く、外部機器としてシリアルコンソールを用いる場合には、RS-232Cインタフェースなどのシリアルインタフェースを外部機器I/F部340に含めておけば良い。中継装置30BのIPアドレスが不明の場合、従来は、外部機器I/F部340にシリアルコンソールを接続して動作設定を行っていたのであるが、本実施形態では、第2通信I/F部330の接続先の一般公衆網10を介したデータ通信によっても中継装置30Bの動作設定(すなわち、遠隔動作設定)を行うことができる。
 記憶部350は、揮発性記憶部352と不揮発性記憶部354を含んでいる。揮発性記憶部352は、例えばRAM(Random Access Memory)などの揮発性メモリであり、制御部310がファームウェアを実行する際のワークエリアとして利用される。また、揮発性記憶部352には、中継装置30との間に通信セッションを確立している電子機器の通信アドレスを登録するセッション管理テーブルも格納される。このセッション管理テーブルへの通信アドレスの登録および削除のタイミングについては動作例において明らかにする。
 不揮発性記憶部354は、例えばEPROM(Erasable Programmable Read Only Memory)などの不揮発性メモリである。この不揮発性記憶部354には、ファームウェアの他に、各種データが予め記憶されている。不揮発性記憶部354に記憶されているデータの一例としては、図2に示すように、動作規定パラメータが挙げられる。動作規定パラメータとは、中継装置30の固有の動作を規定するパラメータである。本実施形態の動作規定パラメータには、中継装置30の中継装置としての動作(すなわち、パケット中継処理における動作)を規定するパラメータ(図示略)と、遠隔動作設定可否フラグとが含まれる。
 例えば、パケット中継処理における固有の動作を規定するパラメータとしては、VPNの接続先アドレスやその接続に用いるパラメータ(例えば、暗号化通信に用いるパラメータ)、フィルタリング対象のパケットを特定するパラメータなどが挙げられる。これらのパラメータはルータコンフィグとも呼ばれる。このルータコンフィグを書き換えることによって、中継装置30が実行するパケット中継処理の動作を変更することができる。一方、遠隔動作設定可否フラグは二値データ(本実施形態では、“1”または“0”の何れかの値を有するデータ)であり、その値が“1”あれば遠隔動作設定の実行を許容することを、その値が“0”であれば遠隔動作設定の実行を許容しないことを示す。この遠隔動作設定可否フラグについては、中継装置30の工場出荷時点で“1”または“0”にセットしておき、外部機器I/F部340に接続されるシリアルコンソールから与えられる指示に応じて、或いは、遠隔動作設定によってその値を書き換えても良い。この遠隔動作設定可否フラグを“0”から“1”(或いは“1”から“0”)に書き換えることで、遠隔動作設定の実行を許可するか否かについての設定が変更される。なお、本実施形態では、遠隔動作設定フラグを動作規定パラメータに含めたが、ルータコンフィグのみを動作規定パラメータとし、これとは別個に遠隔動作設定フラグを不揮発性記憶部354に記憶するようにしても良い。
 不揮発性記憶部354に格納されているファームウェアは、図2に示すように、パケット中継処理、通信セッション管理処理および動作設定処理を制御部310に実行させるためのプログラムである。制御部310は、中継装置30の電源(図示略)が投入されると、上記ファームウェアを不揮発性記憶部354から揮発性記憶部352に読み出し、その実行を開始する。制御部310がファームウェアにしたがって実行するパケット中継処理は、VPNの確立やパケットの中継などのルータ固有の動作を動作規定パラメータにしたがって行う処理である。このパケット中継処理については、一般的な中継装置におけるものと何ら変るところはないため、詳細な説明を省略する。
 図3は、ファームウェアにしたがって制御部310が実行する通信セッション管理処理の流れを示すフローチャートであり、図4は、同ファームウェアにしたがって制御部310が実行する動作設定処理の流れを示すフローチャートである。通信セッション管理処理は、他の電子機器からSIPに準拠した手順で通信セッションの確立を要求された場合にその可否を決定する処理である。一方、動作設定処理は、他の電子機器からtelnet接続を要求された場合にその可否を決定し、telnet接続を許可した場合にはその接続先の電子機器から送信されてくる動作設定用コマンドにしたがって動作規定パラメータを書き換える処理である。本実施形態の特徴は、これら通信セッション管理処理および動作設定処理にある。これら通信セッション管理処理と動作設定処理の詳細については重複を避けるため、動作例において明らかにする。
 以上が中継装置30の構成である。
(B:動作)
 次いで、通信システム1の運用管理者が操作端末50を操作して中継装置30Bの動作設定を行う場合を例にとって中継装置30の動作を説明する。なお、以下に説明する動作例では、中継装置30Aに割り当てられている“SIP URI”はsip:xxx@aaaであり、中継装置30Bに割り当てられている“SIP URI”はsip:yyy@bbbであるとする。
(B-1:遠隔動作設定の実行を許容する旨の設定がされている場合の動作)
 まず、中継装置30Bの不揮発性記憶部354に格納されている遠隔動作設定可否フラグの値が“1”である場合について説明する。操作端末50を操作して中継装置30Bの動作設定を行おうとするユーザは、まず、操作端末50にてtelnetクライアントプログラムを起動し、中継装置30Aに遠隔ログインする。そして、“SIP URI”がsip:yyy@bbbである電子機器(すなわち、中継装置30B)の遠隔動作設定を行う旨の指示を中継装置30Aに与える。なお、本動作例では、中継装置30Aに遠隔ログインして中継装置30Bの遠隔動作設定を行う旨の指示を与える場合について説明するが、操作端末50を中継装置30Aにシリアル接続して当該指示を与えても勿論良い。
 図5は、通信システム1における通信シーケンスの一例を示す図である。上記遠隔動作設定を行う旨の指示を与えられた中継装置30Aの制御部310は、ユーザにより指示された“SIP URI”(すなわち、sip:yyy@bbb)を通信セッションの確立先とする通信セッション確立要求メッセージ(図5:INVITE)を生成し、そのメッセージボディ部に遠隔動作設定の実行許可を求める旨の識別子(本動作例では、“remote setup”という文字列)を書き込んで送信する。このようにして中継装置30Aから送信された通信セッション確立要求メッセージは、図5に示すように、SIPサーバ40によって受信される。なお、上記通信セッション確立要求メッセージのメッセージボディ部には本実施形態特有の識別子が書き込まれているが、このような識別子をメッセージボディ部に書き込んだとしても、メッセージフォーマットの変更には該当せず、また、新たな通信メッセージの追加にも該当しない(すなわち、SIPの拡張には該当しない)。このため、上記識別子がメッセージボディ部に書き込まれた通信セッション確立要求メッセージがSIPサーバ40にて破棄されることはない。
 図5に示すように、SIPサーバ40は、上記通信セッション確立要求メッセージを受信すると、そのリクエストに応じた処理を実行中である旨を通知する通信メッセージ(図5:“100 Trying”)を中継装置30Aに返信する。そして、SIPサーバ40は、上記通信セッション確立要求メッセージにて通信セッションの確立先として指定された“SIP URI”に対応するIPアドレスを自装置に登録されている位置情報を参照して特定し、そのIPアドレス宛に上記通信セッション確立要求メッセージを転送する。これにより、上記通信セッション確立要求メッセージは中継装置30Bへ転送される。中継装置30Bの制御部310は、第2通信I/F部330を介して上記通信セッション確立要求メッセージを受信すると、そのリクエストに応じた処理を実行中である旨を通知する通信メッセージ(図5:“100 Trying”)を返信し、通信セッション管理処理を実行する。
 図3は、通信セッション管理処理の流れを示すフローチャートである。図3に示すように、中継装置30Bの制御部310は、まず、受信した通信セッション確立要求メッセージが、通信セッションの確立を要求するとともに遠隔動作設定の実行許可を要求するものであるか否かを判定する(ステップSA100)。具体的には、制御部310は、受信した通信セッション確立要求メッセージのメッセージボディ部を解析し、所定の識別子(本実施形態では、“remote setup”という文字列)が書き込まれているか否かを判定する。制御部310は、当該識別子が書き込まれている場合には、遠隔動作設定の実行許可を要求するものであると判定する。
 ステップSA100の判定結果が“No”である場合、中継装置30がVoIP機能などの音声通信に関する機能を有していれば、制御部310は、通常の通信セッション確立要求メッセージを受信した場合と同一の処理(図3:通常のSIP処理)を実行する(ステップSA110)。例えば、通信セッション確立要求メッセージの送信元を示す識別子(例えば、“SIP URI”)を表示装置等に表示させ、通信セッション確立の可否をユーザに問い合わせる、といった具合である。一方、ステップSA100の判定結果が“Yes”である場合には、制御部310は、ステップSA120以降の処理を実行する。前述したように、本動作例において中継装置30Aから送信されてくる通信セッション確立要求メッセージのメッセージボディ部には、所定の識別子が書き込まれている。このため、ステップSA100の判定結果は“Yes”になり、ステップSA120以降の処理が実行される。
 ステップSA120の処理は、遠隔動作設定の実行を許容する旨の設定が為されているか否かを制御部310が確認する処理である。具体的には、制御部310は、不揮発性記憶部354に格納されている遠隔動作設定可否フラグの値が“1”であれば遠隔動作設定の実行を許容する旨の設定が為されていると判定する。逆に、遠隔動作設定可否フラグの値が“0”であれば、制御部310は、遠隔動作設定の実行を許容しない旨の設定が為されていると判定する。ステップSA120の判定結果が“No”である場合には、制御部310は、通信セッションの確立を拒否する旨の拒否応答メッセージ(例えば、406 Not Acceptable)を返信し(ステップSA130)、本通信セッション管理処理を終了する。逆に、ステップSA120の判定結果が“Yes”である場合には、ステップSA140以降の処理を実行する。本動作例では、中継装置30Bの不揮発性記憶部354に格納されている遠隔動作設定可否フラグの値は“1”であるため、ステップSA120の判定結果は“Yes”になり、ステップSA140以降の処理が実行される。
 ステップSA140の処理は、通信セッションの確立を許可する旨の許可応答メッセージ(図5:“200 OK”)を返信する処理である。この許可応答メッセージを返信する際には、中継装置30Bの制御部310は、自装置に割り当てられているIPアドレスおよびtelnet接続を受け付ける通信ポートのポート番号をテキスト形式でSDP(Session Descript Protocol)にしたがってメッセージボディ部に書き込んで返信する。その後、中継装置30Bの制御部310は、上記許可応答メッセージの送信を完了すると、その送信先から確認応答(所謂ACK)が返信されてくることを待ち受ける(図3:ステップSA150)。なお、telnet接続を受け付ける通信ポートが所謂ウェルノウンポートである場合には、そのポート番号を省略可能である。
 上記のようにして中継装置30Bから送信される許可応答メッセージは、図5に示すように、SIPサーバ40を経て中継装置30Aに到達する。この許可応答メッセージを受信した中継装置30Aの制御部310は、その許可応答メッセージのメッセージボディ部に書き込まれているIPアドレスおよびポート番号を読み出して、遠隔動作設定先を示す遠隔動作設定先情報として記憶するとともに、操作端末50を用いて中継装置30Aに遠隔ログインしているユーザに対して通信セッションが確立された旨を報知する。そして、中継装置30Aの制御部310は、遠隔動作設定先情報に含まれるIPアドレスを送信先アドレスとし、かつ、自装置のIPアドレスを送信元アドレスとする確認応答(図5:ACK)を返信する。このようにして中継装置30Aから返信された確認応答は、一般公衆網10内を適宜ルーティングされ、中継装置30Bに到達する。中継装置30Bの制御部310は、上記確認応答を受信すると(図3:ステップSA150、Yes)、その送信元アドレスを通信セッションの確立先を示す通信アドレスとしてセッション管理テーブルに登録し(図3:ステップSA160)、本通信セッション管理処理を終了する。
 操作端末50のユーザは、上記報知によって、中継装置30Aと中継装置30Bとの間の通信セッションの確立を確認すると、中継装置30Aに対して、遠隔動作設定先情報の示す接続先へtelnet接続するよう指示を与える。このような指示が与えられた中継装置30Aの制御部310は、telnet接続を要求する旨の通信メッセージを生成し、上記遠隔動作設定先情報の示すIPアドレスおよびポート番号宛に送信する。この通信メッセージには、送信元アドレスとして中継装置30Aの通信アドレスが書き込まれており、送信先アドレスとして上記遠隔動作設定先情報に示す通信アドレスが書き込まれている。このようにして中継装置30Aから送信される通信メッセージは、一般公衆網10内を適宜ルーティングされ、SIPサーバ40を介することなく上記遠隔動作設定先アドレスを有する電子機器(すなわち、中継装置30B)に到達する。
 図4は、上記telnet接続を要求する旨の通信メッセージを受信した場合に中継装置30Bの制御部310が実行する動作設定処理の流れを示すフローチャートである。図4に示すように、制御部310は、まず、上記通信メッセージの送信元との間に通信セッションを確立しているか否かを判定する(ステップSB100)。具体的には、制御部310は、上記通信メッセージの送信元アドレスがセッション管理テーブルに登録されている場合には、上記通信メッセージの送信元との間に通信セッションが確立されていると判定し、逆に、上記送信元アドレスがセッション管理テーブルに登録されていない場合には、上記送信元との間に通信セッションは確立されていないと判定する。
 図4に示すように、制御部310は、ステップSB100の判定結果が“Yes”である場合にのみ、上記通信メッセージの送信元をtelnet接続し(ステップSB110)、以降、その接続先から送信されてくるコマンドを実行する。前述したように、上記通信メッセージが中継装置30Aから中継装置30Bへ送信されてくる時点では、中継装置30Aの通信アドレスは中継装置30Bのセッション管理テーブルに登録されている。したがって、本動作例では、ステップSB100の判定結果は“Yes”になり、ステップSB110の処理が実行される。以後、操作端末50のユーザは中継装置30Aを介し各種動作設定用コマンドを中継装置30Bに送信し、それら動作設定用コマンドの解釈および実行を中継装置30Bの制御部310に行わせる。これにより、中継装置30Bの動作規定パラメータは上記動作設定用コマンドにしたがって書き換えられ、中継装置30Bの遠隔動作設定が実現されるのである。
 そして、操作端末50のユーザは、中継装置30Bの遠隔動作設定を完了すると、telnet接続の切断を中継装置30Aに指示し、さらに、通信セッションの切断を中継装置30Aに指示する。すると、中継装置30Aの制御部310は、通信セッションの切断を通知する旨の通信セッション切断通知メッセージ(図5:BYE)を生成し、中継装置30Bへ送信する。中継装置30Bの制御部310は、上記通信セッション切断通知メッセージを受信すると、確認応答(図5:ACK)を返信するとともに、上記通信セッション切断通知メッセージの送信元アドレスをセッション管理テーブルから削除して通信セッションの切断を完了する。
 以上が、中継装置30Bに対して遠隔動作設定の実行を許容する旨の設定が為されている場合の動作例である。
(B-2:遠隔動作設定の実行を許容しない旨の設定がされている場合の動作)
 次いで、中継装置30Bの不揮発性記憶部354に格納されている遠隔動作設定可否フラグの値が“0”である場合について説明する。遠隔動作設定可否フラグの値が“0”である場合は、所定の識別子がメッセージボディ部に書き込まれた通信セッション確立要求メッセージが中継装置30Aから送信されてきても、前述したステップSA120の判定結果は“No”になり、拒否応答メッセージが中継装置30Bから中継装置30Aに返信される(図6参照)。このため、中継装置30Aと中継装置30Bの間には通信セッションは確立されず、中継装置30Aに対して中継装置30BのIPアドレスが通知されることもない。加えて、通信セッションの確立が行われないため、中継装置30Bのセッション管理テーブルに中継装置30AのIPアドレスが登録されることもない。
 ここで、操作端末50のユーザが何らかの方法で不正に中継装置30BのIPアドレスを取得し、そのIPアドレスを宛先アドレスとしてtelnet接続を試みたとする。このように不正にtelnet接続が試みられたとしても、中継装置30Bのセッション管理テーブルには中継装置30Aの通信アドレスは登録されていないため、前述したステップSB100の判定結果は“No”になる。このため、中継装置30Aが中継装置30Bにtelnet接続されることはなく、中継装置30Aを介して中継装置30Bの動作設定が行われることはない。このように、遠隔動作設定可否フラグの値を“0”にしておけば、中継装置30Aと中継装置30Bの間に通信セッションは確立されず、通信セッションが確立していることを条件としてtelnet接続を許可している為、中継装置30BのIPアドレスが不正に取得されたとしても、そのIPアドレスを用いて中継装置30Bに対する不正なtelnet接続による遠隔動作設定が為されることを確実に防止することができる。
 以上説明したように本実施形態によれば、遠隔動作設定可否フラグの値が“1”に設定されている中継装置30に対しては、そのIPアドレスが不明であっても、SIPに準拠した手順で通信セッションを確立する過程でIPアドレスが取得され、遠隔動作設定を実行することが可能になる。また、本実施形態では、通信セッション確立要求メッセージのメッセージボディ部に所定の識別子を書き込んで遠隔動作設定のための通信セッションの確立要求であることを明示するのであるが、メッセージボディ部へのデータの書き込みは新たなコマンドの追加やメッセージフォーマットの変更とは異なり、SIPを拡張するものではない。つまり、本実施形態によればSIPの拡張を行うことなく、IPアドレスが不明な中継装置の遠隔動作設定を行うことが可能になる。
(C:変形)
 以上本発明の一実施形態について説明したが、以下に述べる変形を加えても勿論良い。
(1)上述した実施形態では、操作端末50から中継装置30Aに遠隔ログインし、この中継装置30Aを操作して中継装置30Bの遠隔動作設定を行う場合(すなわち、操作端末50と中継装置30Aとが、中継装置30Bの動作設定を行うための操作端末として機能する場合)について説明した。しかし、操作端末50から中継装置30Bへ直接SIPに準拠した手順で通信セッションを確立した後、telnet接続してその遠隔動作設定を行わせるようにしても良い。
(2)上述した実施形態では、ルータの動作設定に本発明を適用する場合について説明したが、ゲートウェイ装置の動作設定に本発明を適用しても勿論良い。また、本発明の適用対象は、ルータやゲートウェイ装置などの中継装置の動作設定に限定されるものではなく、WWWサーバやアプリケーションサーバなど末端ノードに位置する通信装置や所謂情報家電の動作設定にも適用可能である。要は、動作規定パラメータにしたがった固有の動作を行う機能を有し、かつ、SIPに準拠した手順で通信セッションを確立する機能およびtelnetに準拠した通信を行う機能を有した電子機器であれば、その動作設定(すなわち、動作規定パラメータの書き換え)に本発明を適用することができる。
(3)上述した実施形態では、通信セッションを確立するための通信プロトコルとしてSIPを用いたが、他のセッション制御プロトコルを用いることも可能である。要は、通信セッションの確立過程でその確立先についての下位のプロトコル階層の通信アドレス(例えば、IPアドレス)を取得することができるようなセッション制御プロトコルであれば良い。また、上述した実施形態では、動作設定のためのコマンドの送受信を行う通信プロトコルとしてtelnetを用いたが、他の通信プロトコルを用いても良い。例えばHTTP(HyperText Transfer Protocol)のPOSTメソッドを利用して実行すべき動作設定コマンドおよび設定すべきパラメータを送信するようにしても良い。
(4)上述した実施形態では、SIPに準拠した手順で通信セッションを確立し、その通信セッションが確立されている間に限り、その通信セッションの確立先に対してtelnet接続を許可して遠隔動作設定を行わせた。このような態様では、遠隔動作設定の競合を避けるため、中継装置30と遠隔動作設定用の通信セッションの確立を可能な操作端末の数を1台に制限しても良い。具体的には、既に遠隔動作設定用の通信セッションを確立している中継装置30に対して、さらに、遠隔動作設定用の通信セッションの確立要求が為された場合には、その確立要求の要求元へ拒否応答メッセージを無条件に返信する処理をその中継装置30の制御部310に実行させるようにすれば良い。また、複数の操作端末に対して遠隔動作設定用の通信セッションの確立を許可する態様も考えられるが、このような態様においては、通信セッションを確立した時から一定時間が経過した時点でその通信セッションを切断する処理を制御部310に実行させることが好ましい。これは、所謂SYNフラッド類似の攻撃に対処するためである。
 SYNフラッドとは、TCPにおける通信コネクションの確立手順である3ウェイハンドシェイクの弱点を利用して通信装置を動作不能に陥れる攻撃手法のことである。中継装置30に対するSYNフラッド類似の攻撃方法としては、中継装置30に対して通信セッションの確立を要求し、その確立が行われてもtelnet接続を行わずに放置して、さらに、操作端末の通信アドレスを変更しつつ通信セッションの確立を要求しつ続けることが考えられる。複数の操作端末に対して遠隔動作設定用の通信セッションの確立を許可する態様において、通信セッションを確立してから一定時間が経過した時点でその通信セッションを切断する機能を中継装置30が有していないとすると、その中継装置30に対してSYNフラッド類似の攻撃が為された場合に、セッション管理テーブルに通信セッションの確立先の通信アドレスが追加登録されつづけ、やがてはオーバーフローを起こし動作不能となってしまう。これに対して、通信セッションを確立してから一定時間が経過した時点で通信セッションを切断する機能を設けておけば、SYNフラッド類似の攻撃が為されたとしても、セッション管理テーブルに登録された通信アドレスはその登録から一定時間経過後に削除されるため、上記のようなオーバーフローが生じることはなく、動作不能になることもない。
(5)上述した実施形態では、遠隔動作設定可否フラグの値が“1”である場合には、無条件に許可応答メッセージを制御部310に返信させた。しかし、所定の識別子がメッセージボディ部に書き込まれた通信セッション確立要求メッセージを受信し、かつ、遠隔動作設定可否フラグの値が“1”である場合であっても無条件には許可応答メッセージを返信せず、その通信セッション確立要求メッセージが予め定められた電子機器から送信されたものである場合にのみ、許可応答メッセージを返信させるようにしても良い。具体的には、中継装置30Bに対して遠隔動作設定を実行可能な電子機器のIPアドレス(或いは、“SIP URI”)を予め中継装置30Bに登録しておき、受信した通信セッション確立要求メッセージの送信元アドレスが上記IPアドレス(あるいは、“SIP URI”)である場合にのみ許可応答メッセージを返信する処理を制御部310に実行させるのである。
 また、予め定められた通信アドレスを有する通信装置からtelnet接続を要求された場合にのみ、その接続を許可するようにしても良く、このような態様においては、そのtelnet接続の要求元との間に通信セッションが確立されているか否かを問わずにtelnet接続を許可するようにしても良い。このような態様においては、遠隔動作設定の要求元が予め制限されているため、不正な遠隔動作設定が為される虞は少ないからである。なお、telnet接続を許可する通信装置を予め登録する具体的な手法としては、そのような通信装置の通信アドレスを予め不揮発性記憶部354に格納しておく態様や、1回でも通信セッションを確立した通信装置については、その通信アドレスを不揮発性記憶部354に記憶する態様などが考えられる。
(6)上述した実施形態では、操作端末50のユーザはその操作端末50を操作して中継装置30Aにログインし、遠隔動作設定対象の中継装置(上述した動作例では、中継装置30B)の“SIP URI”を中継装置30Aに与えてSIPに準拠した手順で中継装置30Bとの間に通信セッションを確立させた後、その確立過程で得られた中継装置30BのIPアドレスおよびポート番号を用いてその中継装置30Bに別途遠隔ログインして中継装置30Bの動作設定を行い、その動作設定の終了後、telnet接続の切断および通信セッションの切断を中継装置30Aに指示した。しかし、SIPに準拠した通信セッションの確立および切断を自動化することも可能である。
 具体的には、まず、中継装置30Aにログインした後、遠隔動作設定対象の中継装置(例えば、中継装置30B)の上位層の通信アドレス(“SIP URI”や電話番号)を引数とするtelnet接続コマンド(例えば、openコマンド)をその中継装置30Aに与える操作を操作端末50のユーザに実行させる。例えば、中継装置30Bの電話番号が“053XXXXXXX”である場合、“open 053XXXXXXX”と入力させるのである。一方、中継装置30Aの制御部310には、以下の処理を実行させる。すなわち、telnet接続コマンド(上記の例では、openコマンド)の引数として与えられた上位層の通信アドレス(上記の例では、“053XXXXXXX”)を宛先としてSIPに準拠した手順で通信セッションの確立を行い、その確立過程で得られた当該接続先のIPアドレスおよびポート番号を用いてその接続先へtelnet接続する処理(これらIPアドレスおよびポート番号を引数としてtelnetコマンドを実行する処理)を実行させるのである。ここで、上位層の通信アドレスとして電話番号が与えられた場合には、“SIP:電話番号@domain”と“SIP_URI”に変換した後にその“SIP_URI”を用いて通信セッションの確立を行えば良い。そして、操作端末50のユーザによってtelnet接続の切断を指示された場合には、その切断とともに上記通信セッションを切断する処理を中継装置30Aの制御部310に実行させるのである。このような態様によれば、通信セッションの確立および切断のための操作の分だけ、ユーザの操作負担が軽減される、といった効果が得られる。
(7)上述した実施形態では、操作端末50が属するセグメントとは別のセグメントに属する中継装置30Bの動作設定を行う場合について説明したが、操作端末50を用いてその操作端末50と同一のセグメントに属する中継装置30Aにtelnet接続してその動作設定(すなわち、遠隔動作設定可否フラグとルータコンフィグの何れか一方、または両方の書き換え)を行うことも可能であり、また、操作端末50を中継装置30Aにシリアル接続してその動作設定を行うことも勿論可能である。
(8)上述した実施形態では、本発明の特徴を顕著に示す処理を中継装置30の制御部310に実行させるプログラムがその中継装置30の記憶部350に予め記憶されていた。しかし、例えばCD-ROM(Compact Disk-Read Only Memory)などのコンピュータ装置読み取り可能な記録媒体に上記プログラムを書き込んで配布しても良く、また、インターネットなどの電気通信回線経由のダウンロードにより上記プログラムを配布しても良い。このようにして配布されるプログラムを一般的な中継装置に記憶させ、以後、その中継装置の制御部を当該プログラムにしたがって作動させるようにすること(所謂ファームウェアのバージョンアップ)で既存の中継装置に上記実施形態の中継装置と同様の機能を付与することが可能になるからである。
(9)上述した実施形態では、中継装置30Bに遠隔ログインした後、動作設定用コマンドを与えることで中継装置30Bの遠隔動作設定を実現している。その際、動作設定用コマンドとしては中継装置30Bの動作規定パラメータの書き換えを指示するコマンドが与えられている。しかしながら、本発明ではコマンドの種類は動作規定パラメータの書き換えを指示するコマンドに限定されない。すなわち、ファームウェアの更新やログの取得(統計、診断、状態表示)、特定のスクリプト(例えばLuaスクリプト)の実行などを指示するコマンドを中継装置30Bに送信することで、中継装置30Bに送られたコマンドにしたがって所定の制御を行うようにさせてもよい。
 10…一般公衆網、20A,20B…拠点内LAN、30,30A,30B…中継装置、310…制御部、320…第1通信I/F部、330…第2通信I/F部、340…外部機器I/F部、350…記憶部、352…揮発性記憶部、354…不揮発性記憶部、360…バス、40…SIPサーバ、50…操作端末。

Claims (10)

  1.  固有の動作を当該電子機器に実行させる制御手段と、
     通信網を介して通信メッセージの送受信を行う通信手段と、を備え、
     当該電子機器には、予め定められたセッション制御プロトコルにしたがって他の機器と通信セッションを確立する際に当該電子機器を識別するために使用する第1の通信アドレスと、前記セッション制御プロトコルよりも下位のプロトコル階層において当該電子機器を識別するために使用する第2の通信アドレスとが割り当てられており、
     前記制御手段は、
     前記通信セッションを前記セッション制御プロトコルにしたがって確立することを要求する旨の要求メッセージであって、そのメッセージボディ部に遠隔動作設定の実行許可を要求する旨の識別子が書き込まれた要求メッセージを前記通信手段により受信したことを契機として、前記通信セッションの確立を許可する旨の許可応答メッセージを生成し、そのメッセージボディ部に当該電子機器に割り当てられた前記第2の通信アドレスを書き込んで前記要求メッセージの送信元へ返信する第1の処理と、
     当該電子機器に割り当てられた前記第2の通信アドレスを送信先アドレスとしたコマンドを含む通信メッセージを前記通信手段により受信したことを契機として、当該コマンドにしたがって所定の制御を行う第2の処理と、を実行するよう構成される
     ことを特徴とする電子機器。
  2.  当該電子機器の固有の動作を規定する動作規定パラメータを予め記憶した記憶手段をさらに有し、
     前記制御手段は、前記動作規定パラメータにしたがって固有の動作を当該電子機器に実行させ、
     前記制御手段は、前記第2の処理において、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージを前記通信手段により受信したことを契機として、前記記憶手段に記憶された動作規定パラメータを当該コマンドにしたがって書き換える
     ことを特徴とする請求項1に記載の電子機器。
  3.  前記記憶手段には、遠隔動作設定を許容するか否かを示す遠隔動作設定可否フラグが前記動作規定パラメータの1つとして、或いは前記動作規定パラメータとは別個に記憶されており、
     前記制御手段は、
     前記遠隔動作設定可否フラグが前記記憶手段に記憶されている場合にのみ、前記要求メッセージの受信を契機として前記許可応答メッセージを返信する
     ことを特徴とする請求項2に記載の電子機器。
  4.  前記第2の処理において前記制御手段は、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージの送信元との間に前記通信セッションが確立されているか否かを判定し、前記通信セッションが確立されている場合にのみ当該通信メッセージに含まれているコマンドにしたがって前記動作規定パラメータを書き換える
     ことを特徴とする請求項2または3に記載の電子機器。
  5.  前記記憶手段には、通信セッションの確立先の通信アドレスが登録されるセッション管理テーブルが記憶されており、
     前記制御手段は、
     前記第1の処理にて送信した前記許可応答メッセージの送信先から、当該許可応答メッセージを受信したことを示す確認応答を受信したことを契機としてその送信先との間に通信セッションを確立し、その確認応答の送信元の通信アドレスを前記セッション管理テーブルに書き込む第3の処理を前記第2の処理に先立って実行するとともに、その書き込みを行った時から所定時間が経過した時点で当該通信アドレスを前記セッション管理テーブルから削除する第4の処理を実行し、
     前記第2の処理においては、前記通信メッセージの送信元の通信アドレスが前記セッション管理テーブルに登録されている場合に、前記通信メッセージの送信元との間に通信セッションが確立されていると判定する
     ことを特徴とする請求項4に記載の電子機器。
  6.  予め定められたセッション制御プロトコルにしたがって他の機器と通信セッションを確立する際に当該電子機器を識別するために使用する第1の通信アドレスと前記セッション制御プロトコルよりも下位のプロトコル階層において当該電子機器を識別するために使用する第2の通信アドレスとが割り当てられており、通信網を介して通信メッセージを送受信する機能を有するとともに、固有の動作を実行する機能を有する電子機器の動作設定方法であって、
     前記通信網に接続された操作端末が、通信セッションを前記セッション制御プロトコルにしたがって確立することを要求する旨の要求メッセージを生成し、そのメッセージボディ部に遠隔動作設定の実行許可を要求する旨の識別子を書き込んで前記電子機器へ送信する第1のステップと、
     前記操作端末から送信された前記要求メッセージを受信した前記電子機器が、通信セッションの確立を許可する旨の許可応答メッセージを生成し、そのメッセージボディ部に当該電子機器に割り当てられた前記第2の通信アドレスを書き込んで前記操作端末へ返信する第2のステップと、
     前記電子機器から送信された許可応答メッセージを受信した前記操作端末が、特定のコマンドを含む通信メッセージを、当該許可応答メッセージのメッセージボディ部に書き込まれている前記第2の通信アドレスを送信先アドレスとして送信する第3のステップと、
     前記操作端末から送信された前記通信メッセージを受信した前記電子機器が、前記コマンドにしたがって所定の制御を行う第4のステップと、
     を含むことを特徴とする電子機器の動作設定方法。
  7.  前記電子機器は、記憶手段に記憶された固有の動作を規定する動作規定パラメータをしたがって固有の動作を実行する機能を有し、
     前記第3のステップにおいて、前記操作端末は、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージを送信し、
     前記第4のステップにおいて、前記電子機器は、前記記憶手段に記憶された動作規定パラメータを当該コマンドにしたがって書き換える
     ことを特徴とする請求項6に記載の電子機器の動作設定方法。
  8.  前記記憶手段には、遠隔動作設定を許容するか否かを示す遠隔動作設定可否フラグが前記動作規定パラメータの1つとして、或いは前記動作規定パラメータとは別個に記憶されており、
     前記遠隔動作設定可否フラグが前記記憶手段に記憶されている場合にのみ、前記第2のステップにおいて、前記要求メッセージの受信を契機として前記許可応答メッセージを返信する
     ことを特徴とする請求項7に記載の電子機器の動作設定方法。
  9.  前記第3のステップにおいて、前記動作規定パラメータの書き換えを指示するコマンドを含む通信メッセージの送信元との間に前記通信セッションが確立されているか否かを判定し、
     前記通信セッションが確立されている場合にのみ、前記第4のステップにおいて、当該通信メッセージに含まれているコマンドにしたがって前記動作規定パラメータを書き換える
     ことを特徴とする請求項7または8に記載の電子機器の動作設定方法。
  10.  前記記憶手段には、通信セッションの確立先の通信アドレスが登録されるセッション管理テーブルが記憶されており、
     前記第2のステップにて送信した前記許可応答メッセージの送信先から、当該許可応答メッセージを受信したことを示す確認応答を受信したことを契機としてその送信先との間に通信セッションを確立し、その確認応答の送信元の通信アドレスを前記セッション管理テーブルに書き込む第5のステップを前記第3のステップに先立って実行するとともに、その書き込みを行った時から所定時間が経過した時点で当該通信アドレスを前記セッション管理テーブルから削除する第6のステップを実行し、
     前記第3のステップにおいては、前記通信メッセージの送信元の通信アドレスが前記セッション管理テーブルに登録されている場合に、前記通信メッセージの送信元との間に通信セッションが確立されていると判定する
     ことを特徴とする請求項9に記載の電子機器の動作設定方法。
PCT/JP2011/055078 2010-03-04 2011-03-04 電子機器、および電子機器の動作設定方法 WO2011108708A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201180012371.6A CN102783086B (zh) 2010-03-04 2011-03-04 电子设备以及电子设备的动作设定方法

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2010-047597 2010-03-04
JP2010047597A JP5477056B2 (ja) 2010-03-04 2010-03-04 電子機器、および電子機器の動作設定方法

Publications (1)

Publication Number Publication Date
WO2011108708A1 true WO2011108708A1 (ja) 2011-09-09

Family

ID=44542352

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2011/055078 WO2011108708A1 (ja) 2010-03-04 2011-03-04 電子機器、および電子機器の動作設定方法

Country Status (3)

Country Link
JP (1) JP5477056B2 (ja)
CN (1) CN102783086B (ja)
WO (1) WO2011108708A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10736178B2 (en) * 2017-09-27 2020-08-04 Grand Mate Co., Ltd. Connection method for wireless system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016157527A1 (ja) * 2015-04-03 2016-10-06 三菱電機株式会社 メディア通信システム、音声端末および音声符号変換装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004187149A (ja) * 2002-12-05 2004-07-02 Matsushita Electric Ind Co Ltd 遠隔機器制御方法及び機器管理装置
JP2009124322A (ja) * 2007-11-13 2009-06-04 Ntt Electornics Corp 遠隔制御システムおよび方法
JP2009271651A (ja) * 2008-05-02 2009-11-19 Fujitsu Ltd 家電等の宅内のローカル端末に対するsipセッション制御方式

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1310109A2 (en) * 2000-03-03 2003-05-14 QUALCOMM Incorporated Method and apparatus for participating in group communication services in an existing communication system
JP2006237996A (ja) * 2005-02-24 2006-09-07 Nec Infrontia Corp 遠隔保守・メンテナンスシステム、sip搭載機器、保守・メンテナンス機器および方法
CN101132394A (zh) * 2006-08-22 2008-02-27 华为技术有限公司 确定服务用户方向的方法
CN100550949C (zh) * 2006-12-30 2009-10-14 华为技术有限公司 模拟业务实现方法、系统及互通控制单元
CN101110870B (zh) * 2007-08-27 2011-05-25 中兴通讯股份有限公司 一种在会话初始化协议中实现拍叉簧的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004187149A (ja) * 2002-12-05 2004-07-02 Matsushita Electric Ind Co Ltd 遠隔機器制御方法及び機器管理装置
JP2009124322A (ja) * 2007-11-13 2009-06-04 Ntt Electornics Corp 遠隔制御システムおよび方法
JP2009271651A (ja) * 2008-05-02 2009-11-19 Fujitsu Ltd 家電等の宅内のローカル端末に対するsipセッション制御方式

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10736178B2 (en) * 2017-09-27 2020-08-04 Grand Mate Co., Ltd. Connection method for wireless system

Also Published As

Publication number Publication date
CN102783086A (zh) 2012-11-14
CN102783086B (zh) 2015-01-07
JP5477056B2 (ja) 2014-04-23
JP2011182372A (ja) 2011-09-15

Similar Documents

Publication Publication Date Title
US8296437B2 (en) Server-mediated setup and maintenance of peer-to-peer client computer communications
JP4237754B2 (ja) パーソナルリモートファイヤウォール
US8316134B2 (en) File server device arranged in a local area network and being communicable with an external server arranged in a wide area network
JP5318111B2 (ja) リモートデバイスに構成情報を自動配布するための中央管理ステーションのための種々の方法および装置
JP5375156B2 (ja) 通信システム、中継装置、末端装置、及びプログラム
JP4222397B2 (ja) 中継サーバ
JP5763849B2 (ja) プロパティの遠隔制御で使用されるデータ転送ネットワークを実現するためのデバイス構成および方法
JP2006086800A (ja) ソースアドレスを選択する通信装置
WO2009012670A1 (fr) Procédé, dispositif et système permettant d'enregistrer un nouveau membre de groupe lors d'une gestion de clé multidiffusion
JP2009100064A (ja) 無線lanの通信方法及び通信システム
JP2008098881A (ja) 中継サーバ
JP4253569B2 (ja) 接続制御システム、接続制御装置、及び接続管理装置
JP4433206B2 (ja) コネクションを確立し維持する方法
JP4187036B2 (ja) 中継サーバ
JP5477056B2 (ja) 電子機器、および電子機器の動作設定方法
JP4746978B2 (ja) ローカルネットワーク及び遠隔ネットワークの運用方法、ソフトウェアモジュール、およびゲートウェイ
JP5261432B2 (ja) 通信システム、パケット転送方法、ネットワーク交換装置、アクセス制御装置、及びプログラム
JP2010187314A (ja) 認証機能付きネットワーク中継機器及びそれを用いた端末の認証方法
JP5764085B2 (ja) ポート開閉制御システム
US20200287868A1 (en) Systems and methods for in-band remote management
JP6898120B2 (ja) ネットワークシステム、ネットワークシステムのアドレス解決方法、および、拠点側接続装置
JP2006352710A (ja) パケット中継装置及びプログラム
JP4222402B2 (ja) 中継サーバ
JP5084716B2 (ja) Vpn接続装置、dnsパケット制御方法、及びプログラム
JP4355696B2 (ja) ルータ、パケットフォワード方法、およびパケットフォワードプログラム

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180012371.6

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11750817

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11750817

Country of ref document: EP

Kind code of ref document: A1