1) Field of the Invention
The present invention relates to management and establishment of sessions in a network.
2) Description of the Related Art
Networks of devices such as computers, printers have become common now-a-days. This has necessitated monitoring and control of transmission devices in the network. The monitoring and control of the transmitting devices are carried out by monitor/control devices.
Japanese Patent Laid-Open Publication No. 2001-144760 discloses a structure (monitor/control system) for session establishment by establishment of logical communication channel between the transmission devices and the monitor/control devices to carry out data exchange for monitoring/controlling the transmission devices.
The transmission device 201 has a plurality of physical ports 211 through 213, and the monitor/control devices 101 through 103 are respectively connected to these physical ports. An identifier (ID) is set for each of the physical ports 211 through 213. The transmission device 201 has a transmission channel interface (I/F) 22, and the transmission devices 202 and 204 are connected to this transmission channel interface (I/F) 22.
The transmission device 201 includes a communication controller 23 that controls receiving control frames from and sending response frames to the monitor/control devices 101 through 103 or the other transmission devices 202 through 204.
The transmission device 201 includes a session managing unit 24 that manages conditions required for session management (hereinafter, “session conditions”) to enable the monitor control devices 101 through 103 to monitor and/or control as well as transmission of the control frames and response frames.
The transmission device 201 includes a plurality of OPS processors 251 through 25n that process the control requests and send the response frames based on the process results. An identifier is set for each of the OPS processors 251 through 25n.
Except the absence of the physical ports 211 through 213, the transmission devices 202 through 204 have the same structure as the transmission device 201. An identifier is set for each of the transmission devices 201 through 204.
An operator decides upon and selects, through the monitor/control device 101, one transmission device from among the transmission devices 201 through 204 for carrying out monitoring and/or control. It is assumed here that and the operator selects the transmission device 201.
The monitor/control device 101 then creates a control frame to be sent to the transmission device 201. An exemplary control frame is shown in
Here, there is a need to establish a session between the transmission device 201 and the monitor/control device 101. Accordingly, the destination device ID, the destination port ID, and the data in the control frame are set as follows. Precisely, the identifier of the transmission device 201, which is the device to be monitored and/or controlled, is set in the destination device ID. The identifier of the OPS processor 251 through 25n that will establish the session is set in the destination port ID. A control code and control parameters that indicate session establishment are set in the data.
The monitor/control device 101 sends the control frame shown in
The communication controller 23 of the transmission device 201 appends, as shown in
The communication controller 23 then compares the destination device ID in the control frame with the local device ID to determine whether the control frame is meant for the local device. Precisely, if the destination device ID and the local device ID are same, then it is determined that the control frame is determined to be meant for the local device. If the control frame is determined to be meant for the local device, the communication controller 23 sends the control frame shown in
The session managing unit 24 refers to the control code of the data in the control frame and determines if the control frame is meant for session establishment. If the control frame is meant for session establishment, the session managing unit 24 determines whether the OPS processor 251 through 25n specified in the destination port ID of the control frame is free, that is, not engaged in a session.
If the specified OPS processor is found to be free, the session managing unit 24 sends the control frame to the specified OPS processor. The specified OPS processor then carries out the control process based on the control code in the control frame, creates a response frame that includes the control process result, and sends the response frame to the communication controller 23.
The communication controller 23 sends the response frame to the monitor/control device 101 via the physical port 211. Thus, a session is established between the monitor/control device 101 and the transmission device 201.
However, conventionally, plural physical ports are required in the transmission device 201. This results in an increase in the size of the transmission device 201. Furthermore, one physical port is assigned per monitor/control device. As a result, the number of sessions that can be established per monitor/control device is limited to one.
It is an object of the present invention to at least solve the problems in the conventional technology.
A session management method according to an aspect of the present invention includes receiving a frame that includes destination device information and control information; determining whether the frame received is received from a monitor/control device, and appending, if it is determined that the frame received is received from the monitor/control device, port information and local device information to the frame, the port information being information pertaining to a physical port and one of a plurality of logical ports, the logical ports being provided corresponding to the physical port for establishing a plurality of sessions; determining based on the destination device information in the frame whether a destination of the frame received is a local device or a device other than the local device, executing a process according to the control information if it is determined that the destination of the frame is the local device, and appending the port information and the local device information to the frame and transmitting the frame to the other device if it is determined that the destination of the frame is a device other than the local device.
A session management apparatus according to another aspect of the present invention includes a receiving unit that receives a frame that includes destination device information and control information; an appending unit that determines whether the frame received by the receiving unit is received from a monitor/control device, appends, if it is determined that the frame received is received from the monitor/control device, port information and local device information to the frame, the port information being information pertaining to a physical port and one of a plurality of logical ports, the logical ports being provided corresponding to the physical port for establishing a plurality of sessions; and a control unit that determines based on the destination device information in the frame whether a destination of the frame received is a local device or a device other than the local device, executes a process according to the control information if it is determined that the destination of the frame is the local device, and appends the port information and the local device information to the frame and transmits the frame to the other device if it is determined that the destination of the frame is the device other than the local device.
A computer-readable recording medium according to still another aspect of the present invention stores therein a computer program that implements the above method on a computer.
The other objects, features, and advantages of the present invention are specifically set forth in or will become apparent from the following detailed description of the invention when read in conjunction with the accompanying drawings.
Exemplary embodiments of the present invention are explained next with reference to the accompanying drawings.
The transmission devices 401 through 404 are connected in a ring to form a network. The monitor/control devices 101 through 103 that monitor and/or control the transmission devices 401 through 404 are connected to the transmission devices 401.
The transmission device 40, has only one physical port 41. All the monitor/control devices 101 through 103 are connected to the transmission devices 401 via this physical port 41. The physical port 41 has m, where m is a positive integer, logical ports 421 through 42m.
An identifier, i.e., physical port ID, is set for the physical port 41. An identifier, i.e., logical port ID, is set for each of the logical ports 42, through 42m. The logical ports 421 through 42m are set for a plurality of sessions. The transmission devices 401 includes a transmission channel I/F 43, and the transmission devices 402 and 404 are connected to the transmission devices 40, via this transmission channel I/F 43.
The transmission device 40, includes a communication controller 44. This communication controller 44 controls receiving control frames from and sending response frames to the monitor/control devices 101 through 103 or other transmission devices 402 through 404.
The transmission device 401 includes a session managing unit 45. This session managing unit 45 manages conditions required for session management (hereinafter, “session conditions”) to enable the monitor control devices 101 through 103 to monitor and/or control as well as transmission of the control frames and response frames.
The transmission device 401 includes a plurality of OPS processors 461 through 46n. These OPS processors 461 through 46n process the control requests and send the response frames based on the process results. An identifier is set for each of the OPS processors 461 through 46n.
Except that the transmission devices 402 through 404 have no physical port or logical ports, the transmission devices 402 through 404 have the same structure as the transmission device 401. An identifier is set for each of the transmission devices 401 through 404.
The transmission device 401 includes a port ID table 50. This port ID table 50 manages the identifiers set for the physical port 41 and the logical ports 421 through 42m.
Referring back to
The operation status indicates whether a session is established or released. The source device ID indicates the identifier of a control frame source device. The source port ID indicates either the physical port ID of the physical port 41 physically connected to the control frame source device or the logical port ID of one of the logical ports 42, through 42m connected logically to the control frame source device.
The control code indicates the control code of a control command included in the control frame. The control level indicates the level of control limits of the OPS processor 461 through 46n. The control-free duration indicates the duration when no control is carried out by the monitor/control device.
Referring back to
The operation of the monitor/control system is explained next with reference to
The operations involved in session establishment between the monitor/control device 10, and the transmission device 401 followed by session establishment between the monitor/control device 101 and the transmission device 402 when transmission device 401 is still in session with the monitor/control device 101 and session release between the monitor/control device 101 and the transmission device 401 are explained next with reference to
At step SA1, the monitor/control device 101 sends to the transmission device 401 a request for session establishment. At step SA2, a session is successfully established between the monitor/control device 101 and the transmission device 401. At step SA3, the monitor/control device 101, while still in session with the transmission device 401, sends to the transmission device 402 a request for session establishment via the transmission device 401. At step SA4, a session is successfully established between the monitor/control device 101 and the transmission device 402.
At step SA5, the monitor/control device 101 sends to the transmission device 401 a request to release the session. At step SA6, the session between the monitor/control device 101 and the transmission device 401 is successfully released.
The operation described above is explained in detail with reference to
At step SC1 of
An operator decides upon and selects, through the monitor/control device 101, one transmission device from among the transmission devices 401 through 404 for carrying out monitoring and/or control. It is assumed here that and the operator selects the transmission device 401.
The monitor/control device 10, then creates a control frame to be sent to the transmission device 401. An exemplary control frame is shown in
Here, there is a need to establish a session between the transmission device 40, and the monitor/control device 101. Accordingly, the destination device ID, the destination port ID, and the data in the control frame are set as follows. Precisely, the identifier of the transmission device 401, which is the monitor/control target device, is set in the destination device ID. The identifier of the OPS processor 461 through 46n that will establish the session is set in the destination port ID. A control code and control parameters that indicate session establishment are set in the data.
The monitor/control device 10, sends the control frame shown in
If the control frame is received, the answer at step SB1 shown in
At step SB3, the communication controller 44 determines whether the control frame has been received from the monitor/control device (any one of the monitor/control devices 101 through 103). Since, the answer at step SB3 is “Yes” in this case, the communication controller 44 executes step SB4. If the answer at step SB3 is “No”, the communication controller 44 executes step SB5.
At step SB4, the communication controller 44 appends data to the control frame (see
At step SB5, the communication controller 44 compares the destination device ID in the control frame with appended data (see
At step SB6, the communication controller 44, activates the session managing unit 45 and sends to the session managing unit 45 the control frame with the appended data, and carries out the determination process of step SB1.
Upon being activated, since the answer at step SC1 is “Yes”, the session managing unit 45 executes step SC2. At step SC2, the session managing unit 45 determines whether the received frame is a control frame. Since frame received from the communication controller 44 is a control frame with the appended data (see
If the answer at step SC2 is “No” (that is, if time out occurs because no control frame is received in one minute), the session managing unit 45 executes step SC10. At step SC10, the session managing unit 45 decreases by one minute the control-free duration in the session management table 60 in which the operation status is set to ‘In session’. At step SC11, the session managing unit 45 releases the session in which the control-free duration has reached 0.
At step SC3, the session managing unit 45 refers to the control code of the received control frame and determines whether the control frame is for session establishment or session release. Since the control frame is for session establishment in this case, the answer at step SC3 is “Yes” and session managing unit 45 executes step SC4.
If the answer at step SC3 is “No”, the session managing unit 45 executes step SC7 in which it resets (to, say, 15 minutes) the control-free duration of the session management table 60 (see
If the answer at step SC8 is “No”, the session managing unit 45 executes step SC9. At step SC9, the session managing unit 45 activates the OPS processor 461 through 46n. This activation causes the OPS processor 461 through 46n to be in a stand-by mode to receive the control frame from the session managing unit 45. Upon receiving the control frame from the session managing unit 45, the OPS processor 461 through 46n carries out the control process according to the control code in the control frame, creates a response frame (see
At step SC4, the session managing unit 45 reads the control level of the control code included in the control frame from the control command table 70 (see
If the answer at step SC4 is “No”, the session managing unit 45 executes step SC5. At step SC5, the session managing unit 45 sets the operation status of the session management table 60 (see
At step SC6, the session managing unit 45 creates a response frame by setting, as shown in
Upon receiving the response frame (see
At step SB8, the communication controller 44 compares the source device ID in the response frame shown in
At step SB9, the communication controller 44 deletes from the response frame (see
If the answer at step SB8 is “No”, the communication controller 44 goes to step SB7 in which it sends the response frame to another transmission device (any of the other transmission devices 402 through 404), and then carries out the determination process of step SB1.
While a session is in progress between the monitor/control device 101 and the transmission device 401, the operator selects, say, the transmission device 402 as the monitor/control target device through the monitor/control device 101.
Once the transmission device 402 is selected as the monitor/control target device, the monitor/control device 10, creates a control frame shown in
For establishing a session between the transmission device 402 and the monitor/control device 101, the identifier of the transmission device 402, which is the monitor/control target device, is set in the Destination device ID field of the control frame, the identifier of the OPS processor (not shown) of the transmission device 401 that will establish the session is set in the Destination port ID field of the control frame, and the control code and the control parameters that indicate session establishment are set in the data field of the control frame.
The control frame (see
Upon receiving the control frame, since the answer at step SB1 shown in
At step SB3, the communication controller 44 determines whether the control frame has been received from the monitor/control device (any one of the monitor/control devices 101 through 103). Since the answer at step SB3 is “Yes”, the communication controller 44 executes step SB4.
At step SB4, the communication controller 44 appends to the control frame with the appended data (see
At step SB5, the communication controller 44 compares the destination device ID in the control frame shown in
At step SB7, the communication controller 44 sends the control frame to the transmission device 402 via the transmission channel I/F 43. Upon receiving the control frame, the transmission device 402 creates a response frame as described earlier, and sends the response to the transmission device 401.
Upon receiving the response frame from the transmission device 402 via the transmission channel I/F 43, the communication controller 44 carries out the determination process of step SB1. Since the answer at step SB1 is “Yes”, the communication controller 44 executes step SB2. Since the received frame is not a control frame but a response frame, the answer at step SB2 is “No” in this case, and the communication controller 44 executes step SB8.
At step SB8, the communication controller 44 compares the destination device ID in the response frame with the local device ID to determine whether the response frame is meant for the local device.
Since the answer at step SB8 is “Yes”, the communication controller 44 executes step SB9. At step SB9 the communication controller 44 deletes from the response frame the destination device ID and the destination port ID, sends the remaining response frame from the specified port (for instance, the logical port 422 and the physical port 41) to the monitor/control device 101, and carries out the determination process of step SB1.
Once the response frame is received by the monitor/control apparatus 101, the session is established. In other words, the instant the response frame is received by the monitor/control device 101, the monitor/control device 101 has a session established with both the transmission devices 401 and 402 via a single physical port (logical ports 421 and 422).
The operator then creates a control frame (see
To release the session between the transmission device 401 and the monitor/control device 101, the identifier of the transmission device 401 is set in the Destination device ID field of the control frame, the identifier of the OPS processor 461 through 46n that establishes the session is set in the Destination port ID field of the control frame, and the control code and the control parameters that indicate session release are set in the data field of the control frame.
The control frame (see
The communication controller 44 then performs the determination process of step SB1. Since the answer at step SB1 is “Yes”, the communication controller 44 executes step SB2 to determine whether the received frame is a control frame.
Since the answer at step SB2 is “Yes”, the communication controller 44 executes step SB3. At step SB3 the communication controller 44 determines whether the control frame has been received from the monitor control device (any one of the monitor/control devices 101 through 103).
Since the answer at step SB3 is “Yes”, the communication controller 44 executes step SB4. At step SB4 the communication controller 44 appends to the control frame with the appended data (see
At step SB5, the communication controller 44 compares the destination device ID in the control frame with the local device ID to determine whether the control frame is meant for the local device.
Since the answer at step SB5 is “Yes”, the communication controller 44 executes step SB6. At step SB6, the communication controller 44, activates the session managing unit 45 and sends to the session managing unit 45 the control frame with the appended data, and carries out the determination process of step SB1.
Upon being activated, the session managing unit 45 carries out the determination process of step SC1. Since the answer at step SC1 is “Yes”, the communication controller 44 executes step SC2. At step SC2, the session managing unit 45 determines whether the received frame is a control frame. Since the frame received from the communication controller 44 is a control frame with the appended data, the answer at step SC2 is “Yes”, and the session managing unit 45 executes step SC3.
At step SC3, the session managing unit 45 refers to the control code of the received control frame and determines whether the control frame is for session establishment or session release. Since the control frame is for session release in this case, the answer at step SC3 is “Yes” and session managing unit 45 executes step SC4.
At step SC4, the session managing unit 45 determines, in the manner described above, whether the control level read from the control command table 70 exceeds the control level read from the session management table 60. Since, the answer at step SC4 is “Yes” in this case, the session managing unit 45 executes step SC6. At step SC6, the session managing unit 45 sends the control result to the communication controller 44.
To sum up, according to the present embodiment, it is first determined whether the control frame that is received is from any of the monitor/control devices 101 through 103. If so, the source device ID and the source port ID (the physical port ID as well as the logical port ID) of the physical port 41 that receives the control frame and one of the plural logical ports 421 through 42m provided for plural sessions in the physical port 41 are appended to the control frame. If the control frame is meant for the local device, the process according to the control code is carried out. If the control frame is meant for another transmission device, the source device ID and the source port ID are appended to the control frame, and the control frame is sent to the relevant transmission device. Thus, physically less space is required since only one physical port 41 is used.
According to the present embodiment, upon receiving another control frame from the monitor/control device that already has a session established with a transmission device, the source port ID of the physical port 41 and any of the free plural logical ports and the source device ID are appended to the control frame. Thus, plural sessions can be established per monitor/control device.
According to the present embodiment, as explained in steps SC10 and SC11 (see
Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art which fairly fall within the basic teaching herein set forth.
For instance, as shown in
The computer 100 includes a central processing unit (CPU) 110 that executes the program, a Read-Only Memory (ROM) 120 that stores various types of data, a Random Access Memory (RAM) 130 that stores calculation parameters, and a reading device 140 that reads the program from the recording medium 200.
The CPU 110 reads the program recorded on the recording medium 200 by means of the reading device 140 and executes the program to realize the functions described above. An optical disk, a flexible disk, a hard disk, and the like may be used as the recording medium.
Thus, according to the present invention, it is first determined whether a control frame that is received is from any of the monitor/control devices. If so, the source device ID and the source port ID (physical port ID as well as the logical port ID) of the physical port that receives the control frame and one of the plural logical ports provided for plural sessions in the physical port are appended to the control frame. If the control frame is meant for the local device, the process according to the control code is carried out. If the frame is meant for another transmission device, the source device ID and the source port ID are appended to the control frame, and the control frame is sent to the relevant transmission device. Thus, physically less space is required since only one physical port is used.
According to the present invention, upon receiving another control frame from the monitor/control device that already has a session established with a transmission device, the source port ID of the physical port and any of the free plural logical ports and the source device ID are appended to the control frame. Thus, plural sessions can be established per monitor control device.
According to the present invention, if no control is carried out for a given length of time while a session is established, the session is automatically released, preventing unnecessary engagement of the logical port.
Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP03/01342 | Feb 2003 | US |
Child | 11070715 | Mar 2005 | US |