This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2011-61758, filed on Mar. 18, 2011, the entire contents of which are incorporated herein by reference.
The embodiment discussed herein relates to a transmitting device and an information acquisition control method.
Due to the growth of traffic loads on networks, an administrator conventionally acquires detailed information about traffic on networks by profiling user or application traffic. One type of information is statistical information. Statistical information is accumulated information (count values) of counter numbers such as the number of packets, the number of octets, or the number of errors and the like on a network. Statistical information is used, for example, for diagnosing problems related to network performance, or as periodically acquired and accumulated historical information to be used for operation and maintenance.
Generally, an optical transmitting device manages statistical information related to alarms for each communication path. The optical transmitting device manages the statistical information by storing the statistical information in hardware (HW) counters for each communication path and a central processing unit (CPU) periodically reads out the stored statistical information. The above-mentioned communication paths are packet paths established for conducting the transmission and reception of data between arbitrary nodes on a network. Conventional optical transmitting devices are expected to monitor up to 8192 communication paths per device and sound an alarm when any type of abnormality is detected as a result of reading the statistical information.
For example, if there are 4500 communication paths, hardware constituted by an optical transmitting device collects statistical information from 1 to 4500 communication paths and continuously counts the value of the statistical information using the HW counters. The CPU conducts polling to read out the value of the statistical information at certain polling intervals, and adds the value of the statistical information to a random access memory (RAM). The HW counter includes a read clear register to clear the value of the statistical information to “0” when the CPU reads out the value of the statistical information. The CPU reports the value of the statistical information that exceeds a threshold in a period (for example, 15 minutes) called a bind period (roll over) as an optical transmitting device alarm. In this way, the optical transmitting device manages the devices to acquire the value of the statistical information by enabling a collaboration between the HW counter that continuously collects the value of the statistical information and the CPU operating at a certain timing.
For example, Japanese Laid-open Patent Publication No. 6-132967 is disclosed as related art.
According to an aspect of the invention, an apparatus includes a counter circuit that counts a value of statistical information of a communication path for certain time periods; a memory; and a control circuit that acquires the value of the statistical information from the counter circuit and causes the memory to store the value of the statistical information when the value of the statistical information acquired by the counter circuit reaches a threshold.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
The following is an explanation of embodiments of a transmitting device and an information acquisition control method (polling control method) disclosed in the present application with reference to the accompanying drawings. In the present embodiment, polling is not limited to the description herein and refers to processing in which a CPU acquires information from an HW counter and causes the information to be stored in a RAM. The transmitting device and information acquisition control method disclosed herein are not limited to the following embodiments.
A configuration of an optical transmitting device according to a first embodiment disclosed herein will be described first.
The IF 11 analyzes received data inputted from a transmission path to collect and tally statistical information related to the amount and size of the data. The IF 11 includes a statistical information processing circuit 111, a destination determining circuit 112, and a destination management table 113. The components are coupled to allow for one-way or two-way inputting and outputting of signals and data. The statistical information processing circuit 111 is physically implemented by a CPU, for example, and manages the abovementioned statistical information. Details of the statistical information processing circuit 111 will be explained below. The destination determining circuit 112 is desirably physically implemented by a field-programmable gate array (FPGA), and determines a destination of the received data based on identification information attached to the received data and data in the destination management table 113. The identification information may be, for example, destination information or service type information. The destination management table 113 is physically implemented by a memory such as, for example, a RAM and the like, and is a table that manages a destination address, a transmission source address, a virtual local area network (VLAN) ID and the like.
The switch 12 switches output targets of the received data according to a determination result made by the destination determining circuit 112. Specifically, the switch 12 adds destination information to the received data to generate transmitting data which is outputted to a data buffer managing circuit 131.
The IF 13 transmits the transmitting data to a destination target according to the attached destination information. The IF 13 includes the data buffer managing circuit 131, a data buffer 132, and a statistical information processing circuit 133. The components are coupled to allow for one-way or two-way inputting and outputting of signals and data. The data buffer managing circuit 131 is physically implemented by a FPGA. The data buffer managing unit 131 stores transmitting data inputted from the switch 12 in the data buffer 132 and also reads out the transmission data stored in the data buffer 132 at a certain timing. The data buffer 132 is physically implemented by a memory such as, for example, a RAM, and temporarily stores the transmission data in conjunction with a timing to transmit the transmitting data. The statistical information processing circuit 133 is physically implemented by a processor such as, for example, a CPU and manages the abovementioned statistical information. Details of the statistical information processing circuit 133 will be explained below.
The overall control circuit 14 is physically implemented as a processor by, for example, the CPU, and monitors the IF 11, the switch 12, and the IF 13. A command transmitting unit 15 transmits a specific command to the overall control circuit 14 according to an instruction input by a user. For example, when the user inputs a threshold setting command concerning the communication paths, the command transmitting unit 15 loads the instructed threshold in the overall control circuit 14.
The following is a description of the abovementioned statistical information processing circuits 111 and 133. The explanation below describes a configuration of the statistical information processing circuit 111 as a representative example. The statistical information processing circuit 133 has a similar configuration.
The command processing circuit 111a sets a threshold for the communication paths 1 to 4500 according to a command transmitted from the command transmitting unit 15. A shared threshold of “4” is set for all the communication paths in the present embodiment. However, the threshold may be set individually by the user with different values for the communication paths. The command processing circuit 111a receives the above command via the overall control circuit 14 and outputs the command to the statistical information control processing circuit 111b.
The statistical information control processing circuit 111b includes a HW threshold setting unit 111c and a HW interruption registering unit 111d. The HW threshold setting unit 111c sets, as a HW threshold in a HW threshold setting register 114a, a threshold to cause the statistical information memory 111m to store the value of the statistical information acquired by a statistical information counter 114c. The statistical information counter 114c may be, for example, a logic circuit that conducts counting. The HW interruption registering unit 111d registers the generation of an interruption of the CPU in a HW interruption registration register 114b when a statistical information counter value reaches the threshold set by the HW threshold setting unit 111c. Preliminary setting in the polling processing is completed by the setting processing conducted by the HW threshold setting unit 111c and the registration processing conducted by the HW interruption registering unit 111d.
The interruption receiving unit 111e receives an interruption notification from the hardware and outputs the interruption notification to the statistical information collection processing circuit 111f.
The statistical information collection processing circuit 111f includes a collection division determining circuit 111g, a statistic collection determining unit 111h, and a polling processing circuit 111i. The collection division determining circuit 111g determines whether or not the statistical information is divided and collected during the statistical information polling. The statistic collection determining unit 111h determines whether or not statistical information polling is conducted according to whether or not the statistical information reaches the HW threshold. The polling processing circuit 111i conducts polling on communication paths in which an interruption was generated according to the determination result by the statistic collection determining unit 111h. Specifically, the polling processing circuit 111i collects the value of the statistical information stored in the statistical information counter 114c of a HW register 114 and updates the value of the statistical information in the statistical information memory 111m by causing the statistical information memory 111m to store the collected value of the statistical information.
The statistical information memory 111m stores the value of the statistical information acquired by the polling processing circuit 111i from the HW register 114 to allow for updating. The stored value of the statistical information is referred to by the statistical information control processing circuit 111b upon the setting of the HW threshold and the registration of the HW interruption.
The HW register 114 includes the HW threshold setting register 114a, the HW interruption registration register 114b, the statistical information counter 114c, and a traffic analyzing circuit 114d. The HW threshold setting register 114a stores a statistical information collection threshold set by the HW threshold setting unit 111c as the HW threshold. The HW interruption registration register 114b stores the generation of an interruption on a CPU registered by the HW interruption registering unit 111d. The statistical information counter 114c counts errors and the like generated in the communication paths of the optical transmission device 10, and stores the count value as statistical information. The statistical information counter 114c also outputs the statistical information stored at the polling time to the statistical information processing circuit 111 in response to a request from the polling processing circuit 111i. The statistical information counter 114c is a read-clear counter and thus clears the value of the statistical information to “0” accompanying the polling. The traffic analyzing circuit 114d analyzes a traffic state of transmission lines based on the value of the statistical information of the statistical information counter 114c. The traffic analyzing circuit 114d may be implemented, for example, by a network processing unit (NPU).
An explanation of conventional polling processing will be provided again with reference to
For example, in the time T1, all the communication paths are polled together. However, the accumulated value of the statistical information read out as a result of the polling is “0” since no statistical information has been accumulated in any of the communication path HW registers. Therefore, a region corresponding to the time T1 in the statistical information accumulated value table 30e indicates the settings communication path 1 is “0”, communication path 2 is “0”, . . . , communication path 4500 is “0”. Similarly, all the communication paths are polled together in the time T2. One count of statistical information is accumulated in the HW register of the communication path 1 at time T2, and two counts of statistical information are accumulated in the HW register of the communication path 4500. Therefore, the accumulated value of the statistical information read out as a result of the polling is updated in the statistical information accumulated value table 30e as communication path 1 is “1”, communication path 1 is “0”, . . . , communication path 4500 is “2”.
All the communication paths are also polled together in the time T3. Two counts of statistical information are accumulated in the HW register of the communication path 1 at the time T3, and one count of statistical information is accumulated in the HW register of the communication path 4500. Further, the statistical information accumulated value table 30e indicates the settings communication path 1 is “1”, communication path 2 is “0”, . . . , communication path 4500 is “2”. Therefore, as a result of the polling at the time T3, the statistical information accumulated values are respectively updated to communication path 1=“3” (=1+2), communication path 2=“1” (=0+1), . . . , communication path 4500=“3” (=2+1). Similarly, the statistical information of the HW registers of the communication path 1 and communication path 2 are each polled at the time T4. As a result, the statistical information accumulated values are respectively updated to communication path 1=“4” (=3+1), communication path 2=“2” (=1+1), . . . , communication path 4500=“3” (=3+0). One polling is conducted on the HW register statistical information of the communication path 3 at the time T5. As a result, the statistical information accumulated values are respectively updated to communication path 1=“4” (=4+0), communication path 2=“2” (=2+0), . . . , communication path 4500=“3” (=3+1).
The processing from S2 to S4 is similarly conducted at the time T5 for the communication path 4500. Specifically, the counter value of the statistical information of the communication path 4500 reaching the threshold that is “4” at the time T5 causes an interruption notification to be sent to the statistical information processing circuit 111 (CPU) from the HW register 114 (S5). The statistical information processing circuit 111 that receives the notification conducts polling on the communication path 4500 (S6). The statistical information processing circuit 111 causes the value of the statistical information read out from the HW register 114 due to the polling to be reflected in the statistical information accumulated value table 30a (S7). Since the statistical information counter value of the communication path 2 at this time is “2” which is less than the threshold, polling of the communication path 2 is not conducted and the statistical information accumulated value remains at the initial value of “0”. As a result, the statistical information accumulated value at the time T5 becomes “4” for the communication path 1, “0” for the communication path 2, . . . , and “4” for the communication path 4500 as indicated in the statistical information accumulated value table 30a in
As described above, the optical transmission device 10 according to the first embodiment includes the statistical information counter 114c, the statistical information 111m, the HW threshold setting unit 111c, and the polling processing circuit 111i. The statistical information counter 114c counts the value of the statistical information of each communication path at a specific time period (1 second). The statistical information memory 111m stores the value of the statistical information. The HW threshold setting unit 111c sets a threshold to cause the value of the statistical information memory 111m to store the value of the statistical information acquired by a statistical information counter 114c. The polling processing circuit 111i acquires the value of the statistical information from the statistical information counter 114c when the value of the statistical information acquired by the statistical information counter 114c reaches the above threshold, and causes the statistical information memory 111m to store the value of the statistical information. The value of the statistical information includes a count value of errors that occur in the communication paths of the optical transmitting device 10.
Specifically, instead of dividing and then polling the statistical information, a threshold is previously set in the HW register 114 of the optical transmission device 10 according to the first embodiment such that count values are accumulated in the HW register 114 until the threshold is reached. As a result, the optical transmission device 10 does not have to conduct polling on all the communication paths every second. In other words, since polling is only conducted on communication paths about to reach a state of being filled by the HW registers of each communication path, the frequency of polling is reduced and the load on the CPU conducting the polling is reduced.
Furthermore, the following effects may be expected due to the optical transmission device 10 according to the first embodiment. Firstly, since statistical information of the HW register 114 is read out without omission when the preset threshold is reached, no delay may be caused in the polling even if the number of communication paths increases later on. Secondly, since statistical information of the HW register 114 is read out without omission when the preset threshold is reached, omissions in the collection of the statistical information may be avoided in the optical transmission device 10. Thirdly, since the polling time is shortened due to the reduced frequency of the polling, adverse effects of the polling time on switching times to other machines may be reduced in the optical transmission device 10. Fourthly, since the polling time is shortened due to the reduced frequency of the polling, temporary stoppages of low priority functions may be avoided in the optical transmission device 10. As a result, for example, functions such as downloading and the like may be operated in normal time. Fifthly, power consumption of the optical transmission device 10 may be reduced due to the reduced CPU loads.
Next, a second embodiment will be explained. A configuration of an optical transmission device according to the second embodiment is substantially similar to that of the optical transmission device 10 according to the first embodiment illustrated in
The above commands are received by the command processing circuit 111a through the overall control circuit 14. The command processing circuit 111a outputs the received commands to the statistical information control processing circuit 111b. The HW threshold setting unit 111e sets the abovementioned loaded high priority and the low priority thresholds in the HW threshold setting register 114a. As a result, both the low priority threshold and the high priority threshold are set in the HW register 114 for the communication paths. The HW interruption registering unit 111f registers interruptions from both the high and low priority thresholds in the HW interruption registration register 114b. As a result, the HW register 114 is able to notify the CPU about an interruption when an accumulated statistical information counter value reaches a threshold. The polling processing circuit 111i does not conduct polling so long as no interruption notifications are received from the HW registers.
At the time T1 in
The CPU collects the value of the statistical information from the statistical information counter 114c and updates the statistical information memory 111m. As a result, the value of the statistical information collected by the polling is reflected in a statistical information accumulated value table 30b. The statistical information accumulated value of the communication path 4500 at the time T2 is updated from “0” to “2”. The statistical information counter 114c is a read-clear counter and thus automatically clears the value of the statistical information of the HW register 114 to “0” accompanying the polling.
At the time T3, similar processing as conducted on the communication path 4500 as described above is conducted on the communication path 1 since the low priority threshold is reached in the communication path 1. At the time T4, similar processing as conducted on the communication path 4500 as described above is conducted on the communication path 2 since the low priority threshold is reached in the communication path 2. Furthermore, at time T5, the similar processing as described above is conducted on the communication path 4500 since the low priority threshold is reached again in the communication path 4500.
As described above, the HW threshold setting unit 111c in the optical transmission device 10 according to the second embodiment sets a first threshold and a second threshold that is lower than the first threshold. The polling processing circuit 111i acquires the value of the statistical information that has reached the second threshold from the statistical information counter 114c when the value of the statistical information reaches the second threshold and while the number of communication paths in which the value of the statistical information has reached the first threshold is not more than a certain value, and causes the statistical information memory 111m to store the value of the statistical information. Specifically, according to the optical transmission device 10 of the second embodiment, multiple statistical information thresholds are previously set in relation to all the communication paths 1 to 4500. When the statistical information of any of the communication paths reaches the low priority threshold, the number of communication paths that reach the high priority threshold is tallied. If the number of communication paths that have reached the high priority threshold is lower than a threshold (for example, 100 of the 4500 communication paths), the optical transmission device 10 conducts polling on the communication paths that have reached the low priority threshold. As a result, the timing of the polling of the communication paths is distributed and the occurrence of a large number of communication paths reaching the high priority threshold at one timing is avoided. Moreover, polling of other communication paths at the low priority threshold is not conducted at a timing in which the number of communication paths that have reached the high priority threshold has reached or exceeded the above threshold.
The following effects, for example, can be expected according to the optical transmission device 10 of the second embodiment. Firstly, the optical transmission device 10 may cause the polling to be completed within a desired time period thus allowing no polling delays even if the number of communication path increases dramatically later on. Secondly, the optical transmission device 10 may cause the polling to be completed within a desired time period and omissions in the collection of the statistical information may be avoided. Thirdly, the optical transmission device 10 may minimize effects on functions with an emphasis on performance, such as switching time and the like, since the time period for polling is dramatically reduced. Fourthly, the optical transmission device 10 may avoid a state in which low priority processing is not conducted thus allowing for the continuous operation of downloading and other functions since the time period for polling is dramatically reduced. Fifthly, the CPU load is reduced and power consumption of the entire device is also reduced in comparison to the state in which the polling on all the communication paths is conducted continuously (see
When the number of communication paths that have not reached the high priority threshold is lower than the above threshold in the optical transmission device 10, polling is conducted on the communication paths that have reached the low priority threshold. However, the communication paths subject to polling at this time may not necessarily be all the communication paths (4500 communication paths) that have reached the low priority threshold. Specifically, an upper limit such as 100 to 1000 of the 4500 communication paths may be determined ahead of time such that the optical transmission device 10 may not conduct polling on the communication paths that exceed that value even if those communication paths have reached the low priority threshold. As a result, a large CPU load caused by concentrated polling at the low priority threshold may be reduced.
Next, a third embodiment will be explained. A configuration of an optical transmission device according to the third embodiment is substantially similar to that of the optical transmission device 10 according to the first embodiment illustrated in
An IF 21, an overall control circuit 24, and a command transmitting unit 25 correspond respectively to the IF 11, the overall control circuit 14, and the command transmitting unit 15 according to the first embodiment. A statistical information processing circuit 211 and a HW register 214 correspond respectively to the statistical information processing circuit 111 and the HW register 114. A command processing circuit 211a, a statistical information control processing circuit 211b, an interruption receiving unit 211e, and a statistical information collection processing circuit 211f correspond respectively to the command processing circuit 111a, the statistical information control processing circuit 111b, the interruption receiving unit 111e, and the statistical information collection processing circuit 111f. A statistical information memory 211m corresponds to the statistical information memory 111m. A statistical information control processing circuit 211b, a HW threshold setting unit 211c, and a HW interruption registering unit 211d correspond respectively to the statistical information control processing circuit 111b, the HW threshold setting unit 111c, and the HW interruption registering unit 111d. A collection division determining circuit 211g, a statistic collection determining unit 211h, and a polling processing circuit 211i of the statistical information collection processing circuit 211f correspond respectively to the collection division determining circuit 111g, the statistic collection determining unit 111h, and the polling processing circuit 211i of the statistical information collection processing circuit 111f. A HW threshold setting register 214a, a HW interruption registration register 214b, and a statistical information counter 214c of the HW register 214 correspond respectively to the HW threshold setting register 114a, the HW interruption registration register 114b, and the statistical information counter 114c of the HW register 114. A traffic analyzing circuit 214d is a constituent element that corresponds to the traffic analyzing circuit 114d.
A difference between the first embodiment and the third embodiment is that the statistical information processing circuit 211 requests a statistical information readout of an arbitrary communication path at an arbitrary timing. Specifically, while polling is conducted when a threshold is reached in the first embodiment, polling is conducted when a statistical information readout is requested in the third embodiment. The following explanation will focus on the operations of the statistical information processing circuit according to the third embodiment that are different from the first embodiment with reference to
The following is an explanation of the readout request unit 211j that represents a main difference from the first and second embodiments. The readout request unit 211j instructs the statistical information collection processing circuit 211f to conduct polling of the HW register 214 at a timing specified by a user or at a timing previously set in the optical transmission device 10. As a result, the readout request unit 211j collects value of the statistical information tallied in the statistical information counter 214c when a readout is requested regardless of whether or not the value of the statistical information reaches a threshold, thus allowing the tallied statistical information to be reflected in the statistical information memory 211m.
As illustrated in
As described above, the optical transmission device 10 according to the third embodiment includes the readout request unit 211j and the polling processing circuit 211i. The readout request unit 211j requests a readout for causing value of the statistical information to be stored in the statistical information memory 211m. The polling processing circuit 211i acquires the value of the statistical information from the statistical information counter 214c before the value of the statistical information acquired by the statistical information counter 214c reaches the above threshold and then causes the value of the statistical information to be stored in the statistical information memory 211m, in response to the request from the readout request unit 211j.
As a result, the optical transmission device 10 according to the third embodiment may avoid possible problems due to the provision of a statistical information threshold. Specifically, if the statistical information is not polled until a threshold has been reached, an interval between collections is increased so that a condition in which the value of the statistical information is accumulated only in the HW register 214 continues. As a result, an accurate measurement value may not be reflected in the CPU side for a long time. For example, if no communication path that has reached the threshold is present at any timing during the times T1 to T5 in
Although the accumulated value is sent to the user at a timing caused by a request for a readout of the statistical information from a command in the third embodiment, the present embodiment is not limited to such an aspect. Specifically, the statistical information processing circuit 211 may send accumulated values of statistical information from a time other than the readout request time corresponding to the above request command, that is, accumulated values of past statistical information (e.g., the times T1 or T2). As a result, the optical transmission device 10 may acquire accumulated values per communication path going back in the past before the current accumulated values (the presence or number of errors within a certain time period). Therefore, the user may see at any timing historical information of count values at a desired time. Moreover, the user may refer to count values of each communication path at each time. Therefore, for example, temporal changes in the statistical information of the communication paths may be observed to allow for the comparison of statistical information between communication paths at the same time. As a result, the identification of breakdown timings and breakdown locations based on the statistical information is made simpler.
Next, a fourth embodiment will be explained. A configuration of an optical transmission device according to the fourth embodiment is substantially similar to that of the optical transmission device 10 according to the first embodiment illustrated in
Specifically, an IF 31, an overall control circuit 34, and a command transmitting unit 35 according to the fourth embodiment correspond respectively to the IF 11, the overall control circuit 14, and the command transmitting unit 15 according to the first embodiment. A statistical information processing circuit 311 and a HW register 314 correspond respectively to the statistical information processing circuit 111 and the HW register 114. A command processing circuit 311a, a statistical information control processing circuit 311b, an interruption receiving unit 311e, and a statistical information collection processing circuit 311f correspond respectively to the command processing circuit 111a, the statistical information control processing circuit 111b, the interruption receiving unit 111e, and the statistical information collection processing circuit 111f. A statistical information memory 311m corresponds to the statistical information memory 111m. A statistical information control processing circuit 311b, a HW threshold setting unit 311c, and a HW interruption registering unit 311d correspond respectively to the statistical information control processing circuit 111b, the HW threshold setting unit 111c, and the HW interruption registering unit 111d. A collection division determining circuit 311g, a statistic collection determining unit 311h, and a polling processing circuit 311i of the statistical information collection processing circuit 311f correspond respectively to the collection division determining circuit 111g, the statistic collection determining unit 111h, and the polling processing circuit 111i of the statistical information collection processing circuit 111f. A HW threshold setting register 314a, a HW interruption registration register 314b, and a statistical information counter 314c of the HW register 314 correspond respectively to the HW threshold setting register 114a, the HW interruption registration register 114b, and the statistical information counter 114c of the HW register 114. A traffic analyzing circuit 314d is a constituent element that corresponds to the traffic analyzing circuit 114d.
A difference between the first and the fourth embodiments is that initialization of statistical information and the accumulated value thereof is conducted by the statistical information processing circuit on an arbitrary communication path at an arbitrary timing. Specifically, while the polled statistical information is gradually accumulated in the first embodiment, the polled statistical information is initialized in the fourth embodiment. The following explanation will focus on the operations of the statistical information processing circuit according to the fourth embodiment that are different from the first embodiment with reference to
The following is an explanation of the initialization processing circuit 311k that represents the main difference from the first and second embodiments. The initialization processing circuit 311k instructs the statistical information collection processing circuit 311f to conduct initialization of the HW register 314 at a timing specified by a user or at a timing previously set in the optical transmission device 10. As a result, the initialization processing circuit 311k clears the value of the statistical information tallied by the statistical information counter 314c when a request for initialization is received regardless of whether or not the value of the statistical information has reached a threshold, and the result of the initialization is reflected in the statistical information memory 311m.
As illustrated in
As described above, the optical transmission device 10 according to the fourth embodiment includes the initialization processing circuit 311k and the polling processing circuit 311i. The initialization processing circuit 311k requests statistical information initialization. The polling processing circuit 311i acquires the value of the statistical information from the statistical information counter 314c before the value of the statistical information acquired by the statistical information counter 314c reaches the above threshold, and causes the statistical information memory 111m to store the value of the statistical information in response to the request from the initialization processing circuit 311k. The initialization processing circuit 311k initializes the value of the statistical information stored in the statistical information memory 311m.
As a result, the optical transmission device 10 according to the fourth embodiment may avoid possible problems due to the provision of a statistical information threshold. Specifically, if the statistical information is not polled until a threshold has been reached, an interval between collections is increased so that a condition in which the value of the statistical information is accumulated only in the HW register 314 continues. As a result, an accurate measurement value may not be reflected in the CPU side for a long time. In this case, there is a concern that, during pre-operation testing and the like, initialization expected by the user may not be conducted in the optical transmission device 10. The optical transmission device 10 according to the fourth embodiment however is able to solve the above concern since initialization after the polling of the statistical information (actual count values) may be conducted at a desired timing by the initialization processing circuit 311k. Therefore, the optical transmission device 10 according to the fourth embodiment exhibits, in addition to the effects described in the first embodiment, an effect of quickly removing an omission of statistical information initialization caused by the occurrence of a time lag in updating the value of the statistical information. As a result, the optical transmission device 10 may realize a reduction in the CPU load without making the user aware of the dividing and collecting of the statistical information.
The counter values and accumulated values of the statistical information at the time T3 of the communication path 1 are initialized due to a command in the fourth embodiment, however the present embodiment is not limited to such an aspect. Specifically, a configuration may be provided that allows for appropriate modification of the counter value and the accumulated value of the statistical information subject to the initialization through a setting in the optical transmission device 10 or through a user instruction. As a result, the user may initialize the value of the statistical information of a desired time per communication path at any timing. For example, when conducting a pre-operation test on a transmission line, or when an error in the accumulated value of the statistical information or the accumulated value of the statistical information occurs, or when accumulated value of the statistical information is not to be used, the optical transmission device 10 can initialize the value of the statistical information once and then restart tallying. As a result, the user is able to refer to accurate value of the statistical information when testing is being conducted or when collection is being redone.
Although initialization of both the HW register counter value and the statistical information accumulated value are initialized by the initialization command in the optical transmission device 10 of the fourth embodiment, either one or the other of the values may also be initialized.
According to the above embodiments, the maximum value of statistical information that can be accumulated in the HW registers of the communication paths is indicated as “5” for the ease of explanation. Similarly, although the statistical information counter value threshold is indicated as “4” and “2”, these values may be set as desired. Moreover, the setting method may be conducted according to an instruction from a user, or a systematic fixed value may be used. Although common thresholds were set for the communication path 1 to 4500 and the times T1 to T5 in the optical transmission device 10 according to the above embodiments, different thresholds may be set for each communication path or different values may be used for each time. For example, by setting thresholds for desired communication paths lower when establishing different settings for each communication path, the optical transmission device 10 may collect statistical information of the desired communication paths more quickly than the statistical information of other communication paths. For example, by setting thresholds for certain times lower when establishing different thresholds for each time, the optical transmission device 10 may collect the statistical information of more communication paths at the certain times. As a result, polling may be controlled according to communication path characteristics (allowable capacity of accumulation or concentration of statistical information) or temporal characteristics (concentration of statistical information and the like).
The above explanation describes individual configurations and operations for each embodiment. However, the optical transmission device according to each of the embodiments may also incorporate specific constituent elements from other embodiments. Combinations of the embodiment are not limited to two embodiments and various combinations may be employed. For example, an optical transmission device according to the second embodiment that allows for two threshold settings may also include the readout request unit 211j specific to the third embodiment, or the initialization processing circuit 311k according to the fourth embodiment. The optical transmission device according to the third embodiment may also include the initialization processing circuit 311k specific to the fourth embodiment. Moreover, one optical transmission device may combine all the constituent elements described in the first to fourth embodiments.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2011-061758 | Mar 2011 | JP | national |