This application is related to and claims priority to Japanese patent application no. 2007-71657 filed on Mar. 19, 2007 in the Japan Patent Office, the entire disclosure of which is incorporated by reference herein.
Various measures have been made in methods and apparatuses for maintenance in a network using an IP (Internet Protocol) network (e.g., Ethernet®). Recent dramatic development in communication techniques and facilities has caused a rapid increase in services using the IP network. Accordingly, a service providing quality equivalent to that of a dedicated line at low cost has been requested. Under these circumstances, a method and an apparatus enabling a simple maintenance procedure and having a reliable network failure detecting function have been demanded.
For example, Japanese Unexamined Patent Application Publication No. 2004-356854 discloses a system of connectivity testing that can be performed from a terminal apparatus on an arbitrary test section in Ethernet®. Also, a technique about an Ethernet CC (Continuity Check) function is disclosed in IEEE P802.1ag/D6.1 and Ethernet OAM (Operation Administration Management) recommendation ITU-TY1730. This function rapidly detects a failure by transmitting test frames (CCM (Continuity Check Messages) frames) at regular intervals, primarily to check connectivity between an apparatus and another apparatus. Specifically, test frames are transmitted at regular intervals from transmission apparatus A to transmission apparatus B. If transmission apparatus B does not receive the test frames at regular intervals, transmission apparatus B detects a failure (LOC: loss of connectivity) between transmission apparatuses A and B.
Also, a technique about a LB (Loopback) function is disclosed. This function checks whether a frame turned at an apparatus by instructions of a user normally returns, mainly to determine a failure (e.g., to specify a part where the failure has occurred). Also, a technique about a LT (Link Trace) function is disclosed. In this function, a response from a switch through which a frame has passed is used mainly to specify a part where a failure has occurred.
According to an aspect of an embodiment, a transmission apparatus transmits/receives test frames to test connectivity between the transmission apparatus and another transmission apparatus to/from the other transmission apparatus at regular intervals. The transmission apparatus includes a frame length changing unit that changes a frame length, which is capacity of each of the test frames, at every transmission when the test frames are transmitted to the other transmission apparatus at the regular intervals; a reception determining unit that determines whether the test frames having changed frame lengths transmitted from the other transmission apparatus at the regular intervals have been received at the regular intervals; and a frame length calculating unit that calculates the frame length of the test frame that has not been received if the reception determining unit determines that the test frame has not been received.
The above-described embodiments of the present invention are intended as examples, and all embodiments of the present invention are not limited to including the features described above.
Reference may now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
A network using an IP network is disadvantageous in that a network failure where only a packet having a specific frame length is discarded cannot rapidly be detected by a continuity check.
More specifically, a maximum of a corresponding frame length (MTU: Maximum Transfer Unit or MRU: Maximum Receive Unit) is set in each of apparatuses constituting a network. Thus, the apparatus in which the MTU is set (e.g., MTU: 1540 bytes) is capable of processing a packet whose frame length is equal to or under the set MTU (e.g. 1540 bytes), but discards a packet whose frame length is longer than the set MTU (e.g., 1541 bytes) when receiving the packet. In this way, a packet size causes a failure (only a packet having a specific frame length is not transmitted in the network).
In the network using the IP network, a network failure where only a packet having a specific frame length is discarded cannot rapidly be detected by a continuity check.
In the example illustrated in
For example, in the above-described LB (Loopback) function, a user can specify a frame length. However, this function is used to specify a part having a failure when occurrence of the failure is detected by the continuity check (CC) function while the part to be detected is specified by a user, and is not used as the continuity check. Therefore, a network failure where only a packet having a specific frame length is discarded cannot rapidly be detected.
In the following embodiments, a network failure where only a packet having a specific frame length is discarded is rapidly detected by a continuity check.
<Overview and Feature of Transmission Apparatus>
First, an overview and a feature of a transmission apparatus according to this embodiment are described with reference to
As illustrated in
That is, as illustrated in
When the transmission apparatus according to the first embodiment transmits test frames to another transmission apparatus at regular intervals, the transmission apparatus changes a frame length, which is the capacity of each test frame, at every transmission. Specifically, the transmission apparatus changes the frame length by changing the capacity in a reserved area, which is an unused area of the test frame. In the example illustrated in
Then, the transmission apparatus according to the first embodiment determines whether it has received test frames having changed frame lengths transmitted from another transmission apparatus at regular intervals. Specifically, in the example illustrated in
After determining that the test frame has not been received, the transmission apparatus according to the first embodiment calculates the frame length of the test frame that has not been received. In the example illustrated in
With the above-described feature, the transmission apparatus according to the first embodiment is capable of rapidly detecting occurrence of a specific packet loss failure, which is a network failure where only a packet having a specific frame length is discarded, by performing a continuity check.
<Configuration of Transmission Apparatus>
Now, a configuration of the transmission apparatus according to the first embodiment is described with reference to
The output port 20 outputs various information to another transmission apparatus. Specifically, the output port 20 outputs data (e.g., test frames to be transmitted to another transmission apparatus) stored in a transmission buffer 41 (described below) in accordance with instructions of the transmitting unit 40 (described below). On the other hand, the input port 30 receives various information from another transmission apparatus. Specifically, the input port 30 receives data (e.g., test frames transmitted from another transmission apparatus) and stores the data in a reception buffer 51 (described below) in accordance with instructions of the receiving unit 50 (described below).
The transmitting unit 40 performs a process of transmitting various information. Specifically, the transmitting unit 40 transmits the data stored in the transmission buffer 41 via the output port 20. The transmitting unit 40 includes, as elements closely related to this embodiment, the transmission buffer 41 and a test frame transmission processing unit 42, as illustrated in
The transmission buffer 41, which is a memory, for example, stores the data to be transmitted from the transmission apparatus 10 to another apparatus. The transmission buffer 41 stores test frames controlled by the test frame transmission processing unit 42.
The test frame transmission processing unit 42 performs a process of transmitting test frames to test connectivity between the transmission apparatus 10 and another transmission apparatus to the other apparatus at regular intervals. The test frame transmission processing unit 42 includes, as elements closely related to this embodiment, a test frame transmission process control unit 43, a test frame transmission process storing unit 46, and a test frame transmission policy storing unit 47, as illustrated in
The test frame transmission process storing unit 46 stores various data and programs required in a test frame transmitting process, for example, a format of frames to be transmitted as test frames.
The test frame transmission policy storing unit 47 stores a transmission policy required to transmit test frames. Specifically, as illustrated in
In the example illustrated in
The test frame transmission process control unit 43 includes an internal memory to store programs and data defining various processes, so as to perform the various processes. For example, the test frame transmission process control unit 43 performs various processes required to transmit test frames. The test frame transmission process control unit 43 includes, as elements closely related to this embodiment, the test frame transmitting unit 44 and the frame length changing unit 45, as illustrated in
The test frame transmitting unit 44 transmits test frames to test connectivity between the transmission apparatus 10 and another apparatus to the other apparatus at regular intervals. Specifically, the test frame transmitting unit 44 stores the test frames to be transmitted based on instructions of the frame length changing unit 45 in the transmission buffer 41 and transmits the test frames to another transmission apparatus at the regular intervals.
The frame length changing unit 45 changes a frame length, which is the capacity of each test frame, every time a test frame is transmitted to another transmission apparatus at the regular interval. Specifically, the frame length changing unit 45 changes the frame length by changing the capacity in a reserved area, which is an unused area in the test frame.
For example, as illustrated in
In the format of a normal test frame illustrated in
The frame length changing unit 45 regularly changes the frame length in the range of the preset maximum frame length and/or minimum frame length, and/or regularly changes the frame length at the preset capacity interval. More specifically, the frame length changing unit 45 reads the transmission policy stored in the test frame transmission policy storing unit 47, that is, “maximum of changeable frame length”, “minimum of changeable frame length”, “capacity interval”, and “transmission interval (seconds)”. Then, the frame length changing unit 45 determines and changes the frame length of the test frame by using the read transmission policy, and instructs the test frame transmitting unit 44 to transmit the test frame.
In the example illustrated in
The transmitting unit 40 transmits this test frame, and also performs a process of transmitting (relaying) a test frame that is transmitted from another apparatus and is input via the input port 30 to another apparatus.
The receiving unit 50 performs a process of receiving various information. Specifically, the receiving unit 50 receives data stored in the reception buffer 51 (described below) via the input port 30. The receiving unit 50 includes, as elements closely related to this embodiment, the reception buffer 51 and a test frame reception processing unit 52, as illustrated in
The reception buffer 51, which is a memory, for example, stores data transmitted from another transmission apparatus and received by the transmission apparatus 10. The reception buffer 51 stores test frames controlled by the test frame reception processing unit 52.
The test frame reception processing unit 52 performs a process of receiving test frames to test connectivity between the transmission apparatus 10 and another transmission apparatus from the other apparatus at predetermined intervals. The test frame reception processing unit 52 includes, as elements closely related to this embodiment, a test frame reception process control unit 53, a test frame reception process storing unit 57, a test frame reception information storing unit 58, and a specific packet loss failure information storing unit 59, as illustrated in
The test frame reception process storing unit 57 stores various data and programs required in a test frame receiving process, for example, a format of frames received as test frames.
The test frame reception information storing unit 58 stores information about test frames received by the receiving unit 50 in accordance with instructions of the test frame receiving unit 54. Specifically, the test frame reception information storing unit 58 stores a test frame reception table illustrated in
In the example illustrated in
The specific packet loss failure information storing unit 59 stores a frame length of a test frame that has not been received, the frame length being calculated by a frame length calculating unit 56 (described below). Specifically, the specific packet loss failure information storing unit 59 stores a specific packet loss failure table illustrated in
In the example illustrated in
The test frame reception process control unit 53 includes an internal memory to store programs and data defining various processes and performs the various processes accordingly. For example, the test frame reception process control unit 53 performs various processes required to receive test frames. The test frame reception process control unit 53 includes, as elements closely related to this embodiment, the test frame receiving unit 54, a reception determining unit 55, and the frame length calculating unit 56, as illustrated in
When the transmission apparatus 10 receives test frames transmitted from another transmission apparatus at regular intervals, the test frame receiving unit 54 stores information about the received test frames. Specifically, after test frames have been received, the test frame receiving unit 54 reads “source”, “reception time”, and “frame length” from each of the test frames and stores them in the test frame reception information storing unit 58 by associating them with each other.
The reception determining unit 55 determines whether the transmission apparatus 10 has received a test frame having a changed frame length transmitted from another transmission apparatus at a regular interval. Specifically, the reception determining unit 55 reads “reception time” stored by being associated with an arbitrary “source” from the test frame reception information storing unit 58 at determination timing, and determines whether the transmission apparatus 10 has received a test frame at a predetermined time interval from the read “reception time”.
In the example illustrated in
If it is determined that a test frame was not received, the frame length calculating unit 56 calculates the frame length of the test frame that was not received. Specifically, when the reception determining unit 55 determines that a test frame was not received at the regular interval, the frame length calculating unit 56 reads the “frame length” stored while being associated with the test frame that was received from the same source just before (or just after) the “reception time” when the test frame was not received, and calculates a specific packet length. Then, the frame length calculating unit 56 stores “estimated source”, “estimated reception time”, and “specific packet length” in the specific packet loss failure information storing unit 59 by associating them with each other.
In the example illustrated in
Hereinafter, a test frame transmitting process according to the first embodiment is described with reference to
As illustrated in
Then, the test frame transmitting unit 44 transmits the test frame (operation S104), and the test frame transmitting process ends. That is, the test frame transmitting unit 44 stores the test frame to be transmitted by instructions of the frame length changing unit 45 in the transmission buffer 41 so as to transmit the test frame to another transmission apparatus.
Hereinafter, a test frame receiving process according to the first embodiment is described with reference to
As illustrated in
Then, the test frame receiving unit 54 stores the read frame length (operation S203), and the test frame receiving process ends. That is, the test frame receiving unit 54 stores the read “source”, “reception time”, and “frame length” in the test frame reception information storing unit 58.
Hereinafter, a specific packet loss failure determining process according to the first embodiment is described with reference to
As illustrated in
On the other hand, if the reception determining unit 55 determines that regular reception is not performed (No in operation S302), the frame length calculating unit 56 reads a frame length stored in the test frame reception information storing unit 58 (operation S303). That is, if the reception determining unit 55 determines that a test frame was not received at the regular interval, the frame length calculating unit 56 reads the “frame length” stored while being associated with the test frame that was received from the same source just before (or just after) the “reception time” when the test frame was not received.
Then, the frame length calculating unit 56 calculates a specific packet length based on the read frame length (operation S304). Then, the frame length calculating unit 56 stores the calculated specific packet length in the specific packet loss failure information storing unit 59 (operation S305), and the specific packet loss failure determining process ends. That is, “estimated source”, “estimated reception time”, and “specific packet length” are stored in the specific packet loss failure information storing unit 59 while being associated with each other.
Hereinafter, an example of a process in the transmission apparatus according to the first embodiment is described with reference to
As illustrated in
After that, apparatus A changes the frame length at every transmission (operation S1007). When apparatus A transmits a test frame of “Length=1541” to apparatus B, in which setting is made to discard a frame of 1541 bytes or more (operation S1008), the test frame is not transmitted from apparatus B to apparatus C. Accordingly, apparatuses C and D do not receive the test frame within predetermined time, and thus it is determined that the test frame has been discarded (operation S1009). As a result, since the test frame of “Length=1541” does not reach apparatuses C and D, it is determined that the setting in apparatus B is abnormal (operation S1010).
As described above, according to the first embodiment, when the transmission apparatus transmits test frames to another transmission apparatus at regular intervals, the transmission apparatus changes the frame length (capacity) of the test frames at every transmission. Also, the transmission apparatus determines whether the transmission apparatus has received each test frame of a changed frame length transmitted from another transmission apparatus at the regular interval. If the transmission apparatus determines that it has not received a test frame, the transmission apparatus calculates the frame length of the test frame that has not been received. Therefore, occurrence of a specific packet loss failure, which is a network failure where only a packet having a specific packet length is discarded, can be rapidly detected by performing a continuity check.
According to the first embodiment, the transmission apparatus changes the frame length by changing the capacity in the reserved area, which is an unused area of the test frame. Thus, a test frame used in a normal continuity check where the frame length is not changed can be used, and occurrence of a specific packet loss failure can be detected even if an apparatus incompatible with this embodiment exists in the network. Furthermore, a continuity check can be performed by changing the frame length while using a test frame used in a normal continuity check, and thus occurrence of a specific packet loss failure can be detected without using or installing a dedicated apparatus.
According to the first embodiment, the transmission apparatus regularly changes the frame length in the range of the preset maximum frame length and/or minimum frame length. Thus, a specific packet loss failure can be flexibly detected, e.g., by setting a frame length not causing the specific packet loss failure out of the range.
According to the first embodiment, the transmission apparatus regularly changes the frame length at the preset capacity interval. Thus, a specific packet loss failure can be flexibly detected, e.g., by increasing the capacity interval of the frame length that is regularly changed if a specific packet loss failure should be detected in short time.
In the first embodiment, only unique test frames of a changeable frame length are used. However, the present invention is not limited to this, but normal test frames of a fixed frame length can be used together. In the second embodiment, a case where normal test frames of a fixed frame length are used together is described. In the following description, the same part as that of the transmission apparatus according to the first embodiment is briefly described.
The transmission apparatus according to the second embodiment determines whether the capacity in the reserved area is changed after receiving a test frame from another transmission apparatus. For example, the transmission apparatus determines whether the reserved area is “All 0” as illustrated in
If the transmission apparatus according to the second embodiment determines that the reserved area is changed, the transmission apparatus determines that the test frame is a unique test frame of a changeable frame length and determines whether the test frame was received at the regular interval. If unchanged capacity in the reserved area is observed, the transmission apparatus determines that the test frame is a normal test frame of a fixed frame length and determines whether the test frame was received at the regular interval.
For example, if the transmission apparatus according to the second embodiment determines that the reserved area is used as “Length” and the capacity is changed as illustrated in
In this way, the transmission apparatus according to the second embodiment can easily distinguish between a normal continuity check and a continuity check according to this embodiment, and thus both types of continuity check can be easily used together.
Hereinafter, a receiving process using unique test frames and normal test frames according to the second embodiment is described with reference to
As illustrated in
On the other hand, if the transmission apparatus according to the second embodiment receives a unique test frame (Yes in operation S402), the transmission apparatus reads a frame length from the received test frame (operation S403) and stores the read frame length (operation S404), and then the receiving process ends.
Hereinafter, a specific packet loss failure determining process using unique test frames and normal test frames according to the second embodiment is described with reference to
As illustrated in
On the other hand, if the transmission apparatus according to the second embodiment determines that regular reception is not performed (No in operation S502), the transmission apparatus determines whether the test frame is a unique test frame (operation S503). Specifically, the transmission apparatus determines whether the test frame to be received is a unique test frame or a normal test frame. If the test frame is a unique test frame (Yes in operation S503), the transmission apparatus calculates a specific packet length and stores it (operations S504 to S506), and the specific packet loss failure determining process ends. On the other hand, if the test frame is a normal test frame (No in operation S503), the transmission apparatus stores “failure occurred” in a predetermined storing unit without calculating a frame length (operation S507), and the specific packet loss failure determining process ends. In the example illustrated in
Hereinafter, an example of a process in the transmission apparatus using only normal test frames according to the second embodiment is described with reference to
As illustrated in
Then, apparatus A transmits normal test frames of the fixed frame length at regular intervals without changing the frame length at every transmission (operation S2006).
As described above, according to the second embodiment, the transmission apparatus determines whether the capacity in the reserved area is changed after receiving a test frame from another transmission apparatus. If the capacity in the reserved area is changed, the transmission apparatus determines that the test frame is a unique test frame of a changeable frame length and determines whether the test frame was received at the regular interval. If unchanged capacity in the reserved area is observed, the transmission apparatus determines that the test frame is a normal test frame of a fixed frame length and determines whether the test frames was received at the regular interval. Accordingly, a normal continuity check can be easily distinguished from a continuity check according to this embodiment, and thus both types of continuity check can be easily used together.
The transmission apparatus according to the first and second embodiments has been described above. Other than the above-described embodiments, various different embodiments can be applied. Hereinafter, another embodiment is described about a transmission apparatus according to a third embodiment.
(1) Statistical Information
In the above-described embodiments, every time a specific packet length is calculated, the specific packet length is simply stored. However, the present invention is not limited to this, but the specific packet length can be stored as statistical information.
Specifically, after a frame length of a test frame is calculated, the transmission apparatus according to the third embodiment stores the number of times when the test frame was not received and the calculated frame length as statistical information indicating a network failure. For example, if it is determined that a test frame was not received and if a specific packet length is calculated, the specific packet length is stored as statistical information. The statistical information is classified by specific packet length, estimated source, and estimated reception time.
As described above, the transmission apparatus according to the third embodiment stores the number of times when the test frame was not received and a calculated frame length of a test frame as statistical information indicating a network failure. Accordingly, a status of occurrence of a network failure can be easily recognized and a network status of the entire system can be rapidly recognized.
(2) Determining Method
In the above-described embodiments, when it is determined whether test frames of changed frame lengths are received from another transmission apparatus at regular intervals, it is determined whether the test frames are received at predetermined reception timings. However, the present invention is not limited to this, but it may be determined whether the test frames are received at predetermined capacity intervals after receiving the test frames.
For example, referring to the example illustrated in
(3) System
Among the processes described in the embodiments, all or part of processes that are manually performed can be automatically performed in a known method (e.g., the transmission apparatus to transmit test frames automatically sets a maximum frame length from a maximum (e.g., MTU) of corresponding frame lengths). Also, the procedure of processes, the procedure of control, specific names, and information including various data and parameters (e.g.,
The respective elements of the devices illustrated in the drawings are functional and conceptual, and are not necessarily be configured physically as illustrated in the drawings. That is, a specific form of distribution or integration of the respective devices is not limited to that illustrated in the drawings, and all or part of the devices can be functionally or physically distributed or integrated in an arbitrary unit in accordance with various loads or a usage state (e.g., in the example illustrated in
(4) Programs of Transmission Apparatus
In the first embodiment, various processes are realized by hardware logic. However, the present invention is not limited to this, but the various processes can be realized by executing prepared programs in a computer. Hereinafter, an example of a computer executing a transmission apparatus control program having the same function as that of the transmission apparatus described in the first embodiment is described with reference to
As illustrated in
The ROM 3111 stores control programs having the same functions as those of the test frame transmitting unit 44, the frame length changing unit 45, the test frame receiving unit 54, the reception determining unit 55, and the frame length calculating unit 56 described in the first embodiment. That is, as illustrated in
When the CPU 3110 reads those programs 3111a to 3111e from the ROM 3111 and executes them, the programs 3111a to 3111e function as a test frame transmitting process 3110a, a frame length changing process 3110b, a test frame receiving process 3110c, a reception determining process 3110d, and a frame length calculating process 3110e, respectively, as illustrated in
The CPU 3110 executes the transmission apparatus control program based on test frame transmission policy data 3113a, test frame reception information data 3113b, and specific packet loss failure information data 3113c stored in the RAM 3113.
The programs 3111a to 3111e described in this embodiment need not always be stored originally in the ROM. Those programs may be stored in a portable physical medium inserted into the transmission apparatus, such as a memory card, a flexible disk, a CD-ROM, an MO disc, a DVD, a magneto-optical disc, or an IC card, or a fixed physical medium, such as an HDD provided inside or outside the transmission apparatus. Alternatively, the programs may be stored in another computer (or server) connected to the transmission apparatus via a public line, the Internet, a LAN, or a WAN. In that case, the transmission apparatus reads the respective programs from the medium or the computer and executes the programs.
Although a few preferred embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2007-071657 | Mar 2007 | JP | national |