WO2001015389A1 - Clock setting method, communication device using the method, and communication system - Google Patents
Clock setting method, communication device using the method, and communication system Download PDFInfo
- Publication number
- WO2001015389A1 WO2001015389A1 PCT/JP1999/004491 JP9904491W WO0115389A1 WO 2001015389 A1 WO2001015389 A1 WO 2001015389A1 JP 9904491 W JP9904491 W JP 9904491W WO 0115389 A1 WO0115389 A1 WO 0115389A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock
- master
- slave
- switching
- level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
- H04J3/0688—Change of the master or reference, e.g. take-over or failure of the master
Definitions
- the present invention relates to a clock setting method and a communication device and a communication system using the method, and more particularly to a clock setting method for performing clock synchronization between functional units using dependent synchronization and a method thereof.
- clock synchronization between devices that transmit and receive data includes independent synchronization, slave synchronization, and mutual synchronization.
- Independent synchronization means that each device uses an independent clock individually.
- Dependent synchronization is when a certain device is on the master side and transmits a clock along with data.
- Mutual synchronization involves arranging a variable clock generator in each device and exchanging clocks with each other for synchronization.
- the slave synchronization is based on various devices configured with multiple panels such as base station modems and ATM switches using ATM (Asynchronous Transfer Mode) technology, which is a recent high-speed data transfer technology. It is used for clock synchronization between each functional unit in.
- ATM Asynchronous Transfer Mode
- a function unit such as an ATM switch, which collects line power, is on the master side, and other function units connected to the function unit are on the clock slave side.
- Each functional unit has a function that can be used on either the clock master side or the clock slave side as a single unit, and the switching was performed by hardware.
- the present invention has been made in view of the above points, and is a power function to automatically set a clock master side and a clock slave side. If the master clock generated by the clock master side deteriorates, the clock master side It is an object to provide a clock setting method capable of automatically switching between a slave side and a clock slave side, a communication device and a communication system using the method.
- the clock setting method of the present invention includes the steps of comparing a first clock dominance level set in the own device with a second clock dominance level set in another device; Determining, based on the result of the comparison, whether the own device or another device is suitable for the clock device, and, according to the result of the determination, the own device is used as a clock master device or a clock slave device. And a setting step.
- the clock superiority level of each device is compared, and the clock master device and the clock slave device can be appropriately set by determining one device corresponding to the clock master device.
- the clock master device does not exist at startup such as when the power is turned on, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
- the clock superiority level is set in advance so as to be appropriate for the clock master device and to be low as appropriate for the clock slave device.
- the device with the largest clock superiority level among the devices is set as the clock master device.
- the step of performing the self-comparison may include transmitting the first clock superiority level to the other device by using a cell; transmitting the second clock superiority level to the own device using a cell.
- the clock setting method of the present invention includes a step of comparing the first clock superiority level set in the clock master device and the second clock superiority level set in the clock slave device at predetermined intervals. And if the self-comparison results in that the second clock superiority level power is determined to be more suitable for the clock master device than the first clock superiority level, the tin switches between the clock master device and the clock slave device. It is configured to comprise.
- the first clock superiority level set in the clock master device during operation and the second clock superiority level set in the mouse slave device are compared at predetermined time intervals. Therefore, when the first clock dominance level decreases and the clock slave device becomes more suitable for the clock master device, the clock master device and the clock slave device are automatically switched.
- the present invention also provides the clock setting method, wherein the first clock supplied from the ri clock master device is compared with a second clock generated by the it clock slave device. As a result, when an abnormality is detected in the relationship between the first clock and the second clock, the abnormality is notified to the self-serving clock master device. Reducing the first clock dominance level of the device.
- the deterioration of the first clock or the second clock is notified to the clock master device more than once, it can be regarded as the deterioration of the first clock supplied from the clock cell based on the rule of majority rule.
- the clock master device is automatically switched between the clock master device and the clock slave device by lowering the first clock superiority level of the clock master device. Avoid operations stoppage and operate It is possible to continue.
- the present invention also provides the above clock setting method, wherein the self-comparing step comprises: transmitting the first clock superiority level to the cell slave device using a cell; Transmitting the second clock dominance level to the clock device using a cell. In this way, the ability to easily transmit and receive the clock superiority level of each device is determined by the power.
- the step of switching between the clock master device and the clock slave device includes: nn switching a self-clock slave device to a new clock master device; After the own clock slave device is switched to the new clock master device, a step of switching the current clock master device to the clock slave device may be provided.
- the present invention may be configured such that, in the clock setting method described above, the step of notifying the abnormality includes transmitting the if self abnormality to the il master master device using a cell.
- the deterioration of the first clock or the second clock can be easily transmitted to and received from the clock master device.
- the communication device of the present invention includes: a superiority level comparing unit that compares the first clock superiority level set in the own device and the second clock superiority level set in another device; Based on the result of the above, the own device determines which of the other devices is suitable for the clock master device, and, based on the result of the determination, determines the own device as the clock master device or the clock slave device. And setting means for setting in the device.
- the clock master device and the clock slave device can be appropriately set by comparing the clock superiority level of each device and determining one device suitable for the clock master device. Especially when starting up when turning on the power. If a clock master device does not exist, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
- the present invention also provides the communication device as described above, wherein the superiority level comparing means transmits the first clock superiority level to another device using a cell, and the other device. And a detecting means for detecting the second clock dominance level transmitted by using the cell.
- the communication device of the present invention sets the first clock superiority level set in the clock master device and the clock superiority level set in the slave device.
- Superiority level comparing means for comparing the second clock superiority level for each predetermined period, and as a result of the self-comparison, the second clock superiority level is higher than the first clock superiority level by the clock controller. If it is determined that the clock master device and the clock slave device are determined to be suitable, a switching means for switching between the clock master device and the clock slave device is provided.
- the first clock superiority level set in the clock master device during operation and the second clock superiority level set in the clock slave device are compared at predetermined time intervals. Therefore, when the first clock superiority level decreases and the clock slave device becomes more suitable for the clock master device, the clock master device and the clock slave device are automatically switched.
- the present invention provides a communication device as described above, wherein receiving means for receiving a comparison result of a first clock supplied from the self-clock master device and a second clock generated by the self-clock slave device; When the self-comparison result indicates that an abnormality has been detected in the relationship between the first clock and the second clock, the superiority level changing means for lowering the superiority level of the first clock of the clock device. May be further provided.
- the first clock supplied from the clock device and the clock By comparing the first clock or the second clock with the second clock generated by the slave device, the deterioration of the first clock or the second clock can be detected. If more than one notification is received, it can be regarded as a deterioration of the first clock supplied from the master by the rule of majority. Then, if it is deemed that the first clock is degraded, the clock master device is automatically switched to the clock master device and the clock slave device by lowering the first clock superiority level of the clock master device, resulting in quality deterioration and operation stop. It is Rikikawano to continue operation while avoiding the problem.
- the switching unit switches the clock slave device to a new clock master device, and the first switching device switches the clock slave device to a new clock master device. It may be configured to have a second switching means for switching the clock master device to the clock slave device later.
- the present invention may be configured such that in the communication device described above, the self-editing means is supplied with the ri self-comparison result using a cell.
- the comparison result can be easily transmitted to and received from the clock master device.
- the communication system of the present invention has an advantage of comparing the first clock superiority level set in the clock master device and the second clock superiority levels respectively set in the plurality of clock slave devices at predetermined time intervals.
- a level comparing means ; and, as a result of the comparison, when it is determined that the second clock dominance level is more suitable for the clock mass unit than the first clock dominance level, one clock slave with the clock mass unit is determined.
- the clock master device and the clock slave device can be appropriately set by comparing the clock superiority level of each device and determining one device suitable for the clock master device. Especially when power is turned on If the clock master device does not exist at the time of resetting, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
- the present invention provides the communication system as described above, wherein a comparing means for comparing the first clock supplied from the clock master device with the second clock generated by the self-clock slave device; When detecting an abnormality in the relationship between the first clock and the second clock, a notifying means for notifying the master device of the abnormality when the abnormality is detected from a plurality of clock slave devices; A superiority level changing means for lowering the superiority level of the clock may be further provided.
- the clock master device by comparing the first clock supplied from the clock master device with the second clock generated by the clock slave device, it is possible to detect the deterioration of the first clock or the second clock, If the clock master device is notified of the deterioration of the first clock or the second clock more than once, it can be regarded as the deterioration of the first clock supplied from the clock master based on the principle of majority rule.
- the first clock dominance level of the clock device is reduced, and the clock device is automatically switched to the clock slave device. It is possible to continue operation while avoiding outages.
- the present invention also provides the communication system as described above, wherein the self-switching means includes: first switching means for switching the clock slave device to a new clock master device; and after switching the clock slave device to a new clock master device. It may be configured to include second switching means for switching the clock master device to the clock slave device.
- FIG. 1 is a diagram illustrating the principle of an example of a clock setting method according to the present invention.
- FIG. 2 is a configuration diagram of an embodiment of an apparatus using the clock setting method of the present invention.
- FIG. 3 is a flowchart of an embodiment of the processing at the time of startup.
- FIG. 4 is a format diagram of an example of an ATM cell for realizing the processing of the present invention.
- FIG. 5 is a flowchart of an embodiment of processing on the clock slave side at the time of startup.
- FIG. 6 is a flowchart of an example of a process during operation.
- FIG. 7 is a flowchart of an example of the process in S250.
- FIG. 8 is a flowchart of an example of the process in S260. BEST MODE FOR CARRYING OUT THE INVENTION
- FIG. 1 is a diagram illustrating the principle of U of the clock setting method of the present invention.
- the configuration shown in FIG. 1 includes a functional unit A 1000 on the clock master side, and functional units B 110, C 120, and n 130 on the clock slave side.
- the functional unit A100 is connected to each of the functional units B110, C120, and n130 on the clock slave side.
- FIG. 2 shows a configuration diagram of an embodiment of an apparatus using the clock setting method of the present invention.
- FIG. 2 is an excerpt of iLh for convenience of explanation, and the functional unit A 100, functional unit B 110, and functional unit C 120 of FIG. 1 are extracted.
- the functional unit A 1000 on the clock master side is connected to the functional units B 110 and C 120 on the plurality of clock slave sides.
- the number of functional units on the mouth slave side is two, and the number is basically unlimited.
- the functional unit A 100 on the clock master side includes transmitting units 6 and 8 for transmitting ATM cells, receiving units 7 and 9 for receiving ATM cells, and control for performing clock control and setting described later.
- the configuration includes a unit 5, clock switching units 3 and 4 for switching output clocks, an oscillator 2 for generating a clock, and a clock monitoring unit 1 for monitoring the clock.
- the functional units B 110 and C 120 on the clock slave side include transmitting units 15 and 21 for transmitting ATM cells, receiving units 14 and 20 for receiving ATM cells, and a clock control unit to be described later.
- Control units 13 and 19 for setting clocks, clock switching units 12 and 18 for switching output clocks, oscillators 11 and 17 for generating clocks, and clock viewing unit 1 for watching clocks 0, 16 are included.
- the functional unit A100 on the clock master side and the functional unit B110 on the clock slave side transmit and receive ATM cells via the transmission units 6, 15 and the reception units 7, 14.
- the functional unit A 100 on the clock master side and the functional unit C 120 on the clock slave side transmit and receive ATM cells via the transmission units 8 and 21 and the reception units 9 and 20. Note that the transmitters 6 and 8 operate on the same reference clock.
- the clock sections 1, 10, and 16 compare the clock cycles of the oscillators 2, 11, and 17 with the clock cycles ⁇ extracted from the receivers 7, 9, 14, and 20, respectively.
- the clock frequency extracted from the receiving units 14 and 20 is compared with the clock frequency of the oscillators 11 and 17 for stability.
- the degree is always set to i, and when the stability is deteriorated, the control units 13 and 19 are notified to that effect.
- the control units 13 and 19 notify the control unit 5 of the functional unit A 100 on the clock master side, using a cell described later, that the clock stability has deteriorated. If the deterioration of the clock stability is detected in both the functional unit B 110 and the functional unit C 120 on the clock slave side, the control unit 5 determines the functional unit A on the clock master side based on the principle of majority voting. It can be considered that a malfunction has occurred in the oscillator 2 of 100. It is considered that a failure has occurred in the oscillator 2 of the functional unit A 100 on the clock master side.
- each functional unit is set in advance in terms of the superiority level power in accordance with the degree of the clock master.
- FIG. 3 shows a flowchart of one embodiment of the processing at the time of startup.
- step S10 the power is turned on to the functional unit A100 or the ATM transmission path is connected, so that the initial state is established, and idle cells are flown on the transmission path. At this time, the operation is performed by the independent clock. It is assumed that the power of the functional unit Bl10 has already been turned on.
- step S20 it is determined whether or not cell synchronization of the transmission line is established by the idle cell, and loss of LOS (Loss Of Signal), in other words, signal detection has been performed. If it is determined that a signal has been detected (Y E S in S 20), the process proceeds to step S 40. If it is determined that no signal is detected (NO in S20), the process proceeds to step S30, and the operation is performed by an independent clock. For example, in the case of the functional unit A 100 in FIG. 2, the operation is performed not by the clock extracted from the receiving unit 7 but by the clock of the oscillator 2.
- step S40 with the link of the transmission path established, the functional unit A100 sends out a cell including its own clock superiority level and a transmission ID indicating the first cell.
- FIG. 4 shows an example of a cell transmitted in step S40.
- FIG. 4 shows a format diagram of an example of an ATM cell for realizing the processing of the present invention.
- the format shown in Fig. 4 consists of a 5-octet header section and a 48-octet payload section.
- the clock mode is set, the clock switching request is set at the 9th octet, and the clock comparison result is set at the 10th octet.
- the clock dominance level is set to 7 ("1 1 1" in binary),
- the transmission ID is set to "1".
- this clock superiority level for example, using 3 bits, a larger number is more suitable for the clock master side, and a smaller number is more suitable for the clock slave side.
- the clock superiority level of the functional unit A100 is assumed to be 3.
- the functional unit B 110 When receiving the cell as shown in FIG. 4, the functional unit B 110 performs the processing of the flowchart shown in FIG. In step S100, the functional unit B110 receives from the functional unit A100 a cell including the clock dominance level and the transmission ID indicating the first cell.
- the functional unit B110 includes the clock superiority level of the functional unit B110 and a transmission ID indicating that the cell is a response cell.
- the cell is sent to the functional unit A100.
- the clock superiority level of the functional unit B110 is 7.
- step S 50 it is determined whether or not a response cell has been received from the function unit A 100 ⁇ function unit B 110. If it is determined that a response cell has been received (Y E S in S 50), the process proceeds to step S 70. If the response cell is not received within the predetermined time (NO in S50), there may be an obstacle such as whether the functional unit B110 is not turned on or not connected to the road. Proceeding to step S60, the operation proceeds with the independent clock.In step S70, the control unit 5 of the functional unit A100 is included in the cell of its own clock superiority level and response. Functional unit ⁇ Compare with 110 clock superiority level.
- step S800 When the clock superiority level of the functional unit A100 is equal to the clock superiority level of the functional unit B110, or the clock superiority level of the functional unit A1000 is higher (YES in S700). ), The process proceeds to step S800, and the control unit A1000 is on the clock cell side. If the clock dominance level of the functional unit A100 is smaller (NO in S70), the process proceeds to step S90, and the control unit A100 becomes a clock reef.
- the clock superiority level of the functional unit A100 is 3 and the clock superiority level of the functional unit B110 is 7
- the clock superiority level of the functional unit A100 itself is Since the level is smaller than the clock dominance level of the functional unit B110, the process proceeds to step S900, and the control unit A100 becomes the clock slave side.
- step S800 the control unit A100 Is configured to be on the clock master side. ⁇ Not limited to this, it can be configured on the clock slave side.
- FIG. 6 shows a flowchart of an embodiment of a process during operation.
- each functional unit for example, processing unit A100, processing unit B110, etc. sends out a cell including its own clock superiority level at predetermined time intervals. I do.
- step S200 the process proceeds to step S210, where each functional unit determines whether a response cell has been received. If it is determined that a response cell has been received (Y E S in S 210), the flow advances to step S 220. If it is determined that the response cell has not been received (NO in S210), the process proceeds to step S280.
- step S220 it is determined whether the result of comparing the own clock superiority level with the clock superiority level included in the response cell is the same as the result of the previous comparison. If it is determined that the result of the comparison is the same as the result of the previous comparison, it can be determined that the master clock is stable, so the flow proceeds to step S280. If it is determined that the result of the comparison is not the same as the result of the previous comparison, the process proceeds to step S230 to change the functional unit on the clock master side, in other words, whether or not to perform the clock pad switching process. Is determined.
- the clock comfort part 10 of the function part B110 and the clock comfort part 16 of the function part C120 are composed of the clocks of the oscillators 11 and 17 and the functions of the clock master.
- the clock supplied from the section A1000 is compared.
- the control unit 13 or 19 notifies the clock comparison result notification portion (for example, the format 10 in FIG. 4) included in the cell transmitted at predetermined time intervals.
- the abnormality is notified to the functional unit A1000 on the master clock side by using (cect.).
- control unit 5 of the functional unit A 100 When the control unit 5 of the functional unit A 100 is notified of an abnormality from both the functional unit B 110 and the functional unit C 120 using the notification part of the clock comparison result, the control unit 5 follows the principle of majority voting. Yo It determines that the oscillator 2 has deteriorated, and lowers its own clock superiority level by a predetermined level.
- the number of functional units on the clock slave side is not limited to two, and the greater the number, the higher the reliability.
- the clock mode is set. Is performed.
- step S230 the control unit 5 determines whether or not to perform the clock mode switching process, and determines that the clock mode switching process is to be performed (YES in step S230). Proceed to 240. If it is determined that the switching process of the clock mode is not performed (NO in S230), the process proceeds to step S280.
- step S240 it is determined whether or not the current time is the clock master side. If it is determined that the current clock is on the clock master side (Y E S in S 240), the process proceeds to step S 260, where clock master switching processing described later is performed. If it is determined that the current time is not the clock master side (NO in S240), the process proceeds to step S250, and a clock slave switching process described later is performed. Following step S250, the process proceeds to step S270, and a request for switching the clock master to the clock slave is made.
- step S260 a request for switching to the clock slave side is made in step S270 after the clock slave switching process of step S250 is completed. Not done until This is to prevent the clock master side from being lost. After the clock slave side is switched to the clock master, the previous clock master side is switched to the clock slave side.
- FIG. 7 shows a flowchart of an embodiment of the processing in S250.
- step S251 a notification portion of a clock switching request included in a cell that is transmitted and re-transmitted at predetermined time intervals to a clock slave that switches from the current clock master to the clock master (for example, FIG. A request to switch the clock mode is made using the 9th octet in the format of 4).
- step S251 the process proceeds to step S252, and it is determined whether or not the switching request has been received. If it is determined that the switching request has been received (Y E S in S 252), the process proceeds to step S 254. If it is determined that the switching request has not been received (NO in S252), the process proceeds to step S253 and waits until it is received.
- step S254 when the clock mode switching request is received, for example, in the case of the functional unit B110, the clock switching unit 12 is controlled so that the clock supplied to the transmitting unit 15 is received by the receiving unit 144. Is switched to the clock of the oscillator 11 from the clock extracted in.
- step S255 the process proceeds to step S255, and when the switching power to the clock master is finished, the control unit 13 sends the signal to the clock master (for example, the functional unit A100) that switches to the clock slave. A response cell indicating the end of switching is transmitted.
- the processing of S260 in FIG. 6 will be described in more detail.
- FIG. 8 shows a flowchart of an embodiment of the processing in S260.
- step S2661 the clock slave switching to the clock master is requested to switch the clock mode using the clock switching request notification portion included in the cell transmitted at predetermined time intervals.
- step S262 the control unit 5 determines whether a response cell has been received, and repeats the processing of S266 to S266 until reception of the response cell ( NO in S262).
- the process proceeds to step S263, and, for example, in the case of the functional unit A100, the clock switching units 3 and 4 are controlled and supplied to the transmitting unit 6.
- the clock is switched from the clock of the oscillator 2 to the clock extracted by the receiver 7.
- the cells shown in FIG. 4 used in the processing of the present invention are provided with protection of CRC (Cyclic Redundancy Check) 10 in the payload, and only normal cells are used in the CRC check.
- CRC Cyclic Redundancy Check
- the reliability can be improved.
- the clock master side and the master slave side can be automatically set, and when the master clock generated by the clock master deteriorates, the clock master side and the clock slave side can be automatically switched. It is possible. Therefore, it is possible to avoid incorrect settings on the clock master side or clock slave side, which are expected to occur at the time of debugging, etc. Even in a wide area or ATM network, quality due to clock stability deterioration can be reduced. Operation can be continued while avoiding deterioration and operation suspension.
- the self-comparison step includes: transmitting the first clock superiority level to the other device using a cell;
- the clock comprising the step of switching between the clock master device and the clock slave device Setting method.
- the first clock dominance level is previously determined using a cell. Transmitting to the clock slave device;
- Switching between the clock master device and the clock slave device includes switching the clock slave device to a new clock master device, and switching the clock slave device to a new clock master device.
- superiority level comparing means for comparing the first clock superiority level set for the own device and the second clock superiority level set for other devices
- Judging means based on the result of the comparison to judge whether the own device or another device is suitable for the clock master device
- a communication device comprising: setting means for setting the own device as a clock master device or a clock slave device according to a result of the determination.
- the superiority level comparing means includes: transmitting means for transmitting the first clock superiority level to the other device using a cell;
- the communication device further comprising: detection means for detecting the second clock superiority level transmitted by the other device using a cell.
- a superiority level comparing means for comparing the first clock superiority level set in the clock master device and the second clock superiority level set in the clock slave device at predetermined intervals, As a result of the comparison, when it is determined that the second clock dominance level is more suitable for the clock master device than the first clock dominance level, a communication device comprising switching means for switching between the clock master device and the clock slave device. apparatus.
- a receiving means for receiving a comparison result between the first clock supplied from the clock master device and a second clock generated by the self-clock slave device, and a self-clock ⁇ for comparing the comparison result with the self-clock slave device.
- the clock master device further comprising: a superiority level changing unit configured to decrease the superiority level of the first clock of the clock master device when an abnormality is detected in a relationship between the clock and the second clock. Communication device.
- the communication device further comprising: a second switching means for switching the clock master device to a clock slave device after switching the clock slave device to a new clock master device.
- the claim self-receiving means is provided by using the self-comparison result using a cell.
- superiority level comparing means for comparing the first clock superiority level set in the clock master device and the second clock superiority levels respectively set in the plurality of clock slave devices at predetermined time intervals;
- the switching means for switching between the master clock device and one clock slave device A communication system comprising:
- comparing means for comparing a first clock supplied from the clock master device with a second clock generated by the clock slave device
- Notification means for notifying the clock mass setting device of an abnormality is notifying the clock mass setting device of an abnormality
- the switching means if the first switching means for switching the own clock slave device to a new clock mass device,
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
明細書 Specification
クロック設 法及びその方法を利用した通信装 びに通信システム 技術分野 Clock setting method and communication device and communication system using the method
本発明は、 クロック設定方法及びその方法を利用した通信装置並びに通信シス テムに係り、 特に、 従属同期を利用して各機能部間のクロック同期を行なうク 口ック設定方法及びその方法を利用した通信装置並びに通信システムに関する。 背景技術 The present invention relates to a clock setting method and a communication device and a communication system using the method, and more particularly to a clock setting method for performing clock synchronization between functional units using dependent synchronization and a method thereof. To a communication device and a communication system. Background art
例えば、 データを送受信する場合には、 発信元で発信するクロックと受信元で 発信するクロックとのずれによる誤動作を防止することが^ ¾である。 このため、 データを送受信する装置間のクロック同期のとり方としては、 独立同期, 従属同 期, 又は相互同期等がある。 For example, when transmitting and receiving data, it is necessary to prevent a malfunction caused by a difference between a clock transmitted from a transmission source and a clock transmitted from a reception source. For this reason, clock synchronization between devices that transmit and receive data includes independent synchronization, slave synchronization, and mutual synchronization.
独立同期は、 各装置が独立のクロックを個別に用いるものである。 従属同期は、 ある装置がマス夕側となり、 クロックをデータと供に伝送するものである。 また、 相互同期は各装置に可変のクロック発生器を配置し、 相互にクロックをやりとり して同期をとるものである。 Independent synchronization means that each device uses an independent clock individually. Dependent synchronization is when a certain device is on the master side and transmits a clock along with data. Mutual synchronization involves arranging a variable clock generator in each device and exchanging clocks with each other for synchronization.
特に、 従属同期は、 近年の高速デ一夕転送技術である ATM (Asynchronous T ransfer Mode) 技術を用いている基地局変復調装置, ATM交換機等のような複 数パネルを実装して構成した各種装置における各機能部間のクロック同期に用い られている。 In particular, the slave synchronization is based on various devices configured with multiple panels such as base station modems and ATM switches using ATM (Asynchronous Transfer Mode) technology, which is a recent high-speed data transfer technology. It is used for clock synchronization between each functional unit in.
従来、 ATM交換機では、 ATMスィッチ等の回線力集約される機能部がク 口ックマスタ側となり、 その機能部に接続される他の各機能部がクロックスレ一 ブ側となっていた。 なお、 各機能部は単体としてはクロックマス夕側又はクロッ クスレーブ側のどちらにでもなれる機能を有しており、 その切り替えをハ一ドウ エアにより行なっていた。 Conventionally, in an ATM switch, a function unit such as an ATM switch, which collects line power, is on the master side, and other function units connected to the function unit are on the clock slave side. Each functional unit has a function that can be used on either the clock master side or the clock slave side as a single unit, and the switching was performed by hardware.
しかしながら、 機能部を組み込む際にクロックマスタ側又はクロックスレーブ 側の切り替えを誤ると、 ビットスリップゃデータエラ一の原因となることがあつ た。 また、 クロックマスタ側が生成するマスタクロックの安定度カ劣化すると データエラ一等が発生するという問題があつた。 発明の開示 However, mistakes in switching between the clock master side and clock slave side when incorporating a functional unit could cause bit slips and data errors. Also, if the stability of the master clock generated by the clock master deteriorates, There was a problem that data errors occurred. Disclosure of the invention
本発明は、 上記の点に鑑みなされたもので、 クロックマスタ側とクロックス レーブ側とを自動的に設定すること力河能であり、 クロックマスタ側の生成する マスタク口ックが劣化するとクロックマスタ側とクロックスレーブ側とを自動的 に切り替えることが可能なクロック設定方法及びその方法を利用した通信装置並 びに通信システムを提供することを目的とする。 The present invention has been made in view of the above points, and is a power function to automatically set a clock master side and a clock slave side. If the master clock generated by the clock master side deteriorates, the clock master side It is an object to provide a clock setting method capable of automatically switching between a slave side and a clock slave side, a communication device and a communication system using the method.
この目的を達成するため、 本発明のクロック設定方法は、 自己の装置に設定さ れる第 1クロック優位性レベル及び他の装置に設定される第 2クロック優位性レ ベルを比較する段階と、 己比較の結果に基づいて、 前記自己の装置又は他の装 置のどちらがクロックマス夕装置に相応しいか判定する段階と、 前記判定の結果 に従って、 I己自己の装置をクロックマスタ装置又はクロックスレーブ装置に設 定する段階とを備えるように構成される。 In order to achieve this object, the clock setting method of the present invention includes the steps of comparing a first clock dominance level set in the own device with a second clock dominance level set in another device; Determining, based on the result of the comparison, whether the own device or another device is suitable for the clock device, and, according to the result of the determination, the own device is used as a clock master device or a clock slave device. And a setting step.
このようなクロック設定方法では、 各装置のクロック優位性レベルを比較し、 クロックマスタ装置に相応しレ、一の装置を決定することにより、 クロックマスタ 装置及びクロックスレーブ装置を適切に設定できる。 特に、 電源投入時等の立ち 上げ時にクロックマスタ装置が存在していない場合に、 各装置のクロック優位性 レベルに基づいて、 クロックマス夕装置に一番相応しい装置をクロックマスタ装 置に設定できる。 In such a clock setting method, the clock superiority level of each device is compared, and the clock master device and the clock slave device can be appropriately set by determining one device corresponding to the clock master device. In particular, when the clock master device does not exist at startup such as when the power is turned on, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
例えば、 クロック優位性レベルはクロックマスタ装置に相応しい程大きく、 ク ロックスレーブ装置に相応しい程小さく予め設定しておく。 この場合、 各装置の クロック優位性レベルを比較して一番大きい装置がクロックマス夕装置に設定さ れる。 For example, the clock superiority level is set in advance so as to be appropriate for the clock master device and to be low as appropriate for the clock slave device. In this case, the device with the largest clock superiority level among the devices is set as the clock master device.
また、 本発明は、 上記のクロック設 法において、 if己比較する段階は、 前 記第 1クロック優位性レベルをセルを利用して前記他の装置に送信する段階と、 fill己他の装置が it己第 2クロック優位性レベルをセルを利用して前記自己の装置 に送信する段階とを備える構成としてもよい。 Also, in the clock setting method of the present invention, the step of performing the self-comparison may include transmitting the first clock superiority level to the other device by using a cell; transmitting the second clock superiority level to the own device using a cell.
このように、 各装置のクロック優位性レベルを容易に送受信することが可能で ある。 In this way, the clock superiority level of each device can be easily transmitted and received. is there.
また、 本発明のクロック設定方法は、 クロックマスタ装置に設定される第 1ク 口ック優位性レベル及びクロックスレーブ装置に設定されている第 2クロック優 位性レベルを所定期間毎に比較する段階と、 ίΠ己比較の結果、 前記第 2クロック 優位性レベル力第 1クロック優位性レベルよりクロックマス夕装置に相応しいと 判定されると、 tin己クロックマスタ装置とクロックスレーブ装置とを切り替える 段階とを備えるように構成される。 Also, the clock setting method of the present invention includes a step of comparing the first clock superiority level set in the clock master device and the second clock superiority level set in the clock slave device at predetermined intervals. And if the self-comparison results in that the second clock superiority level power is determined to be more suitable for the clock master device than the first clock superiority level, the tin switches between the clock master device and the clock slave device. It is configured to comprise.
このようなクロック設^法では、 運用中もクロックマスタ装置に設定される 第 1クロック優位性レベル及びク口ックスレーブ装置に設定されている第 2ク 口ック優位性レベルを所定時間毎に比較しているので、 第 1クロック優位性レべ ルが低下してクロックスレーブ装置の方がクロックマス夕装置に相応しくなると、 自動的にクロックマスタ装置とクロックスレーブ装置とが切り替わる。 In such a clock setting method, the first clock superiority level set in the clock master device during operation and the second clock superiority level set in the mouse slave device are compared at predetermined time intervals. Therefore, when the first clock dominance level decreases and the clock slave device becomes more suitable for the clock master device, the clock master device and the clock slave device are automatically switched.
したがって、 運用中にクロックマスタ装置のマスタク口ックが劣化した場合で も品質劣化や運用停止を回避して運用を続けることが可能である。 Therefore, even if the master clock of the clock master device is deteriorated during operation, it is possible to avoid deterioration in quality or stop operation and continue operation.
また、 本発明は、 上記のクロック設^法において、 ri己クロックマスタ装置 から供給される第 1クロックと it己ク口ックスレーブ装置で生成される第 2ク ロックとを比較する段階と、 前記比較の結果、 前記第 1クロックと第 2クロック との関係に異常を検出すると輔己クロックマスタ装置に異常を通知する段階と、 前記異常が複数のクロックスレーブ装置から通知されると、 itn己クロックマスタ 装置の第 1クロック優位性レベルを低下させる段階とを更に備える構成としても よい。 The present invention also provides the clock setting method, wherein the first clock supplied from the ri clock master device is compared with a second clock generated by the it clock slave device. As a result, when an abnormality is detected in the relationship between the first clock and the second clock, the abnormality is notified to the self-serving clock master device. Reducing the first clock dominance level of the device.
このように、 クロックマスタ装置から供給される第 1クロックと、 クロックス レーブ装置で生成される第 2クロックとを比較することにより、 第 1クロック又 は第 2クロックの劣化を検出すること力 ?き、 この第 1クロック又は第 2クロッ クの劣化がクロックマスタ装置に複数通知された場合、 多数決の原則からクロッ クマス夕から供給される第 1クロックの劣化であるとみなすことができる。 Thus, by comparing the first clock supplied from the clock master device with the second clock generated by the clock slave device, it is possible to detect the deterioration of the first clock or the second clock. If the deterioration of the first clock or the second clock is notified to the clock master device more than once, it can be regarded as the deterioration of the first clock supplied from the clock cell based on the rule of majority rule.
そして、 第 1クロックの劣化であるとみなした場合にクロックマスタ装置の第 1クロック優位性レベルを低下させることにより、 自動的にクロックマス夕装置 とクロックスレ一ブ装置とが切り替わり、 品質劣化や運用停止を回避して運用を 続けることが可能である。 Then, if the first clock is considered to be degraded, the clock master device is automatically switched between the clock master device and the clock slave device by lowering the first clock superiority level of the clock master device. Avoid operations stoppage and operate It is possible to continue.
また、 本発明は、 上記のクロック設 法において、 ίίΙ己比較する段階は、 前 記第 1クロック優位性レベルをセルを利用して ii己ク口ックスレーブ装置に送信 する段階と、 前記クロックスレ一ブ装置が前記第 2クロック優位性レベルをセル を利用して前記クロックマス夕装置に送信する段階とを備える構成としてもよい。 このように、 各装置のクロック優位性レベルを容易に送受信すること力河能で める。 The present invention also provides the above clock setting method, wherein the self-comparing step comprises: transmitting the first clock superiority level to the cell slave device using a cell; Transmitting the second clock dominance level to the clock device using a cell. In this way, the ability to easily transmit and receive the clock superiority level of each device is determined by the power.
また、 本発明は、 上記のクロック設定方法において、 前記クロックマス夕装置 とクロックスレ一ブ装置とを切り替える段階は、 nn己クロックスレ一ブ装置を新 たなクロックマスタ装置に切り替える段階と、 ri己クロックスレーブ装置を新た なクロックマスタ装置に切り替えた後に il己これまでのクロックマスタ装置をク ロックスレーブ装置に切り替える段階とを備える構成としてもよい。 Further, in the clock setting method according to the present invention, the step of switching between the clock master device and the clock slave device includes: nn switching a self-clock slave device to a new clock master device; After the own clock slave device is switched to the new clock master device, a step of switching the current clock master device to the clock slave device may be provided.
このように、 クロックスレーブ装置を新たなクロックマスタ装置に切り替えた 後で、 これまでのクロックマス夕装置をクロックスレ一ブ装置に切り替えること により、 クロックマスタ装置が無い状態を回避すること力可能である。 In this way, after switching the clock slave device to the new clock master device, by switching the existing clock master device to the clock slave device, it is possible to avoid a state where there is no clock master device. is there.
また、 本発明は、 上記のクロック設 法において、 前記異常を通知する段階 は、 if己異常をセルを利用して il己ク口ックマスタ装置に送信する構成としても よい。 Further, the present invention may be configured such that, in the clock setting method described above, the step of notifying the abnormality includes transmitting the if self abnormality to the il master master device using a cell.
このように、 第 1クロック又は第 2クロックの劣化をクロックマスタ装置に容 易に送受信することが可能である。 Thus, the deterioration of the first clock or the second clock can be easily transmitted to and received from the clock master device.
また、 本発明の通信装置は、 自己の装置に設定される第 1クロック優位性レべ ル及び他の装置に設定される第 2クロック優位性レベルを比較する優位性レベル 比較手段と、 前記比較の結果に基づいて、 前記自己の装 は他の装置のどちら がクロックマスタ装置に相応しいか判定する判定手段と、 前記判定の結果に従つ て、 爾己自己の装置をクロックマスタ装置又はクロックスレーブ装置に設定する 設定手段とを備えるように構成される。 Further, the communication device of the present invention includes: a superiority level comparing unit that compares the first clock superiority level set in the own device and the second clock superiority level set in another device; Based on the result of the above, the own device determines which of the other devices is suitable for the clock master device, and, based on the result of the determination, determines the own device as the clock master device or the clock slave device. And setting means for setting in the device.
このような通信装置では、 各装置のクロック優位性レベルを比較し、 クロック マスタ装置に相応しい一の装置を決定することにより、 クロックマスタ装置及び クロックスレーブ装置を適切に設定できる。 特に、 電源投入時等の立ち上げ時に クロックマスタ装置が存在していない場合に、 各装置のクロック優位性レベルに 基づいて、 クロックマスタ装置に一番相応しい装置をクロックマスタ装置に設定 できる。 In such a communication device, the clock master device and the clock slave device can be appropriately set by comparing the clock superiority level of each device and determining one device suitable for the clock master device. Especially when starting up when turning on the power. If a clock master device does not exist, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
また、 本発明は、 上記の通信装置において、 前記優位性レベル比較手段は、 前 記第 1クロック優位性レベルをセルを利用して ίίΙ己他の装置に送信する送信手段 と、 前記他の装置がセルを利用して送信する il己第 2クロック優位性レベルを検 出する検出手段とを備える構成としてもよい。 The present invention also provides the communication device as described above, wherein the superiority level comparing means transmits the first clock superiority level to another device using a cell, and the other device. And a detecting means for detecting the second clock dominance level transmitted by using the cell.
このように、 各装置のクロック優位性レベルを容易に送受信することが可能で また、 本発明の通信装置は、 クロックマスタ装置に設定される第 1クロック優 位性レベル及びク口ックスレーブ装置に設定されている第 2クロック優位性レべ ルを所定期間毎に比較する優位性レベル比較手段と、 Ιίίϊ己比較の結果、 前記第 2 クロック優位性レベルが第 1クロック優位性レベルよりクロックマス夕装置に相 応しいと判定されると、 鶴己クロックマスタ装置とクロックスレーブ装置とを切 り替える切替手段とを備えるように構成される。 As described above, it is possible to easily transmit and receive the clock superiority level of each device, and the communication device of the present invention sets the first clock superiority level set in the clock master device and the clock superiority level set in the slave device. Superiority level comparing means for comparing the second clock superiority level for each predetermined period, and as a result of the self-comparison, the second clock superiority level is higher than the first clock superiority level by the clock controller. If it is determined that the clock master device and the clock slave device are determined to be suitable, a switching means for switching between the clock master device and the clock slave device is provided.
このような通信装置では、 運用中もクロックマスタ装置に設定される第 1ク 口ック優位性レベル及びクロックスレーブ装置に設定されている第 2クロック優 位性レベルを所定時間毎に比較しているので、 第 1クロック優位性レベルカヾ低下 してクロックスレーブ装置の方がクロックマスタ装置に相応しくなると、 自動的 にクロックマスタ装置とクロックスレーブ装置とが切り替わる。 In such a communication device, the first clock superiority level set in the clock master device during operation and the second clock superiority level set in the clock slave device are compared at predetermined time intervals. Therefore, when the first clock superiority level decreases and the clock slave device becomes more suitable for the clock master device, the clock master device and the clock slave device are automatically switched.
したがって、 運用中にクロックマスタ装置のマスタクロック力劣化した場合で も品質劣化や運用停止を回避して運用を続けることが可能である。 Therefore, even if the master clock power of the clock master device deteriorates during operation, it is possible to continue operation while avoiding quality deterioration and operation stop.
また、 本発明は、 上記の通信装置において、 爾己クロックマスタ装置から供給 した第 1クロックと爾己クロックスレーブ装置で生成される第 2クロックとの比 較結果を供給される受信手段と、 編己比較結果が if己第 1クロックと第 2クロッ クとの関係に異常を検出したことを示すとき、 前記クロックマス夕装置の第 1ク 口ック優位性レベルを低下させる優位性レベル変更手段とを更に備える構成とし てもよい。 Also, the present invention provides a communication device as described above, wherein receiving means for receiving a comparison result of a first clock supplied from the self-clock master device and a second clock generated by the self-clock slave device; When the self-comparison result indicates that an abnormality has been detected in the relationship between the first clock and the second clock, the superiority level changing means for lowering the superiority level of the first clock of the clock device. May be further provided.
このように、 クロックマス夕装置から供給される第 1クロックと、 クロックス レーブ装置で生成される第 2クロックとを比較することにより、 第 1クロック又 は第 2クロックの劣化を検出することができ、 この第 1クロック又は第 2クロッ クの劣化がクロックマス夕装置に複数通知された場合、 多数決の原則からク口ッ クマスタから供給される第 1クロックの劣化であるとみなすことができる。 そして、 第 1クロックの劣化であるとみなした場合にクロックマス夕装置の第 1クロック優位性レベルを低下させることにより、 自動的にクロックマスタ装置 とクロックスレーブ装置とが切り替わり、 品質劣化や運用停止を回避して運用を 続けること力河能である。 Thus, the first clock supplied from the clock device and the clock By comparing the first clock or the second clock with the second clock generated by the slave device, the deterioration of the first clock or the second clock can be detected. If more than one notification is received, it can be regarded as a deterioration of the first clock supplied from the master by the rule of majority. Then, if it is deemed that the first clock is degraded, the clock master device is automatically switched to the clock master device and the clock slave device by lowering the first clock superiority level of the clock master device, resulting in quality deterioration and operation stop. It is Rikikawano to continue operation while avoiding the problem.
また、 本発明は、 上記の通信装置において、 前記切替手段は、 ri己クロックス レーブ装置を新たなクロックマスタ装置に切り替える第 1切替手段と、 前記ク ロックスレーブ装置を新たなクロックマスタ装置に切り替えた後に it己これまで のクロックマスタ装置をクロックスレーブ装置に切り替える第 2切替手段とを備 える構成としてもよい。 Further, in the communication device according to the present invention, in the communication device, the switching unit switches the clock slave device to a new clock master device, and the first switching device switches the clock slave device to a new clock master device. It may be configured to have a second switching means for switching the clock master device to the clock slave device later.
このように、 クロックスレーブ装置を新たなクロックマス夕装置に切り替えた 後で、 これまでのクロックマスタ装置をクロックスレーブ装置に切り替えること により、 クロックマスタ装置が無い状態を回避することが可能である。 As described above, after switching the clock slave device to the new clock master device and then switching the clock master device to the clock slave device, it is possible to avoid a state where there is no clock master device.
また、 本発明は、 上記の通信装置において、 編己受信手段は、 ri己比較結果を セルを利用して供給される構成としてもよい。 Further, the present invention may be configured such that in the communication device described above, the self-editing means is supplied with the ri self-comparison result using a cell.
このように、 前記比較結果をクロックマスタ装置に容易に送受信することが可 能である。 Thus, the comparison result can be easily transmitted to and received from the clock master device.
また、 本発明の通信システムは、 クロックマスタ装置に設定される第 1クロッ ク優位性レベル及び複数のクロックスレーブ装置にそれぞれ設定されている第 2 クロック優位性レベルを所定時間毎に比較する優位性レベル比較手段と、 前記比 較の結果、 前記第 2クロック優位性レベルが第 1クロック優位性レベルよりク ロックマス夕装置に相応しいと判定されると、 前記クロックマス夕装置と一のク πックスレーブ装置とを切り替える切替手段とを備えるように構成される。 このような通信システムでは、 各装置のクロック優位性レベルを比較し、 ク 口ックマスタ装置に相応しい一の装置を決定することにより、 クロックマスタ装 置及びクロックスレーブ装置を適切に設定できる。 特に、 電源投入時等の立ち上 げ時にクロックマスタ装置力存在していない場合に、 各装置のクロック優位性レ ベルに基づいて、 クロックマスタ装置に一番相応しい装置をクロックマスタ装置 に設定できる。 Further, the communication system of the present invention has an advantage of comparing the first clock superiority level set in the clock master device and the second clock superiority levels respectively set in the plurality of clock slave devices at predetermined time intervals. A level comparing means; and, as a result of the comparison, when it is determined that the second clock dominance level is more suitable for the clock mass unit than the first clock dominance level, one clock slave with the clock mass unit is determined. Switching means for switching between the device and the device. In such a communication system, the clock master device and the clock slave device can be appropriately set by comparing the clock superiority level of each device and determining one device suitable for the clock master device. Especially when power is turned on If the clock master device does not exist at the time of resetting, the device most suitable for the clock master device can be set as the clock master device based on the clock superiority level of each device.
また、 本発明は、 上記の通信システムにおいて、 前記クロックマスタ装置から 供給される第 1クロックと fl己クロックスレーブ装置で生成される第 2クロック とを比較する比較手段と、 前記比較の結果、 前記第 1クロックと第 2クロックと の関係に異常を検出すると前記ク口ックマスタ装置に異常を通知する通知手段と、 前記異常が複数のクロックスレーブ装置から通知されると、 前記クロックマスタ 装置の第 1クロック優位性レベルを低下させる優位性レベル変更手段とを更に備 える構成としてもよい。 Also, the present invention provides the communication system as described above, wherein a comparing means for comparing the first clock supplied from the clock master device with the second clock generated by the self-clock slave device; When detecting an abnormality in the relationship between the first clock and the second clock, a notifying means for notifying the master device of the abnormality when the abnormality is detected from a plurality of clock slave devices; A superiority level changing means for lowering the superiority level of the clock may be further provided.
このように、 クロックマスタ装置から供給される第 1クロックと、 クロックス レーブ装置で生成される第 2クロックとを比較することにより、 第 1クロック又 は第 2クロックの劣化を検出することができ、 この第 1クロック又は第 2クロッ クの劣化がクロックマスタ装置に複数通知された場合、 多数決の原則からクロッ クマスタから供給される第 1クロックの劣化であるとみなすことができる。 Thus, by comparing the first clock supplied from the clock master device with the second clock generated by the clock slave device, it is possible to detect the deterioration of the first clock or the second clock, If the clock master device is notified of the deterioration of the first clock or the second clock more than once, it can be regarded as the deterioration of the first clock supplied from the clock master based on the principle of majority rule.
そして、 第 1クロックの劣化であるとみなした場合にクロックマス夕装置の第 1クロック優位性レベルを低下することにより、 自動的にクロックマス夕装置と クロックスレーブ装置とが切り替わり、 品質劣化や運用停止を回避して運用を続 けることカヾ可能である。 Then, if it is considered that the first clock is degraded, the first clock dominance level of the clock device is reduced, and the clock device is automatically switched to the clock slave device. It is possible to continue operation while avoiding outages.
また、 本発明は、 上記の通信システムにおいて、 ΙίΠ己切替手段は、 前記クロッ クスレーブ装置を新たなクロックマスタ装置に切り替える第 1切替手段と、 前記 クロックスレーブ装置を新たなクロックマスタ装置に切り替えた後に前記これま でのクロックマスタ装置をクロックスレーブ装置に切り替える第 2切替手段とを 備える構成としてもよい。 The present invention also provides the communication system as described above, wherein the self-switching means includes: first switching means for switching the clock slave device to a new clock master device; and after switching the clock slave device to a new clock master device. It may be configured to include second switching means for switching the clock master device to the clock slave device.
このように、 クロックスレーブ装置を新たなクロックマス夕装置に切り替えた 後で、 これまでのクロックマスタ装置をクロックスレーブ装置に切り替えること により、 クロックマス夕装置が無い状態を回避することが可能である。 図面の簡単な説明 In this way, by switching the clock slave device to the new clock master device and then switching the clock master device to the clock slave device, it is possible to avoid a state in which there is no clock master device. . BRIEF DESCRIPTION OF THE FIGURES
本発明の特徴及び利点は添付の図面を参照しながら以下の詳細な説明を読むこ とにより一層明瞭となるであろう。 The features and advantages of the present invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings.
図 1は、 本発明のクロック設^ 法の一例の原理説明図である。 FIG. 1 is a diagram illustrating the principle of an example of a clock setting method according to the present invention.
図 2は、 本発明のクロック設 ^法を利用する装置の一実施例の構成図である。 図 3は、 立ち上げ時の処理の一実施例のフローチヤ一トである。 FIG. 2 is a configuration diagram of an embodiment of an apparatus using the clock setting method of the present invention. FIG. 3 is a flowchart of an embodiment of the processing at the time of startup.
図 4は、 本発明の処理を実現する ATMセルの一例のフォーマツト図である。 図 5は、 立ち上げ時のクロックスレーブ側の処理の一実施例のフローチヤ一ト である。 FIG. 4 is a format diagram of an example of an ATM cell for realizing the processing of the present invention. FIG. 5 is a flowchart of an embodiment of processing on the clock slave side at the time of startup.
図 6は、 運用中の処理の一実施例のフローチャートである。 FIG. 6 is a flowchart of an example of a process during operation.
図 7は、 S 2 5 0での処理の一実施例のフローチャートである。 FIG. 7 is a flowchart of an example of the process in S250.
図 8は、 S 2 6 0での処理の一実施例のフローチヤ一トである。 発明を実施するための最良の形態 FIG. 8 is a flowchart of an example of the process in S260. BEST MODE FOR CARRYING OUT THE INVENTION
以下に、 本発明の実施例を図面に基づいて説明する。 なお、 本発明の実施の一 形態として ATM装置に適用する場合について説明するがこれに限るものではな い。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that a case where the present invention is applied to an ATM device will be described as an embodiment of the present invention, but the present invention is not limited to this.
図 1は、 本発明のクロック設定方法の Uの原理説明図を示す。 図 1の構成は、 クロックマスタ側である機能部 A 1 0 0と、 クロックスレーブ側である機能部 B 1 1 0 , 機能部 C 1 2 0 , 機能部 n 1 3 0とで構成される。 その機能部 A 1 0 0 は、 クロックスレーブ側である各機能部 B 1 1 0 , 機能部 C 1 2 0 , 機能部 n 1 3 0に夫々接続されている。 FIG. 1 is a diagram illustrating the principle of U of the clock setting method of the present invention. The configuration shown in FIG. 1 includes a functional unit A 1000 on the clock master side, and functional units B 110, C 120, and n 130 on the clock slave side. The functional unit A100 is connected to each of the functional units B110, C120, and n130 on the clock slave side.
以下、 図 2を利用して本発明の原理を更に詳細に説明する。 図 2は、 本発明の クロック設 法を利用する装置の一実施例の構成図を示す。 なお、 図 2は説明 の便: iLh、 図 1の機能部 A 1 0 0 , 機能部 B 1 1 0 , 及び機能部 C 1 2 0を抜粋 したものである。 Hereinafter, the principle of the present invention will be described in more detail with reference to FIG. FIG. 2 shows a configuration diagram of an embodiment of an apparatus using the clock setting method of the present invention. Note that FIG. 2 is an excerpt of iLh for convenience of explanation, and the functional unit A 100, functional unit B 110, and functional unit C 120 of FIG. 1 are extracted.
クロックマスタ側である機能部 A 1 0 0は、 複数のクロックスレーブ側である 機能部 B 1 1 0及び機能部 C 1 2 0に接続されている。 なお、 図 2においてク 口ックスレーブ側の機能部は二つである力く原理的にその数に制限はない。 クロックマスタ側である機能部 A 1 00は、 ATMセルの送信を行なう送信部 6, 8と、 ATMセルの受信を行なう受信部 7, 9と、 後述するクロック制御及 び設定を行なうための制御部 5と、 出力するクロックを切り替えるクロック切替 部 3, 4と、 クロックを発生する発振器 2と、 クロックを監視するクロック 見 部 1とを含む構成である。 The functional unit A 1000 on the clock master side is connected to the functional units B 110 and C 120 on the plurality of clock slave sides. In FIG. 2, the number of functional units on the mouth slave side is two, and the number is basically unlimited. The functional unit A 100 on the clock master side includes transmitting units 6 and 8 for transmitting ATM cells, receiving units 7 and 9 for receiving ATM cells, and control for performing clock control and setting described later. The configuration includes a unit 5, clock switching units 3 and 4 for switching output clocks, an oscillator 2 for generating a clock, and a clock monitoring unit 1 for monitoring the clock.
クロックスレーブ側である機能部 B 1 1 0及び機能部 C 120は、 ATMセル の送信を行なう送信部 1 5, 21と、 ATMセルの受信を行なう受信部 14, 2 0と、 後述するクロック制御及び設定を行なうための制御部 13, 1 9と、 出力 するクロックを切り替えるクロック切替部 12, 1 8と、 クロックを発生する発 振器 1 1, 1 7と、 クロックを 見するクロック 見部 1 0, 1 6とを含む構成 である。 The functional units B 110 and C 120 on the clock slave side include transmitting units 15 and 21 for transmitting ATM cells, receiving units 14 and 20 for receiving ATM cells, and a clock control unit to be described later. Control units 13 and 19 for setting clocks, clock switching units 12 and 18 for switching output clocks, oscillators 11 and 17 for generating clocks, and clock viewing unit 1 for watching clocks 0, 16 are included.
クロックマスタ側である機能部 A 1 00とクロックスレーブ側である機能部 B 1 1 0とは、 送信部 6, 1 5及び受信部 7, 14を介して ATMセルの送受信を 行なう。 また、 クロックマスタ側である機能部 A 1 00とクロックスレーブ側で ある機能部 C 120とは、 送信部 8, 21及び受信部 9, 20を介して ATMセ ルの送受信を行なう。 なお、 送信部 6, 8は、 同じリファレンスクロックで動作 している。 The functional unit A100 on the clock master side and the functional unit B110 on the clock slave side transmit and receive ATM cells via the transmission units 6, 15 and the reception units 7, 14. The functional unit A 100 on the clock master side and the functional unit C 120 on the clock slave side transmit and receive ATM cells via the transmission units 8 and 21 and the reception units 9 and 20. Note that the transmitters 6 and 8 operate on the same reference clock.
クロック 見部 1, 1 0, 及び 1 6は、 発振器 2, 1 1, 及び 1 7のクロック 周 と受信部 7, 9, 14, 及び 20から抽出されるクロック周 β [とを比較 する。 クロックスレーブ側である機能部 Β 1 1 0及び機能部 C 1 20では、 受信 部 14, 20から抽出されるクロック周 « [と発振器 1 1, 1 7のクロック周波 数とを比較することにより安定度を常に^ iし、 安定度が劣化した場合に制御部 1 3, 1 9にその旨を通知する。 The clock sections 1, 10, and 16 compare the clock cycles of the oscillators 2, 11, and 17 with the clock cycles β extracted from the receivers 7, 9, 14, and 20, respectively. In the functional unit Β 110 and the functional unit C 120 on the clock slave side, the clock frequency extracted from the receiving units 14 and 20 is compared with the clock frequency of the oscillators 11 and 17 for stability. The degree is always set to i, and when the stability is deteriorated, the control units 13 and 19 are notified to that effect.
制御部 1 3, 1 9は、 クロックの安定度が劣化した旨を後述するセルを利用し てクロックマスタ側である機能部 A 1 00の制御部 5に通知する。 仮に、 クロッ クスレーブ側である機能部 B 1 1 0及び機能部 C 120の両方においてクロック の安定度の劣化が検出された場合、 制御部 5は多数決の原理によりクロックマス タ側である機能部 A 1 00の発振器 2に不具合カ発生したとみなすことができる。 クロックマスタ側である機能部 A 1 00の発振器 2に不具合が発生したとみな した場合、 後述する処理に基づいて現在クロックスレーブ側である機能部 B 1 1 0又は機き部 C 1 2 0をクロックマスタ側に切り替え、 その後、 クロックマス夕 側であった機能部 A 1 0 0をクロックスレーブ側に切り替える。 なお、 各機能部 は、 クロックマスタ側となるべき^ t度に従って優位性レベル力予め設定されて いる。 The control units 13 and 19 notify the control unit 5 of the functional unit A 100 on the clock master side, using a cell described later, that the clock stability has deteriorated. If the deterioration of the clock stability is detected in both the functional unit B 110 and the functional unit C 120 on the clock slave side, the control unit 5 determines the functional unit A on the clock master side based on the principle of majority voting. It can be considered that a malfunction has occurred in the oscillator 2 of 100. It is considered that a failure has occurred in the oscillator 2 of the functional unit A 100 on the clock master side. In this case, the function unit B 110 or the machine unit C 120 currently on the clock slave side is switched to the clock master side based on the processing described later, and then the function unit A 10 on the clock mass side Switch 0 to clock slave side. In addition, each functional unit is set in advance in terms of the superiority level power in accordance with the degree of the clock master.
次に、 本発明の装置の立ち上げ時の処理について図 3を参照して説明する。 図 3は、 立ち上げ時の処理の一実施例のフローチヤ一トを示す。 Next, processing at the time of starting up the apparatus of the present invention will be described with reference to FIG. FIG. 3 shows a flowchart of one embodiment of the processing at the time of startup.
図 3において、 ステップ S 1 0では機能部 A 1 0 0の電源投入、 又は ATM伝 送路が接続されることにより初期状態となり、 アイドルセルが伝送路上に流され る。 このとき、 自立クロックにより動作を行なっている。 なお、 機能部 B l 1 0 は既に電源投入がされているものとする。 In FIG. 3, in step S10, the power is turned on to the functional unit A100 or the ATM transmission path is connected, so that the initial state is established, and idle cells are flown on the transmission path. At this time, the operation is performed by the independent clock. It is assumed that the power of the functional unit Bl10 has already been turned on.
ステップ S 1 0に続いてステップ S 2 0に進み、 アイドルセルにより伝送路の セル同期が確立し、 L O S (Loss Of Signal) の消失、 言い換えれば信号の検出 がなされたか否かが判定される。 信号の検出がなされたと判定すると (S 2 0に おいて Y E S) 、 ステップ S 4 0に進む。 また、 信号の検出がなされないと判定 すると (S 2 0において NO) 、 ステップ S 3 0に進み、 自立クロックにより動 作を行なう。 例えば、 図 2の機能部 A 1 0 0の場合、 受信部 7から抽出されるク 口ックでなく発振器 2のクロックにより動作を行なう。 Proceeding to step S20 following step S10, it is determined whether or not cell synchronization of the transmission line is established by the idle cell, and loss of LOS (Loss Of Signal), in other words, signal detection has been performed. If it is determined that a signal has been detected (Y E S in S 20), the process proceeds to step S 40. If it is determined that no signal is detected (NO in S20), the process proceeds to step S30, and the operation is performed by an independent clock. For example, in the case of the functional unit A 100 in FIG. 2, the operation is performed not by the clock extracted from the receiving unit 7 but by the clock of the oscillator 2.
ステップ S 4 0では、 伝送路のリンクが確立した状態で、 機能部 A 1 0 0は自 身のクロック優位性レベルと、 最初のセルであることを示す送信 I Dとを含むセ ルを送出する。 例えば、 ステップ S 4 0において送出するセルの一例を図 4に示 しておく。 In step S40, with the link of the transmission path established, the functional unit A100 sends out a cell including its own clock superiority level and a transmission ID indicating the first cell. . For example, FIG. 4 shows an example of a cell transmitted in step S40.
図 4は、 本発明の処理を実現する ATMセルの一例のフォーマット図を示す。 図 4のフォーマツトは、 5ォクテツトのヘッダ部分と 4 8ォクテツトのペイロー ド部分とで構成されており、 ATMセルの 6オクテット目に送信 I D, 7ォク テツト目にクロック優位性レベル, 8オクテット目にクロックモード, 9ォク テツト目にクロック切替要求, 1 0オクテット目にクロック比較結果を夫々設定 している。 FIG. 4 shows a format diagram of an example of an ATM cell for realizing the processing of the present invention. The format shown in Fig. 4 consists of a 5-octet header section and a 48-octet payload section. The clock mode is set, the clock switching request is set at the 9th octet, and the clock comparison result is set at the 10th octet.
図 4では、 クロック優位性レベルとして 7 ( 2進数で 「1 1 1」 ) が設定され、 送信 I Dが 「1」 に設定されている。 このクロック優位性レベルは、 例えば 3 ビットを利用して、 数字が大きいほどクロックマスタ側に相応しく、 数字が小さ レ、ほどクロックスレーブ側に相応しい等を決めておく。 この説明中、 機能部 A 1 0 0のクロック優位性レベルは 3とする。 In Figure 4, the clock dominance level is set to 7 ("1 1 1" in binary), The transmission ID is set to "1". For this clock superiority level, for example, using 3 bits, a larger number is more suitable for the clock master side, and a smaller number is more suitable for the clock slave side. In this description, the clock superiority level of the functional unit A100 is assumed to be 3.
機能部 B 1 1 0は図 4に示すようなセルを受信すると、 図 5に示すフローチ ヤー卜の処理を行なう。 ステップ S 1 0 0では、 機能部 B 1 1 0は機能部 A 1 0 0からクロック優位性レベルと、 最初のセルであることを示す送信 I Dとを含む セルを受信する。 When receiving the cell as shown in FIG. 4, the functional unit B 110 performs the processing of the flowchart shown in FIG. In step S100, the functional unit B110 receives from the functional unit A100 a cell including the clock dominance level and the transmission ID indicating the first cell.
ステップ S 1 0 0に続いてステップ S 1 1 0に進み、 機能部 B 1 1 0は、 機能 部 B 1 1 0のクロック優位性レベルと、 応答のセルであることを示す送信 I Dと を含むセルを機能部 A 1 0 0に送出する。 なお、 この説明中、 機能部 B 1 1 0の クロック優位性レベルは 7とする。 Proceeding to step S110 following step S100, the functional unit B110 includes the clock superiority level of the functional unit B110 and a transmission ID indicating that the cell is a response cell. The cell is sent to the functional unit A100. In this description, it is assumed that the clock superiority level of the functional unit B110 is 7.
図 3のフローチャートに戻り説明を続けると、 ステップ S 5 0では、 機能部 A 1 0 0カヾ機能部 B 1 1 0から応答のセルを受信したか否かを判定する。 応答のセ ルを受信したと判定すると (S 5 0において Y E S ) 、 ステップ S 7 0に進む。 なお、 応答のセルを所定時間内に受信しないと (S 5 0において NO) 、 機能部 B 1 1 0の電源が入っていないか、 ί 路力接続されていないか等の障害がある ことが考えられるので、 ステップ S 6 0に進み、 自立クロックにより動作を行な ステップ S 7 0では、 機能部 A 1 0 0の制御部 5は、 自身のクロック優位性レ ベルと応答のセルに含まれる機能部 Β 1 1 0のクロック優位性レベルとを比較す る。 機能部 A 1 0 0のクロック優位性レベルと機能部 B 1 1 0のクロック優位性 レベルとが等しいか、 機能部 A 1 0 0のクロック優位性レベルの方が大きい場合 (S 7 0において Y E S) 、 ステップ S 8 0に進み、 制御部 A 1 0 0がクロック マス夕一側となる。 また、 機能部 A 1 0 0のクロック優位性レベルの方が小さい 場合 (S 7 0において NO) 、 ステップ S 9 0に進み、 制御部 A 1 0 0がクロッ クスレーフ となる。 Returning to the flowchart of FIG. 3 and continuing the description, in step S 50, it is determined whether or not a response cell has been received from the function unit A 100 ヾ function unit B 110. If it is determined that a response cell has been received (Y E S in S 50), the process proceeds to step S 70. If the response cell is not received within the predetermined time (NO in S50), there may be an obstacle such as whether the functional unit B110 is not turned on or not connected to the road. Proceeding to step S60, the operation proceeds with the independent clock.In step S70, the control unit 5 of the functional unit A100 is included in the cell of its own clock superiority level and response. Functional unit Β Compare with 110 clock superiority level. When the clock superiority level of the functional unit A100 is equal to the clock superiority level of the functional unit B110, or the clock superiority level of the functional unit A1000 is higher (YES in S700). ), The process proceeds to step S800, and the control unit A1000 is on the clock cell side. If the clock dominance level of the functional unit A100 is smaller (NO in S70), the process proceeds to step S90, and the control unit A100 becomes a clock reef.
例えば、 機能部 A 1 0 0のクロック優位性レベルが 3 , 機能部 B 1 1 0のク ロック優位性レベルが 7である場合、 機能部 A 1 0 0自身のクロック優位性レべ ルが機能部 B 1 1 0のクロック優位性レベルより小さいのでステップ S 9 0に進 み、 制御部 A 1 0 0がクロックスレーブ側になる。 For example, when the clock superiority level of the functional unit A100 is 3 and the clock superiority level of the functional unit B110 is 7, the clock superiority level of the functional unit A100 itself is Since the level is smaller than the clock dominance level of the functional unit B110, the process proceeds to step S900, and the control unit A100 becomes the clock slave side.
なお、 機能部 A 1 0 0のクロック優位性レベルと機能部 B 1 1 0のクロック優 位性レベルとが同じである場合、 本実施例ではステップ S 8 0に進み、 制御部 A 1 0 0がクロックマスタ側になるような構成となっている力 \ これに限らずク ロックスレーブ側になるような構成としても良レ、。 If the clock superiority level of the functional unit A100 is equal to the clock superiority level of the functional unit B110, the process proceeds to step S800 in this embodiment, and the control unit A100 Is configured to be on the clock master side. \ Not limited to this, it can be configured on the clock slave side.
次に、 本発明の装置の運用中の処理にっレ、て図 6を参照して説明する。 図 6は、 運用中の処理の一実施例のフローチヤ一トを示す。 Next, the processing during operation of the apparatus of the present invention will be described with reference to FIG. FIG. 6 shows a flowchart of an embodiment of a process during operation.
図 6において、 ステップ S 2 0 0では各機能部 (例えば、 処理部 A 1 0 0, 処 理部 B 1 1 0等) は、 所定時間毎に自身のクロック優位性レベルを含むセルを送 出する。 ステップ S 2 0 0に続いてステップ S 2 1 0に進み、 各機能部は応答の セルを受信したか否かを判定する。 応答のセルを受信したと判定すると (S 2 1 0において Y E S) 、 ステップ S 2 2 0に進む。 なお、 応答のセルを受信してい ないと判定すると (S 2 1 0において N O) 、 ステップ S 2 8 0に進む。 In FIG. 6, in step S200, each functional unit (for example, processing unit A100, processing unit B110, etc.) sends out a cell including its own clock superiority level at predetermined time intervals. I do. After step S200, the process proceeds to step S210, where each functional unit determines whether a response cell has been received. If it is determined that a response cell has been received (Y E S in S 210), the flow advances to step S 220. If it is determined that the response cell has not been received (NO in S210), the process proceeds to step S280.
ステップ S 2 2 0では、 自身のクロック優位性レベルと応答のセルに含まれる クロック優位性レベルとを比較した結果が前回の比較した結果と同じであるか否 カヽを判定する。 比較した結果が前回の比較した結果と同じであると判定すると、 マスタクロックが安定していると判断できるのでステップ S 2 8 0に進む。 なお、 比較した結果が前回の比較した結果と同じでないと判定すると、 ステップ S 2 3 0に進み、 ク πックマスタ側の機能部を変更する、 言い換えればクロック乇一ド の切替処理を行なうか否かを判定する。 In step S220, it is determined whether the result of comparing the own clock superiority level with the clock superiority level included in the response cell is the same as the result of the previous comparison. If it is determined that the result of the comparison is the same as the result of the previous comparison, it can be determined that the master clock is stable, so the flow proceeds to step S280. If it is determined that the result of the comparison is not the same as the result of the previous comparison, the process proceeds to step S230 to change the functional unit on the clock master side, in other words, whether or not to perform the clock pad switching process. Is determined.
例えば図 2の場合、 機能部 B 1 1 0のクロック慰見部 1 0及び機能部 C 1 2 0 のクロック慰見部 1 6は、 発振器 1 1 , 1 7のクロックとクロックマスタ側の機 能部 A 1 0 0から供給されるクロックとを比較している。 このとき、 比較の結果 に異常を検出すると、 制御部 1 3又は 1 9は所定時間毎に送出しているセルに含 まれるクロック比較結果の通知部分 (例えば、 図 4のフォーマツトの 1 0ォク テツト目) を利用してマスタクロック側の機能部 A 1 0 0に異常を通知する。 機能部 A 1 0 0の制御部 5は、 機能部 B 1 1 0と機能部 C 1 2 0との両方から クロック比較結果の通知部分を利用して異常を通知されると、 多数決の原理によ り発振器 2が劣化したと判断して自身のクロック優位性レベルを所定レベル低下 させる。 なお、 クロックスレーブ側の機能部の数は二つに限るものでなく、 数が 多ければ信頼性力让昇していく。 For example, in the case of Fig. 2, the clock comfort part 10 of the function part B110 and the clock comfort part 16 of the function part C120 are composed of the clocks of the oscillators 11 and 17 and the functions of the clock master. The clock supplied from the section A1000 is compared. At this time, if an abnormality is detected in the comparison result, the control unit 13 or 19 notifies the clock comparison result notification portion (for example, the format 10 in FIG. 4) included in the cell transmitted at predetermined time intervals. The abnormality is notified to the functional unit A1000 on the master clock side by using (cect.). When the control unit 5 of the functional unit A 100 is notified of an abnormality from both the functional unit B 110 and the functional unit C 120 using the notification part of the clock comparison result, the control unit 5 follows the principle of majority voting. Yo It determines that the oscillator 2 has deteriorated, and lowers its own clock superiority level by a predetermined level. The number of functional units on the clock slave side is not limited to two, and the greater the number, the higher the reliability.
そして、 クロックマス夕一側の機能部 A 1 0 0のクロック優位性レベルがク ロックスレーブ側の機能部 B 1 1 0, 機能部 C 1 2 0のクロック優位性レベルよ り小さくなると、 クロックモードの切替処理を行なう。 なお、 多数決の原理によ り発振器 2が劣化したと判断した場合に、 クロック優位性レベルによらずク口ッ クモードの切替処理を行なうようにすることも可能である。 また、 クロックス レ一ブ側力複数ある場合は、 クロックスレ一ブ側のクロック優位性レベルを比較 してクロックマスタ側に切り替える一のクロックスレーブ側を決定する。 When the clock superiority level of the functional unit A 100 on the clock mass side becomes lower than the clock superiority level of the functional units B 110 and C 120 on the clock slave side, the clock mode is set. Is performed. When it is determined that the oscillator 2 has deteriorated based on the principle of majority decision, it is also possible to perform the switching process of the quick mode regardless of the clock superiority level. If there is more than one clock slave side, the clock superiority level of the clock slave side is compared to determine one clock slave side to switch to the clock master side.
ステップ S 2 3 0では、 制御部 5はクロックモードの切替処理を行なうか否か を判断し、 クロックモードの切替処理を行なうと判定すると ( S 2 3 0におレ、て Y E S) 、 ステップ S 2 4 0に進む。 なお、 クロックモードの切替処理を行なわ ないと判定すると (S 2 3 0において NO) 、 ステップ S 2 8 0に進む。 In step S230, the control unit 5 determines whether or not to perform the clock mode switching process, and determines that the clock mode switching process is to be performed (YES in step S230). Proceed to 240. If it is determined that the switching process of the clock mode is not performed (NO in S230), the process proceeds to step S280.
ステップ S 2 4 0では、 現在クロックマスタ側であるか否かが判定される。 現 在クロックマスタ側であると判定されると (S 2 4 0において Y E S ) 、 ステツ プ S 2 6 0に進み、 後述するクロックマスタ切替処理を行なう。 また、 現在ク ロックマスタ側でないと判定されると (S 2 4 0において N O) 、 ステップ S 2 5 0に進み、 後述するクロックスレーブ切替処理を行なう。 ステップ S 2 5 0に 続レ、てステップ S 2 7 0に進み、 クロックマスタ側をクロックスレーブ側に切り 替えるための要求を行なう。 In step S240, it is determined whether or not the current time is the clock master side. If it is determined that the current clock is on the clock master side (Y E S in S 240), the process proceeds to step S 260, where clock master switching processing described later is performed. If it is determined that the current time is not the clock master side (NO in S240), the process proceeds to step S250, and a clock slave switching process described later is performed. Following step S250, the process proceeds to step S270, and a request for switching the clock master to the clock slave is made.
なお、 ステップ S 2 6 0のクロックマス夕切替処理は、 ステップ S 2 5 0のク ロックスレーブ切替処理が終了し、 ステップ S 2 7 0におレ、てクロックスレーブ 側に切り替えるための要求がなされるまで行われない。 これは、 クロックマスタ 側が無くなるのを回避するためであり、 クロックスレーブ側がクロックマスタ^ に切り替えられた後で、 それまでのクロックマスタ側をクロックスレーブ側に切 り替える。 In the clock mass switching process of step S260, a request for switching to the clock slave side is made in step S270 after the clock slave switching process of step S250 is completed. Not done until This is to prevent the clock master side from being lost. After the clock slave side is switched to the clock master, the previous clock master side is switched to the clock slave side.
そして、 ステップ S 2 6 0, S 2 7 0に続いてステップ S 2 8 0に進み、 所定 時間待機した後、 ステップ S 2 0 0に進み処理を続ける。 次に、 図 6の S 2 5 0の処理について更に詳細に説明する。 図 7は、 S 2 5 0 での処理の一実施例のフローチャートを示す。 Then, the process proceeds to step S280 following steps S260 and S270, waits for a predetermined time, and proceeds to step S200 to continue the process. Next, the processing of S250 in FIG. 6 will be described in more detail. FIG. 7 shows a flowchart of an embodiment of the processing in S250.
ステップ S 2 5 1では、 現在のクロックマス夕側からクロックマスタ側に切り 替えるクロックスレーブ側に、 所定時間毎に送出してレ、るセルに含まれるクロッ ク切替要求の通知部分 (例えば、 図 4のフォーマットの 9オクテット目) を利用 したクロックモ一ドの切替要求がなされる。 In step S251, a notification portion of a clock switching request included in a cell that is transmitted and re-transmitted at predetermined time intervals to a clock slave that switches from the current clock master to the clock master (for example, FIG. A request to switch the clock mode is made using the 9th octet in the format of 4).
ステップ S 2 5 1に続いてステップ S 2 5 2に進み、 その切替要求を受信した か否かを判定する。 その切替要求を受信したと判定すると (S 2 5 2において Y E S ) 、 ステップ S 2 5 4に進む。 なお、 その切替要求を受信していないと判定 すると (S 2 5 2において NO) 、 ステップ S 2 5 3に進み、 受信するまで待機 する。 After step S251, the process proceeds to step S252, and it is determined whether or not the switching request has been received. If it is determined that the switching request has been received (Y E S in S 252), the process proceeds to step S 254. If it is determined that the switching request has not been received (NO in S252), the process proceeds to step S253 and waits until it is received.
ステップ S 2 5 4では、 クロックモードの切替要求を受信すると、 例えば機能 部 B 1 1 0の場合、 クロック切替部 1 2を制御して、 送信部 1 5に供給するク ロックを受信部 1 4で抽出されるクロックから発振器 1 1のクロックに切り替え る。 ステップ S 2 5 4に続いてステップ S 2 5 5に進み、 制御部 1 3はクロック マスタ側への切り替え力終了すると、 クロックスレーブ側に切り替えるクロック マスタ側 (例えば、 機能部 A 1 0 0 ) に切替終了を表す応答のセルを送出する。 次に、 図 6の S 2 6 0の処理について更に詳細に説明する。 図 8は、 S 2 6 0 での処理の一実施例のフローチャートを示す。 In step S254, when the clock mode switching request is received, for example, in the case of the functional unit B110, the clock switching unit 12 is controlled so that the clock supplied to the transmitting unit 15 is received by the receiving unit 144. Is switched to the clock of the oscillator 11 from the clock extracted in. After step S255, the process proceeds to step S255, and when the switching power to the clock master is finished, the control unit 13 sends the signal to the clock master (for example, the functional unit A100) that switches to the clock slave. A response cell indicating the end of switching is transmitted. Next, the processing of S260 in FIG. 6 will be described in more detail. FIG. 8 shows a flowchart of an embodiment of the processing in S260.
ステップ S 2 6 1では、 クロックマスタ側に切り替えるクロックスレーブ側に、 所定時間毎に送出しているセルに含まれるクロック切替要求の通知部分を利用し たクロックモードの切替要求がなされる。 In step S2661, the clock slave switching to the clock master is requested to switch the clock mode using the clock switching request notification portion included in the cell transmitted at predetermined time intervals.
ステップ S 2 6 1に続いてステップ S 2 6 2に進み、 制御部 5は応答のセルを 受信したか否かを判定し、 受信するまで S 2 6 1〜S 2 6 2の処理を繰り返す ( S 2 6 2において N O) 。 応答のセルを受信すると (S 2 6 2において Y E S ) 、 ステップ S 2 6 3に進み、 例えば機能部 A 1 0 0の場合、 クロック切替部 3 , 4を制御して、 送信部 6に供給するクロックを発振器 2のクロックから受信 部 7で抽出されるクロックに切り替える。 Proceeding to step S262 following step S266, the control unit 5 determines whether a response cell has been received, and repeats the processing of S266 to S266 until reception of the response cell ( NO in S262). When the cell of the response is received (YES in S262), the process proceeds to step S263, and, for example, in the case of the functional unit A100, the clock switching units 3 and 4 are controlled and supplied to the transmitting unit 6. The clock is switched from the clock of the oscillator 2 to the clock extracted by the receiver 7.
ところで、 クロックマスタ側のクロック優位性レベルが下がって、 クロックス レ一ブ側のクロック優位性レベルと同一となったときは、 クロックモードの切替 処理を行なう方が良いと思われる。 レベルカ下がって同一になった場合、 そのマ ス夕クロックは故障する可能 f生が高く、 故障する前にクロックモードを切り替え ることにより信頼性を向上させることができるからである。 By the way, the clock dominance level on the clock master side drops, When the clock dominance level on the slave side becomes the same, it seems better to switch the clock mode. This is because if the level becomes lower and the clock becomes the same, the mask clock has a high possibility of failure, and the reliability can be improved by switching the clock mode before the failure.
また、 本発明の処理に利用する図 4に示すセルは、 信頼性を増すために、 ペイ ロードに C R C (Cyclic Redundancy Check ) 1 0の保護をおき、 C R Cチエツ クで正常なセルのみを利用することにより信頼性を向上させることができる。 以上のように、 クロックマスタ側とク口ックスレーブ側とを自動的に設定する ことができ、 クロックマスタ側の生成するマスタクロックが劣化するとクロック マスタ側とクロックスレーブ側とを自動的に切り替えることが可能である。 したがって、 デバック時などに発生が予想されるクロックマスタ側又はクロッ クスレーブ側の設定間違レ、等を回避することが可能であり、 広域及び A TMネッ トワーク等においても、 クロック安定度劣化による品質劣化や運用停止を回避し て運用を続けることができる。 In addition, in order to increase reliability, the cells shown in FIG. 4 used in the processing of the present invention are provided with protection of CRC (Cyclic Redundancy Check) 10 in the payload, and only normal cells are used in the CRC check. Thereby, the reliability can be improved. As described above, the clock master side and the master slave side can be automatically set, and when the master clock generated by the clock master deteriorates, the clock master side and the clock slave side can be automatically switched. It is possible. Therefore, it is possible to avoid incorrect settings on the clock master side or clock slave side, which are expected to occur at the time of debugging, etc. Even in a wide area or ATM network, quality due to clock stability deterioration can be reduced. Operation can be continued while avoiding deterioration and operation suspension.
本発明は上記の実施例に限定されるものではなく、 本発明の範囲內で種々の変 形や変更が可能である。 The present invention is not limited to the above embodiments, and various modifications and changes can be made within the scope of the present invention.
請求の範囲 The scope of the claims
1 . 自己の装置に設定される第 1クロック優位性レベル及び他の装置に設定さ れる第 2クロック優位性レベルを比較する段階と、 1. Comparing a first clock dominance level set for its own device with a second clock dominance level set for another device;
ll己比較の結果に基づいて、 前記自己の装置又は他の装置のどちらがクロック マスタ装置に相応しいか判定する段階と、 determining, based on the result of the self-comparison, whether said own device or another device is suitable for a clock master device;
前記判定の結果に従って、 ΙίίΙ己自己の装置をクロックマス夕装置又はクロック スレーブ装置に設定する段階とを備えたクロック設定方法。 Setting a self-device as a clock master device or a clock slave device according to the result of the determination.
2. ΙίΠ己比較する段階は、 lf己第 1クロック優位性レベルをセルを利用して前 記他の装置に送信する段階と、 2. The self-comparison step includes: transmitting the first clock superiority level to the other device using a cell;
前記他の装置が ίίΙ己第 2クロック優位性レベルをセルを利用して前記自己の装 置に送信する段階とを備えた請求項 1記載のクロック設^^法。 2. The clock setting method according to claim 1, further comprising the step of: transmitting the second clock dominance level to the own device by using a cell.
3. クロックマスタ装置に設定される第 1クロック優位性レベル及びクロック スレーブ装置に設定されて 、る第 2クロック優位性レベルを所定期間毎に比較す る段階と、 3. comparing the first clock dominance level set in the clock master device and the second clock dominance level set in the clock slave device every predetermined period;
爾己比較の結果、 前記第 2クロック優位性レベル力第 1クロック優位性レベル よりクロックマスタ装置に相応しいと判定されると、 前記クロックマス夕装置と クロックスレーブ装置とを切り替える段階とを備えたクロック設定方法。 If it is determined that the second clock superiority level is more suitable for the clock master device than the first clock superiority level as a result of the self-comparison, the clock comprising the step of switching between the clock master device and the clock slave device Setting method.
4. 前記クロックマスタ装置から供給される第 1クロックと it己クロックス レーブ装置で生成される第 2クロックとを比較する段階と、4. comparing a first clock supplied from the clock master device with a second clock generated by the clock slave device itself;
ji己比較の結果、 m 1クロックと第 2クロックとの関係に異常を検出する と歸己ク口ックマスタ装置に異常を通知する段階と、 ji As a result of the self-comparison, when an abnormality is detected in the relationship between the m1 clock and the second clock, the abnormality is notified to the master device, and
前記異常が複数のクロックスレーブ装置から通知されると、 li己クロックマス 夕装置の第 1クロック優位性レベルを低下させる段階とを更に備えた請求項 3記 載のクロック設^法。 4. The clock setting method according to claim 3, further comprising, when the abnormality is notified from a plurality of clock slave devices, lowering a first clock superiority level of the own clock master device.
5. 前記比較する段階は、 前記第 1クロック優位性レベルをセルを利用して前 記クロックスレーブ装置に送信する段階と、 5. In the comparing, the first clock dominance level is previously determined using a cell. Transmitting to the clock slave device;
前記クロックスレーブ装置が前記第 2クロック優位性レベルをセルを利用して 前記ク口ックマスタ装置に送信する段階とを備えた請求項 3記載のクロック設定 方法。 4. The clock setting method according to claim 3, further comprising: transmitting the second clock superiority level to the master device using a cell by the clock slave device.
6 . 前記クロックマスタ装置とクロックスレーブ装置とを切り替える段階は、 前記クロックスレーブ装置を新たなクロックマスタ装置に切り替える段階と、 前記クロックスレーブ装置を新たなクロックマスタ装置に切り替えた後に ri己 これまでのクロックマスタ装置をクロックスレーブ装置に切り替える段階とを備 えた請求項 3記載のクロック設 法。 6. Switching between the clock master device and the clock slave device includes switching the clock slave device to a new clock master device, and switching the clock slave device to a new clock master device. The clock method according to claim 3, further comprising a step of switching the clock master device to a clock slave device.
7. 前記異常を通知する段階は、 前記異常をセルを利用して ItJf己クロックマス 夕装置に送信する請求項 5記載のクロック設 法。 7. The clock method according to claim 5, wherein, in the step of notifying the abnormality, the abnormality is transmitted to an ItJf self-clocking device using a cell.
8. 自己の装置に設定される第 1クロック優位性レベル及び他の装置に設定さ れる第 2クロック優位性レベルを比較する優位性レベル比較手段と、 8. superiority level comparing means for comparing the first clock superiority level set for the own device and the second clock superiority level set for other devices;
前記比較の結果に基づレ、て、 ri己自己の装置又は他の装置のどちらがクロック マスタ装置に相応しいか判定する判定手段と、 Judging means based on the result of the comparison to judge whether the own device or another device is suitable for the clock master device;
前記判定の結果に従って、 前記自己の装置をクロックマスタ装置又はクロック スレーブ装置に設定する設定手段とを備えた通信装置。 A communication device comprising: setting means for setting the own device as a clock master device or a clock slave device according to a result of the determination.
9. 前記優位性レベル比較手段は、 it己第 1クロック優位性レベルをセルを利 用して前記他の装置に送信する送信手段と、 9. The superiority level comparing means includes: transmitting means for transmitting the first clock superiority level to the other device using a cell;
前記他の装置がセルを利用して送信する前記第 2クロック優位性レベルを検出 する検出手段とを備えた請求項 8記載の通信装置。 9. The communication device according to claim 8, further comprising: detection means for detecting the second clock superiority level transmitted by the other device using a cell.
1 0. クロックマスタ装置に設定される第 1クロック優位性レベル及びクロッ クスレーブ装置に設定されている第 2クロック優位性レベルを所定期間毎に比較 する優位性レベル比較手段と、 前記比較の結果、 前記第 2クロック優位性レベルが第 1クロック優位性レベル よりクロックマスタ装置に相応しいと判定されると、 前記クロックマス夕装置と クロックスレーブ装置とを切り替える切替手段とを備えた通信装置。 10. A superiority level comparing means for comparing the first clock superiority level set in the clock master device and the second clock superiority level set in the clock slave device at predetermined intervals, As a result of the comparison, when it is determined that the second clock dominance level is more suitable for the clock master device than the first clock dominance level, a communication device comprising switching means for switching between the clock master device and the clock slave device. apparatus.
1 1 . 前記クロックマスタ装置から供給した第 1クロックと Ιίίϊ己クロックス レ一ブ装置で生成される第 2クロックとの比較結果を供給される受信手段と、 前記比較結果が ΙίΙ己第 1ク πックと第 2クロックとの関係に異常を検出したこ とを示すとき、 前記クロックマスタ装置の第 1クロック優位性レベルを低下させ る優位性レベル変更手段とを更に備えた請求項 1 0記載の通信装置。 11. A receiving means for receiving a comparison result between the first clock supplied from the clock master device and a second clock generated by the self-clock slave device, and a self-clock π for comparing the comparison result with the self-clock slave device. 10. The clock master device according to claim 10, further comprising: a superiority level changing unit configured to decrease the superiority level of the first clock of the clock master device when an abnormality is detected in a relationship between the clock and the second clock. Communication device.
1 2. 前記切替手段は、 前記クロックスレーブ装置を新たなクロックマス夕装 置に切り替える第 1切替手段と、 1 2. the switching means, the first switching means for switching the clock slave device to a new clock mass device,
ΙίΠ己クロックスレーブ装置を新たなクロックマスタ装置に切り替えた後に前記 これまでのクロックマスタ装置をクロックスレーブ装置に切り替える第 2切替手 段とを備えた請求項 1 0記載の通信装置。 10. The communication device according to claim 10, further comprising: a second switching means for switching the clock master device to a clock slave device after switching the clock slave device to a new clock master device.
1 3. if己受信手段は、 ΐίΙ己比較結果をセルを利用して供給される請求項 1 1 1 3. The claim self-receiving means is provided by using the self-comparison result using a cell.
1 4. クロックマスタ装置に設定される第 1クロック優位性レベル及び複数の クロックスレーブ装置にそれぞれ設定されている第 2クロック優位性レベルを所 定時間毎に比較する優位性レベル比較手段と、 1 4. superiority level comparing means for comparing the first clock superiority level set in the clock master device and the second clock superiority levels respectively set in the plurality of clock slave devices at predetermined time intervals;
前記比較の結果、 前記第 2クロック優位性レベルが第 1クロック優位性レベル よりクロックマス夕装置に栢応しいと判定されると、 前記ク口ックマスタ装置と 一のクロックスレーブ装置とを切り替える切替手段とを備えた通信システム。 As a result of the comparison, if it is determined that the second clock dominance level is more suitable for the clock master device than the first clock dominance level, the switching means for switching between the master clock device and one clock slave device A communication system comprising:
1 5. 前記クロックマスタ装置から供給される第 1クロックと前記クロックス レーブ装置で生成される第 2クロックとを比較する比較手段と、 1 5. comparing means for comparing a first clock supplied from the clock master device with a second clock generated by the clock slave device;
前記比較の結果、 1クロックと第 2クロックとの関係に異常を検出する と前記クロックマス夕装置に異常を通知する通知手段と、 As a result of the comparison, an abnormality is detected in the relationship between the first clock and the second clock. Notification means for notifying the clock mass setting device of an abnormality,
前記異常が複数のクロックスレーブ装置から通知されると、 前記クロックマス 夕装置の第 1クロック優位性レベルを低下させる優位性レベル変更手段とを更に 備えた請求項 1 4記載の通信システム。 15. The communication system according to claim 14, further comprising: a superiority level changing unit that reduces a first superiority level of the clock master device when the abnormality is notified from a plurality of clock slave devices. 16.
1 6. 前記切替手段は、 if己クロックスレーブ装置を新たなクロックマス夕装 置に切り替える第 1切替手段と、 1 6. The switching means, if the first switching means for switching the own clock slave device to a new clock mass device,
fill己クロックスレーブ装置を新たなクロックマス夕装置に切り替えた後に前記 これまでのクロックマスタ装置をクロックスレーブ装置に切り替える第 2切替手 段とを備えた請求項 1 4記載の通信システム。 15. The communication system according to claim 14, further comprising a second switching unit that switches the clock master device to the clock slave device after switching the clock slave device to the new clock master device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP1999/004491 WO2001015389A1 (en) | 1999-08-20 | 1999-08-20 | Clock setting method, communication device using the method, and communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP1999/004491 WO2001015389A1 (en) | 1999-08-20 | 1999-08-20 | Clock setting method, communication device using the method, and communication system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2001015389A1 true WO2001015389A1 (en) | 2001-03-01 |
Family
ID=14236509
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/JP1999/004491 Ceased WO2001015389A1 (en) | 1999-08-20 | 1999-08-20 | Clock setting method, communication device using the method, and communication system |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2001015389A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009089166A (en) * | 2007-10-01 | 2009-04-23 | Fujitsu Microelectronics Ltd | Communications system |
| JP2013081214A (en) * | 2007-03-20 | 2013-05-02 | Marvell World Trade Ltd | Synchronous network device |
| JP2019050498A (en) * | 2017-09-11 | 2019-03-28 | 株式会社明電舎 | Network device |
| WO2019132430A1 (en) * | 2017-12-28 | 2019-07-04 | 효성중공업 주식회사 | Method for configuring master/slave in double board, and board thereof |
| JP7357831B1 (en) * | 2023-04-04 | 2023-10-06 | 三菱電機株式会社 | Time synchronization device, time synchronization system, time synchronization method and program |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01231450A (en) * | 1988-03-10 | 1989-09-14 | Fujitsu Ltd | Synchronizing clock supply system for communication system |
| JPH03188723A (en) * | 1989-12-18 | 1991-08-16 | Nec Corp | Network synchronizing clock selection system |
| JPH05227185A (en) * | 1992-02-10 | 1993-09-03 | Fuji Xerox Co Ltd | Master station backup system |
| JPH08107415A (en) * | 1994-10-04 | 1996-04-23 | Fujitsu Ltd | Synchronous LAN system and method for automatically changing master clock node in synchronous LAN |
| JPH08213996A (en) * | 1995-01-31 | 1996-08-20 | Canon Inc | Asynchronous transfer mode hub synchronization establishment method and asynchronous transfer mode intra-area network switching system |
-
1999
- 1999-08-20 WO PCT/JP1999/004491 patent/WO2001015389A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01231450A (en) * | 1988-03-10 | 1989-09-14 | Fujitsu Ltd | Synchronizing clock supply system for communication system |
| JPH03188723A (en) * | 1989-12-18 | 1991-08-16 | Nec Corp | Network synchronizing clock selection system |
| JPH05227185A (en) * | 1992-02-10 | 1993-09-03 | Fuji Xerox Co Ltd | Master station backup system |
| JPH08107415A (en) * | 1994-10-04 | 1996-04-23 | Fujitsu Ltd | Synchronous LAN system and method for automatically changing master clock node in synchronous LAN |
| JPH08213996A (en) * | 1995-01-31 | 1996-08-20 | Canon Inc | Asynchronous transfer mode hub synchronization establishment method and asynchronous transfer mode intra-area network switching system |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013081214A (en) * | 2007-03-20 | 2013-05-02 | Marvell World Trade Ltd | Synchronous network device |
| US9054823B2 (en) | 2007-03-20 | 2015-06-09 | Marvell World Trade Ltd. | Synchronous network device |
| JP2009089166A (en) * | 2007-10-01 | 2009-04-23 | Fujitsu Microelectronics Ltd | Communications system |
| JP2019050498A (en) * | 2017-09-11 | 2019-03-28 | 株式会社明電舎 | Network device |
| JP7003510B2 (en) | 2017-09-11 | 2022-01-20 | 株式会社明電舎 | Network equipment |
| WO2019132430A1 (en) * | 2017-12-28 | 2019-07-04 | 효성중공업 주식회사 | Method for configuring master/slave in double board, and board thereof |
| KR20190080625A (en) * | 2017-12-28 | 2019-07-08 | 효성중공업 주식회사 | Duplicated board setting method and the board thereof |
| KR102104967B1 (en) * | 2017-12-28 | 2020-05-29 | 효성중공업 주식회사 | Duplicated board setting method and the board thereof |
| JP7357831B1 (en) * | 2023-04-04 | 2023-10-06 | 三菱電機株式会社 | Time synchronization device, time synchronization system, time synchronization method and program |
| WO2024209557A1 (en) * | 2023-04-04 | 2024-10-10 | 三菱電機株式会社 | Time synchronization device, time synchronization system, time synchronization method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1391079B1 (en) | Method and system for implementing a fast recovery process in a local area network | |
| EP1832044B1 (en) | Wireless communication path management methods and systems | |
| US11329866B2 (en) | Battery management system and communication method thereof | |
| CN111654435B (en) | Link protection fault processing system and method based on LACP | |
| US7436774B2 (en) | Communication network connection rerouting methods and systems | |
| KR19990005390A (en) | Redundancy Device and Method of ATM Switch Board | |
| CN101938365B (en) | Fault handling method and device for Ethernet | |
| WO2001015389A1 (en) | Clock setting method, communication device using the method, and communication system | |
| CN102271049B (en) | Method, device and system for setting state of communication equipment | |
| CN114080017B (en) | Method, device and system for handling time synchronization failure | |
| CN120474898A (en) | Method and device for Ethernet communication with redundant hot switching capability | |
| CN101217405B (en) | SGSN backup method, communication system, and communication equipment | |
| JP2677693B2 (en) | How to monitor computer networks | |
| CN113438105B (en) | Method, device and equipment for assisting multi-IRF (inter-range radio frequency) splitting detection by MAD (multi-object detection) | |
| CN112825501B (en) | Signal degradation processing method, device and system | |
| JP2655506B2 (en) | Transmission line switching system | |
| CN115396382B (en) | Operation method of network device and control chip of network device | |
| JPWO2001015389A1 (en) | Clock setting method and communication device and communication system using the method | |
| KR100209347B1 (en) | Asynchronous Transfer Mode Method of Node-to-Node Connection Assembly Redundancy Control in Information Communication Network Switching System | |
| CN113364659B (en) | A Data Acquisition System Based on Modbus Protocol | |
| KR100438547B1 (en) | Physical link dualization system and method in sonet frame header | |
| US20040199819A1 (en) | Method for fast and local error correction in the event of the failure of individual physical corrections in bundled communication connections and communication system device for carrying out the method | |
| JP2000078159A (en) | Vp changeover device, connection monitor method used for it and recording medium recording its control program | |
| JP2822995B2 (en) | Alarm cell generation system | |
| CN117713911A (en) | A hierarchical election TDMA satellite communication system master station hot backup method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AK | Designated states |
Kind code of ref document: A1 Designated state(s): JP US |
|
| DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
| NENP | Non-entry into the national phase |
Ref country code: JP |