TW202025653A - Relay device, relay method and relay program - Google Patents

Relay device, relay method and relay program Download PDF

Info

Publication number
TW202025653A
TW202025653A TW108119304A TW108119304A TW202025653A TW 202025653 A TW202025653 A TW 202025653A TW 108119304 A TW108119304 A TW 108119304A TW 108119304 A TW108119304 A TW 108119304A TW 202025653 A TW202025653 A TW 202025653A
Authority
TW
Taiwan
Prior art keywords
time slot
range
slot range
unit
communication cycle
Prior art date
Application number
TW108119304A
Other languages
Chinese (zh)
Inventor
堀敏典
Original Assignee
日商三菱電機股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日商三菱電機股份有限公司 filed Critical 日商三菱電機股份有限公司
Publication of TW202025653A publication Critical patent/TW202025653A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A comparison unit (303) compares a setting time slot range which is the range of a time slot, among a plurality of time slots constituting a communication period, that is set for execution of data relay, with an execution time slot range which is the range of a time slot among the plurality of time slots in which data relay has actually been executed. A determination unit (304) determines, in accordance with the result of the comparison by the comparison unit (303), whether to correct the setting time slot range in a subsequent communication period. If it is determined by the determination unit (304) that the setting time slot range in the subsequent communication period is to be corrected, a correction unit (305) corrects the setting time slot range in the subsequent communication period on the basis of the execution time slot range.

Description

中繼裝置、中繼方法及中繼程式產品Relay device, relay method and relay program product

本發明係有關於資料通訊。The present invention relates to data communication.

資料通訊中會要求低延遲及低抖動(維持訊框的抵達時序的定時性)。特別是透過中繼局以網路連接控制機器及複數的被控制機器的系統中,因為混雜了各種優先度的訊務(traffic),要實現低延遲及低抖動的資料通訊就成了一個課題。作為實現低延遲及低抖動的資料通訊的方法,有一種記載於IEEE802.1Qbv的方法(非專利文獻1)。IEEE802.1Qbv中,對於發送乙太網路(登錄商標)訊框的網路裝置的複數的發送隊列的各個出口設置閘(gate)。然後,分配每個時槽發送訊框的閘的開啟、將訊框留在發送隊列內的閘的關閉,將此做週期性地反覆。藉由這個步驟,網路裝置能夠以低抖動來發送訊框。又,網路裝置及連接網路裝置的終端之間時刻同步的話,因為終端會配合閘開啟的時序來發送訊框,因此能夠以低延遲進行資料通訊。因此,IEEE802.1Qbv被期待能夠適用於被要求FA(Factory Automation)等的即時性的網路。Data communication requires low latency and low jitter (to maintain the timing of the arrival timing of the frame). Especially in a system where a control machine and a plurality of controlled machines are connected via a network through a relay station, because traffic of various priorities is mixed, it becomes a problem to realize data communication with low latency and low jitter. . As a method for realizing data communication with low latency and low jitter, there is a method described in IEEE802.1Qbv (Non-Patent Document 1). In IEEE802.1Qbv, a gate is set for each exit of a plurality of transmission queues of a network device that transmits Ethernet (registered trademark) frames. Then, the opening of the gate for sending the frame in each time slot and the closing of the gate for leaving the frame in the sending queue are allocated, and this is repeated periodically. With this step, the network device can send frames with low jitter. In addition, if the network device and the terminal connected to the network device are synchronized at all times, the terminal will send the frame according to the timing of the gate opening, so data communication can be carried out with low latency. Therefore, IEEE802.1Qbv is expected to be applicable to networks requiring real-time FA (Factory Automation) and the like.

各機器的動作時脈中有偏移的情況下,機器之間的閘的開啟及關閉的時序逐漸偏移,即使是,IEEE802.1Qbv的方法,也很難實現低延遲及低抖動的資料通訊。像這樣各機器的動作時脈有偏移的情況下,能夠以定期的時刻同步來修正動作時脈加以處理。又,如專利文獻1,在時槽的通訊中以端到端的機器量測延遲時間,根據量測的時間決定時槽的分配,藉此能夠修正閘的開啟及關閉時序。 [先行技術文獻]When there is a deviation in the operating clock of each machine, the timing of opening and closing the gate between the machines gradually shifts. Even with the IEEE802.1Qbv method, it is difficult to achieve data communication with low latency and low jitter. . When the operating clocks of each device are shifted in this way, the operating clocks can be corrected and processed with regular time synchronization. In addition, as in Patent Document 1, in the time slot communication, the delay time is measured by an end-to-end machine, and the allocation of the time slot is determined according to the measured time, so that the opening and closing timing of the gate can be corrected. [Advanced Technical Literature]

專利文獻1:日本特開2000-269882號公報Patent Document 1: Japanese Patent Application Publication No. 2000-269882

非專利文獻1:IEEE Standard for Local and metropolitan area networks Bridges and Bridged Networks Amendment 25: Enhancements for Scheduled Traffic IEEE Std 802. 1QbvTM-2015Non-Patent Document 1: IEEE Standard for Local and metropolitan area networks Bridges and Bridged Networks Amendment 25: Enhancements for Scheduled Traffic IEEE Std 802. 1QbvTM-2015

然而,用以控制的通訊中控制週期是μs等級,如果要像專利文獻1計算延遲時間,分配時槽的話,用來修正閘的開啟、閘的關閉的時序用的通訊會頻繁發生,消耗通訊頻寬。However, the control cycle of the communication used for control is in the μs level. If the delay time is calculated and the time slot is allocated like Patent Document 1, the communication used to correct the timing of the opening and closing of the gate will occur frequently, which consumes communication. bandwidth.

本發明的主要目的是,即使發生時刻同步的偏移,不需要消耗通訊頻寬,也能夠修正資料通訊的時序。The main purpose of the present invention is to correct the timing of data communication without consuming communication bandwidth even if there is a time synchronization deviation.

本發明的中繼裝置,包括:比較部,比較設定時槽範圍以及實施時槽範圍,其中該設定時槽範圍是構成通訊週期的複數的時槽當中用以實施資料中繼而被設定的時槽的範圍,該實施時槽範圍是該複數的時槽當中實際實施該資料中繼的時槽的範圍;判定部,因應該比較部所做的比較結果,判定是否要修正之後的通訊週期中的設定時槽範圍;以及修正部,在該判定部判定要修正之後的通訊週期中的設定時槽範圍的情況下,根據該實施時槽範圍來修正之後的通訊週期中的設定時槽範圍。The relay device of the present invention includes: a comparison unit that compares the setting time slot range and the implementation time slot range, wherein the setting time slot range is a time slot set for implementing data relay among the plural time slots constituting the communication cycle The scope of the implementation time slot is the scope of the time slot that actually implements the data relay among the plural time slots; the judging part, based on the comparison result made by the comparison part, decides whether to modify the time slot in the subsequent communication cycle Setting the time slot range; and the correction unit, when the determination unit determines to correct the setting time slot range in the subsequent communication cycle, correct the setting time slot range in the subsequent communication cycle based on the implementation time slot range.

根據本發明,即使發生時刻同步的偏移,不需要消耗通訊頻寬,也能夠修正資料通訊的時序。According to the present invention, even if a time synchronization deviation occurs, the data communication timing can be corrected without consuming the communication bandwidth.

以下,使用圖式說明本發明的實施型態。以下的實施型態的說明及圖式中,標示相同的符號的元件表示相同的部份或相當的部份。 [實施型態1] [構成的說明]Hereinafter, the embodiments of the present invention will be explained using drawings. In the descriptions and drawings of the following implementation types, elements marked with the same symbols represent the same parts or equivalent parts. [Implementation Type 1] [Explanation of composition]

第1圖係顯示本實施型態的通訊系統的構成例。Figure 1 shows a configuration example of the communication system of this embodiment.

本實施型態的通訊系統是以控制機器的1個母局100、被控制機器的子局(1)201、子局(2)202~子局(N)203、連接母局100及子局(1)201、子局(2)202~子局(N)203的中繼局300所構成。以下,沒有必要區別子局(1)201、子局(2)202~子局(N)203的話,就會將子局(1)201、子局(2)202~子局(N)203統稱為子局200。又,中繼局300相當於中繼裝置。又,中繼局300所進行的動作相當於中繼方法及包含在中繼程式產品中的中繼程式。The communication system of this embodiment is based on a parent station 100 that controls the machine, the slave station (1) 201 of the controlled machine, the slave station (2) 202 to the slave station (N) 203, and the parent station 100 and the slave station are connected. (1) 201, sub-office (2) 202 to sub-office (N) 203 are composed of relay offices 300. Hereinafter, if there is no need to distinguish between sub-station (1) 201, sub-station (2) 202 to sub-station (N) 203, sub-station (1) 201, sub-station (2) 202 to sub-station (N) 203 will be Collectively referred to as the slave 200. In addition, the relay station 300 corresponds to a relay device. In addition, the actions performed by the relay station 300 are equivalent to the relay method and the relay program included in the relay program product.

母局100假設為連接到中繼局300的通訊界面[0]。又,子局(1)201假設連接到中繼局300的通訊界面[1]。子局(2)202假設連接到中繼局300的通訊界面[2]。子局(N)203假設連接到中繼局300的通訊界面[N]。又,母局100週期性地發送訊框至子局200。又,子局200週期性地發送訊框至母局100。更具體來說,母局100會以構成通訊週期的複數的時槽中的任一個時槽發送訊框至子局200。又,子局200會以複數的時槽中的任一個時槽發送訊框。通訊週期會反覆地到來。The parent station 100 is assumed to be connected to the communication interface [0] of the relay station 300. Also, the slave station (1) 201 is assumed to be connected to the communication interface of the relay station 300 [1]. The slave station (2) 202 is assumed to be connected to the communication interface of the relay station 300 [2]. The slave station (N) 203 is assumed to be connected to the communication interface [N] of the relay station 300. In addition, the parent station 100 sends a frame to the slave station 200 periodically. In addition, the slave station 200 sends a frame to the parent station 100 periodically. More specifically, the parent station 100 will send a frame to the slave station 200 in any one of the plural time slots constituting the communication cycle. In addition, the slave 200 will send the frame in any one of the plural time slots. The communication cycle will come repeatedly.

第2圖係顯示本實施型態的中繼局300的硬體構成例。Fig. 2 shows an example of the hardware configuration of the relay station 300 of this embodiment.

本實施型態的中繼局300是電腦。中繼局300作為硬體,具備處理器901、記憶裝置902、計數器903及通訊介面[0]904、通訊介面[1]905~通訊介面[N]906。處理器901進行運算處理及判定處理。更具體來,處理器901會執行第3圖所示接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307。接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的細節將在之後敘述。記憶裝置902中儲存著實現接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的功能的程式。處理器901執行這些程式,來進行接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的動作。第2圖中,處理器901概要地顯示了執行實現接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的功能的程式的狀態。又,記憶裝置902對每個時槽儲存訊框的接收數。計數器903為了時槽的管理而量測時間。通訊介面[0]904、通訊介面[1]905~通訊介面[N]906分別與母局100或子局200連接。The relay station 300 in this embodiment is a computer. As the hardware, the relay station 300 has a processor 901, a memory device 902, a counter 903, a communication interface [0] 904, and a communication interface [1] 905 to a communication interface [N] 906. The processor 901 performs arithmetic processing and determination processing. More specifically, the processor 901 executes the reception unit 301, the comparison unit 303, the determination unit 304, the correction unit 305, the transmission time management unit 306, and the transmission unit 307 shown in FIG. 3. The details of the reception unit 301, the comparison unit 303, the determination unit 304, the correction unit 305, the transmission time management unit 306, and the transmission unit 307 will be described later. The storage device 902 stores programs that realize the functions of the receiving unit 301, the comparing unit 303, the determining unit 304, the correcting unit 305, the sending time management unit 306, and the sending unit 307. The processor 901 executes these programs to perform the operations of the reception unit 301, the comparison unit 303, the determination unit 304, the correction unit 305, the transmission time management unit 306, and the transmission unit 307. In FIG. 2, the processor 901 schematically shows the state of executing the program that realizes the functions of the receiving unit 301, the comparing unit 303, the determining unit 304, the correcting unit 305, the transmitting time management unit 306, and the transmitting unit 307. In addition, the memory device 902 stores the received number of frames for each time slot. The counter 903 measures time for time slot management. Communication interface [0] 904, communication interface [1] 905 ~ communication interface [N] 906 are respectively connected to the parent office 100 or the slave office 200.

第3圖係顯示本實施型態的中繼局300的機能構成例。中繼局300是以接收部301、記憶部302、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307構成。Fig. 3 shows an example of the functional configuration of the relay station 300 of this embodiment. The relay station 300 is composed of a receiving unit 301, a storage unit 302, a comparison unit 303, a determination unit 304, a correction unit 305, a transmission time management unit 306, and a transmission unit 307.

接收部301從母局100或子局200接收訊框。又,接收部301會對每個時槽計數訊框的接收數。The receiving unit 301 receives frames from the parent station 100 or the slave station 200. In addition, the receiving unit 301 counts the number of received frames for each time slot.

記憶部302會儲存接收部301所計數的每個時槽的訊框接收數。又,記憶部302會儲存發送部307所計數的每個時槽的訊框發送數。又,記憶部302會儲存後述的設定時槽範圍。The storage unit 302 stores the number of frames received for each time slot counted by the receiving unit 301. In addition, the storage unit 302 stores the number of frames sent per time slot counted by the sending unit 307. In addition, the storage unit 302 stores the setting time slot range described later.

比較部303會比較設定時槽範圍與實施時槽範圍。設定時槽範圍是為了實施資料中繼而設定的時槽的範圍。發送部307會將設定時槽範圍內從接收部301接收到的訊框,在設定時槽範圍內發送到中繼地。另一方面,接收部307會將非設定時槽範圍的時槽內從接收部301接收到的訊框,在下一個設定時槽範圍內發送到中繼地。比較部303能夠將複數的時槽當中在過去的通訊週期進行過資料中繼的時槽的範圍,作為設定時槽範圍來使用。實施時槽範圍是複數的時槽當中實際實施資料中繼的時槽範圍。也就是說,實施時槽範圍是複數的時槽當中,接收部301接收到訊框,由發送部307發送訊框到中繼地的時槽的範圍。比較部303所進行的處理相當於比較處理。The comparison unit 303 compares the setting time slot range with the implementation time slot range. The setting time slot range is the time slot range set for implementing data relay. The sending unit 307 will send the frame received from the receiving unit 301 within the setting time slot to the relay location within the setting time slot. On the other hand, the receiving unit 307 transmits the frame received from the receiving unit 301 in a time slot other than the set time slot range to the relay location within the next set time slot range. The comparison unit 303 can use the range of the time slot in which data has been relayed in the past communication cycle among the plural time slots as the set time slot range. The implementation time slot range is the time slot range in which data relay is actually implemented among the plural time slots. That is to say, among the plural time slots, the receiving unit 301 receives the frame, and the transmitting unit 307 sends the frame to the time slot range of the relay location. The processing performed by the comparison unit 303 corresponds to comparison processing.

判定部304會因應比較部303的比較結果,判定是否要修正之後的通訊週期中的設定時槽範圍。例如,比較部303進行的比較結果,判斷出設定時槽範圍與實施時槽範圍之間產生了閾值以上的偏移的情況下,判定部304會判定要修正之後的通訊週期中的設定時槽範圍。又,比較部303例如判斷出複數的通訊週期中設定時槽範圍與實施時槽範圍之間產生了閾值以上的偏移的情況下,會判定要修正之後的通訊週期中的設定時槽範圍。判定部304所進行的處理相當於判定處理。The determining unit 304 will determine whether to correct the set time slot range in the subsequent communication cycle according to the comparison result of the comparing unit 303. For example, if the comparison result performed by the comparison unit 303 determines that there is a threshold or more deviation between the setting time slot range and the implementation time slot range, the determination unit 304 determines that the setting time slot in the communication cycle after the correction is to be made. range. In addition, when the comparison unit 303 determines that there is a threshold or more deviation between the setting time slot range and the implementation time slot range in a plurality of communication cycles, for example, it determines the setting time slot range in the communication cycle after correction. The processing performed by the determination unit 304 corresponds to determination processing.

修正部305在判定部304判定要修正之後的通訊週期中的設定時槽範圍時,會根據實施時槽範圍來修正之後的通訊週期中的設定時槽範圍。例如,修正部305將之後的通訊週期中的設定時槽範圍,修正成與實施時槽範圍相同的範圍。修正部305所進行的處理相當於修正處理。When the determining unit 304 determines that the setting time slot range in the subsequent communication cycle is to be corrected, the correction unit 305 corrects the setting time slot range in the subsequent communication cycle according to the implementation time slot range. For example, the correction unit 305 corrects the set time slot range in the subsequent communication cycle to the same range as the implementation time slot range. The processing performed by the correction unit 305 corresponds to correction processing.

發送時刻管理部306管理時槽。The transmission time management unit 306 manages the time slot.

發送部307將接收部301接收的訊框發送到中繼目的地。又,發送部307也可以對每個時槽計數訊框的發送數。發送部307也可以不對每個時槽計數訊框的發送數。 [動作說明]The sending unit 307 sends the frame received by the receiving unit 301 to the relay destination. In addition, the transmission unit 307 may count the number of frames transmitted for each time slot. The sending unit 307 may not count the number of frames sent for each time slot. [Action description]

接著,說明本實施型態的中繼局300的動作例。另外,母局100、子局200、中繼局300假設為預先時刻同步。又,母局100、子局200、中繼局300假設設定了時槽的長度的預設值。母局100假設週期性地在同一時間點發送訊框。同樣地,子局200也假設週期性地在同一時間點發送訊框。中繼局300如前所述,將設定時槽範圍內接收的訊框,在設定時槽範圍內發送到中繼目的地。另一方面,中繼局300將非設定時槽範圍的時槽中接收的訊框,在下一個設定時槽範圍內發送到中繼目的地。又,中繼局300將與母局100(時刻同步主)時刻同步的時間點當作是處理的開始時刻。Next, an operation example of the relay station 300 of the present embodiment will be described. In addition, the parent station 100, the slave station 200, and the relay station 300 are assumed to be synchronized in advance. In addition, the parent station 100, the slave station 200, and the relay station 300 assume that a preset value of the length of the time slot is set. The home station 100 assumes that frames are sent periodically at the same time point. Similarly, the slave 200 also assumes that the frame is sent periodically at the same time point. As mentioned above, the relay station 300 sends the frame received within the set time slot to the relay destination within the set time slot. On the other hand, the relay station 300 transmits the frame received in a time slot other than the set time slot range to the relay destination within the next set time slot range. In addition, the relay station 300 regards the time synchronized with the time of the parent station 100 (time synchronization master) as the start time of processing.

第4圖顯示訊框接收時序的例子。更詳細來說,第4圖顯示了第N個通訊週期中的通訊介面[0]從母局100接收訊框的接收時序。又,第4圖顯示了通訊介面[1]從子局(1)201接收訊框的接收時序。又,第4圖顯示了通訊介面[2]從子局(2)202接收訊框的接收時序。又,第4圖顯示了通訊介面[N]從子局(N)203接收訊框的接收時序。第4圖的例子中,通訊週期是以16個時槽構成。例如,第1至第8個時槽中,會進行為優先訊框(高優先訊框)通訊。又,第9至第16個時槽中,會進行為非優先訊框(低優先訊框)通訊。也就是,母局100、子局200、中繼局300中,儲存以第1至第8個時槽進行優先訊框的發送接收。另外,本實施型態中,進行優先訊框通訊的第1至第8個時槽相當於設定時槽範圍。也就是,第4圖中黑底的範圍相當於設定時槽範圍。又,以下主要說明設定時槽範圍內的訊框的接收,但如前所述,設定時槽範圍內接收的訊框會在設定時槽範圍內發送到中繼目的地。也就是說,以下談到設定時槽範圍內的訊框接收的情況下,即使沒有明示,也假設設定時槽範圍內也發生訊框的發送。Figure 4 shows an example of frame reception timing. In more detail, Figure 4 shows the reception timing of the frame received by the communication interface [0] from the parent station 100 in the Nth communication cycle. In addition, Figure 4 shows the reception timing of the communication interface [1] receiving the frame from the slave station (1) 201. In addition, Figure 4 shows the reception timing of the communication interface [2] receiving the frame from the slave station (2) 202. Also, Figure 4 shows the reception timing of the communication interface [N] receiving the frame from the slave (N) 203. In the example in Figure 4, the communication cycle is composed of 16 time slots. For example, in the 1st to 8th time slots, communication will be performed as a priority frame (high priority frame). In addition, in the 9th to 16th time slots, communication is performed as a non-priority frame (low priority frame). That is, in the parent office 100, the child office 200, and the relay office 300, the first to eighth time slots are used to transmit and receive priority frames. In addition, in this embodiment, the first to eighth time slots for priority frame communication are equivalent to the set time slot range. That is, the range of the black background in Figure 4 is equivalent to the setting time slot range. In addition, the following mainly describes the reception of frames within the setting time slot, but as mentioned above, the frames received within the setting time slot will be sent to the relay destination within the setting time slot. In other words, when we talk about the reception of frames within the setting time slot below, even if there is no explicit indication, it is assumed that the transmission of the frame occurs within the setting time slot.

本實施型態中,首先,在中繼局300中,接收部301將處理開始後的最初的通訊週期所接收的訊框數,依每個時槽、每個發送來源地計數,將計數結果保存到記憶部302。另外,本實施型態中,接收部301只計數優先訊框的接收數。又,接收部301即使在第2次以後的通訊週期,也會依每個時槽、每個發送來源地計數優先訊框的接收數,將計數結果保存到記憶部302。第5圖顯示第N個通訊週期中通訊介面[0]及通訊介面[1]的訊框接收數的計數結果。第6圖顯示第N個通訊週期中通訊介面[2]及通訊介面[3]的訊框接收數的計數結果。In this embodiment, first, in the relay station 300, the receiving unit 301 counts the number of frames received in the first communication cycle after the start of processing, and counts the number of frames received for each time slot and each transmission source, and the result of the count is Save to the memory 302. In addition, in this embodiment, the receiving unit 301 only counts the number of received priority frames. In addition, the receiving unit 301 counts the received number of priority frames for each time slot and each transmission source even in the second and subsequent communication cycles, and stores the counting result in the memory unit 302. Figure 5 shows the counting result of the number of frames received by communication interface [0] and communication interface [1] in the Nth communication cycle. Figure 6 shows the counting result of the number of frames received by the communication interface [2] and the communication interface [3] in the Nth communication cycle.

第8圖係顯示接收部301進行的訊框接收數的計數處理。Fig. 8 shows the counting process of the received frame number performed by the receiving unit 301.

首先,接收部301在步驟S101判定現在是否是時槽的更新時間點。當現在是時槽的更新時間點的情況下(步驟S101為YES),處理進行到步驟S106。步驟S106的細節會在之後說明。另一方面,當現在不是時槽的更新時間點的情況下(步驟S101為NO),處理進行到步驟S102。First, the receiving unit 301 determines in step S101 whether it is the time slot update time point. When it is the update time of the time slot (YES in step S101), the process proceeds to step S106. The details of step S106 will be described later. On the other hand, when it is not the update time point of the time slot (NO in step S101), the process proceeds to step S102.

在步驟S102,接收部301判定是否接收到訊框。接收部301接收到訊框的情況下(步驟S102為YES),處理前進到步驟S103。另一方面,當接收部301沒有接收到訊框的情況下(步驟S102為NO),處理返回到步驟S101。In step S102, the receiving unit 301 determines whether a frame is received. When the receiving unit 301 receives the frame (YES in step S102), the process proceeds to step S103. On the other hand, when the receiving unit 301 does not receive the frame (NO in step S102), the process returns to step S101.

在步驟S103,接收部301判定接收的訊框是否是優先訊框(步驟S103)。接收的訊框是優先訊框的情況下(步驟S103為YES),處理前進到步驟S104。另一方面,接收的訊框不是優先訊框的情況下(步驟S103為NO),處理返回到步驟S101。In step S103, the receiving unit 301 determines whether the received frame is a priority frame (step S103). If the received frame is a priority frame (YES in step S103), the process proceeds to step S104. On the other hand, if the received frame is not a priority frame (NO in step S103), the process returns to step S101.

步驟S104中,接收部301特定出接收到的訊框的發送來源地。In step S104, the receiving unit 301 identifies the sending source of the received frame.

接著,在步驟S105。接收部301增加該接收來源地的訊框的接收數。也就是說,接收部301針對每個發送來源地管理現在的時槽的訊框接收數,並且將步驟S104中特定的發送來源地的訊框接收數加1。之後,處理回到步驟S101。Next, in step S105. The receiving unit 301 increases the received number of frames from the receiving source. In other words, the receiving unit 301 manages the number of frame receptions in the current time slot for each transmission source, and adds 1 to the number of frame receptions at the specified transmission source in step S104. After that, the process returns to step S101.

在步驟S101,判定現在是時槽的更新時間點的情況下,在步驟S106,接收部301會判定與現在時槽的槽編號相同的槽編號的訊框接收數的資訊是否儲存於記憶部302。例如,假設現在時槽是第4圖的第1個時槽的話,會判定以前的通訊週期中的第1個時槽的訊框接收數的資訊是否儲存於記憶部302。當與現在時槽的槽編號相同的槽編號的訊框接收數的資訊沒有儲存於記憶部302的情況下(步驟S106為NO),接收部301在步驟S107,將現在時槽的訊框接收數的資訊當作是最初的通訊週期的資訊並儲存於記憶部302。另一方面,當與現在時槽的槽編號相同的槽編號的訊框接收數的資訊有儲存於記憶部302的情況下(步驟S106為YES),接收部301在步驟S108會為了與最初的通訊週期的資訊比較,而將現在時槽的訊框接收數的資訊儲存於記憶體302。以下,在步驟S107中保存於記憶部302的訊框接收數的資訊,會被當作是表示設定時槽範圍的資訊來使用。又,在步驟S108中保存於記憶部302的訊框的接收數的資訊,會被當作是表示實施時槽範圍的資訊使用。另外,在步驟S107中保存於記憶部302的資訊以及在步驟S108中保存於記憶部302的資訊,會在中繼局300與母局100時刻同步時被抹除。In step S101, when it is determined that the current time slot is the update time point, in step S106, the receiving unit 301 determines whether the information of the received frame number of the slot number that is the same as the current time slot is stored in the memory unit 302 . For example, if the current time slot is the first time slot in FIG. 4, it will be determined whether the information of the frame reception number of the first time slot in the previous communication cycle is stored in the memory 302. When the information of the received frame number of the slot number that is the same as the slot number of the current time slot is not stored in the storage unit 302 (NO in step S106), the receiving unit 301 receives the frame of the current time slot in step S107 The count information is regarded as the information of the first communication cycle and stored in the memory 302. On the other hand, when the information of the received frame number of the slot number that is the same as the slot number of the current time slot is stored in the memory unit 302 (YES in step S106), the receiving unit 301 will compare the original The information of the communication cycle is compared, and the information of the received frame number of the current time slot is stored in the memory 302. Hereinafter, the information on the number of frame receptions stored in the memory 302 in step S107 will be used as information indicating the range of the setting time slot. In addition, the information on the received number of frames stored in the memory 302 in step S108 is used as the information indicating the range of the time slot for implementation. In addition, the information stored in the storage unit 302 in step S107 and the information stored in the storage unit 302 in step S108 are erased when the relay station 300 and the parent station 100 are synchronized in time.

接收部301會依每個時槽,各個通訊介面平行進行第8圖所示的處理。藉此,接收部301能夠得到第5圖及第6圖所示的訊框接收數的資訊。又,接收部301會反覆進行第8圖所示的處理。接收部301可以每個通訊週期進行第8圖所示的處理,也可以複數的通訊週期下進行1次處理。The receiving unit 301 performs the processing shown in Fig. 8 in parallel for each time slot and each communication interface. In this way, the receiving unit 301 can obtain information on the number of frames received as shown in FIGS. 5 and 6. In addition, the receiving unit 301 repeatedly performs the processing shown in Fig. 8. The receiving unit 301 may perform the processing shown in FIG. 8 every communication cycle, or may perform the processing once in a plurality of communication cycles.

又,發送部307也可以依每個時槽、每個發送來源地,計數處理開始的最初通訊週期中發送的優先訊框的發送數。又,發送部307也可以將最初通訊週期中發送的優先訊框的發送數的資訊保存於記憶部302。發送部307進行的訊框發送數的計數處理比照第8圖的處理。具體來說,將第8圖的步驟S102的「接收了訊框?」改寫為「發送了訊框?」。又,將步驟S104的「特定出發送來源地」改寫為「特定出發送目的地」。又,將步驟S105的「增加該發送來源地的訊框接收數」改寫為「增加該發送目的地的訊框發送數」。第7圖顯示第N個通訊週期中,通訊介面[0]的訊框發送數的計數結果。另外,在系統設計時就知道優先訊框的發送時序的情況下,能夠省略本段所記載的處理。In addition, the sending unit 307 may also count the number of priority frames sent in the first communication cycle at the start of the process for every time slot and every sending source. In addition, the transmission unit 307 may store information on the number of transmissions of priority frames transmitted in the first communication cycle in the storage unit 302. The processing of counting the number of frames transmitted by the transmitting unit 307 is similar to the processing in FIG. 8. Specifically, the "frame received?" in step S102 in Fig. 8 is rewritten as "frame sent?". In addition, the "specify the origin of transmission" in step S104 is rewritten to "specify the destination of the transmission". Furthermore, in step S105, "increase the number of frame receptions of the transmission source" is rewritten to "increase the number of frame transmissions of the transmission destination". Figure 7 shows the counting result of the number of frames sent on the communication interface [0] in the Nth communication cycle. In addition, when the timing of sending priority frames is known during system design, the processing described in this paragraph can be omitted.

第9圖顯示比較部303的動作例、判定部304的動作例以及修正部305的動作例。FIG. 9 shows an operation example of the comparison unit 303, an operation example of the determination unit 304, and an operation example of the correction unit 305.

在步驟S201中,比較部303比較在最初的通訊週期中保存於記憶部302的訊框接收數(設定時槽範圍)以及前一個通訊週期中保存於記憶部302的訊框接收數(實施時槽範圍)。例如,比較部303針對來自母局100的訊框接收,會求出在最初的通訊週期的訊框接收數以及在前一個通訊週期的訊框接收數之間的相互相關值。比較部303將比較結果保存於任意的記憶領域。In step S201, the comparison unit 303 compares the number of frame receptions stored in the memory unit 302 in the first communication cycle (setting the time slot range) and the number of frame receptions stored in the memory unit 302 in the previous communication cycle (at the time of implementation). Slot range). For example, for the frame reception from the parent station 100, the comparison unit 303 obtains the correlation value between the number of frame receptions in the initial communication cycle and the number of frame receptions in the previous communication cycle. The comparison unit 303 stores the comparison result in an arbitrary memory area.

接著,在步驟S202,判定部304根據比較部303的比較結果(相互相關值),檢測出最初的通訊週期中的訊框接收數以及前一個通訊週期中的訊框接收數之間的偏移。藉此,判定部304能夠檢測出來自現在的母局100的訊框的接收時序,相比於最初的通訊週期是否往前偏移、往後偏移,或者是前後擺動。Next, in step S202, the judging unit 304 detects the deviation between the number of frame receptions in the initial communication cycle and the number of frame receptions in the previous communication cycle based on the comparison result (cross-correlation value) of the comparison unit 303 . In this way, the determining unit 304 can detect whether the reception timing of the frame from the current home station 100 is shifted forward, shifted backward, or swayed back and forth compared to the initial communication cycle.

接著,在步驟S203,判定部304判定在步驟S202中檢測出的偏移是否在閾值以上。也就是說,判定部304判定設定時槽範圍與實施時槽範圍是否有閾值以上的偏移。閾值例如是1個時槽。第4圖的例子中,前一個通訊週期的第16個時槽中接收到訊框的情況下,或者是第9個時槽中接收到訊框的情況下,訊框的接收時序從設定訊框範圍偏移1個訊框的量,因此產生了閾值以上的偏移。Next, in step S203, the determination unit 304 determines whether or not the offset detected in step S202 is greater than or equal to the threshold value. In other words, the determination unit 304 determines whether the slot range at the time of setting and the range at the time of implementation have a deviation of more than a threshold value. The threshold is, for example, 1 time slot. In the example in Figure 4, when a frame is received in the 16th time slot of the previous communication cycle, or in the case of a frame received in the 9th time slot, the frame reception timing is changed from the setting signal The frame range is shifted by one frame, so a shift above the threshold is generated.

在步驟S202檢測出的偏移在閾值以上的情況下(步驟S203為YES),判定部304會在步驟S204將該局的識別符保存於任意的記憶領域。另一方面,在步驟S202檢測出的偏移不滿閾值的情況下(步驟S203為NO),判定部304會在步驟S205對全部的局判斷步驟S201以後的處理是否已進行。如果有步驟S201以後的處理還沒有進行的局存在的情況下(步驟S205為NO),比較部303會對該局進行步驟S201以後的處理。另一方面,如果已經對全部的局(母局100及全部的子局200)都進行了步驟S201以後的處理的話(步驟S205為YES),處理前進到步驟S205。When the offset detected in step S202 is greater than or equal to the threshold value (YES in step S203), the determination unit 304 stores the station identifier in an arbitrary memory area in step S204. On the other hand, when the offset detected in step S202 is less than the threshold value (NO in step S203), the determination unit 304 determines in step S205 for all stations whether the processing after step S201 has been performed. If there is a station in which the processing after step S201 has not been performed (NO in step S205), the comparison unit 303 will perform the processing after step S201 on the station. On the other hand, if all the stations (the parent station 100 and all the slave stations 200) have been processed after step S201 (YES in step S205), the process proceeds to step S205.

步驟S205中,判定部304判定步驟S204中將識別符保存於記憶領域的局是否存在。當步驟S204中將識別符保存於記憶領域的局存在的情況下(步驟S206為YES),也就是,設定時槽範圍與實施時槽範圍偏移了閾值以上的局存在的情況下,判定部304會決定以修正部305進行修正處理。另一方面,步驟S204中將識別符保存於記憶領域的局不存在的情況下(步驟S206為NO),處理結束。In step S205, the determining unit 304 determines whether there is a station that stores the identifier in the memory area in step S204. When there is a station where the identifier is stored in the memory area in step S204 (YES in step S206), that is, when there is a station where the slot range at the time of setting and the slot range at the time of execution deviate by more than the threshold value, the determination unit 304 will determine that the correction unit 305 performs correction processing. On the other hand, if the station where the identifier is stored in the memory area does not exist in step S204 (NO in step S206), the process ends.

在步驟S207,修正部305會按照步驟S202所檢測出的偏移,修正設定時槽範圍。也就是,修正部305會將之後的通訊周其中的設定時槽範圍,修正成與實施時槽範圍相同的範圍。In step S207, the correction unit 305 corrects the set time slot range according to the offset detected in step S202. That is, the correction unit 305 corrects the set time slot range in the subsequent communication week to the same range as the implementation time slot range.

接著,說明修正部305所進行的修正處理的具體例子。Next, a specific example of the correction processing performed by the correction unit 305 will be described.

第10圖及第11圖顯示訊框的接收時序往前偏移的情況下之修正部305的修正例。第10圖中,與第4圖相同,第1至第8個時槽進行優先訊框通訊。也就是第1至第8個時槽的範圍是設定時槽範圍。如第10圖所示,假設訊框的接收時序偏移到前一個通訊週期的第16個時槽。在這個情況下,修正部305會在下一個通訊週期將第16個時槽設定為開啟。也就是,修正部305如第11圖所示,將設定時槽範圍修正為第16至第8個時槽的範圍。黑底的範圍表示設定時槽範圍。又,第10圖的例子中,第8個時槽中,任一個局都沒有接收訊框,因此修正部305也可以將第8個時槽從設定時槽範圍中除去。第11圖的例子中,第16個時槽中接收到訊框的話,立即將第16個時槽追加到新的設定時槽範圍。取而代之地,第16個時槽的訊框的接收確認有複數次之後,也就是閾值以上的偏移確認有複數次之後,修正部305也可以修正設定時槽範圍,使其包含第16個時槽。同樣地,第8個時槽的沒有接收訊框確認了複數次之後,修正部305也可以修正設定時槽範圍,使其不包含第8個時槽。Figures 10 and 11 show examples of correction by the correction unit 305 when the reception timing of the frame is shifted forward. In Figure 10, the same as Figure 4, the first to eighth time slots carry out priority frame communication. That is, the range of the 1st to 8th time slots is the setting time slot range. As shown in Figure 10, suppose the reception timing of the frame is shifted to the 16th time slot of the previous communication cycle. In this case, the correction unit 305 will set the 16th time slot to be on in the next communication cycle. That is, as shown in FIG. 11, the correction unit 305 corrects the set time slot range to the range of the 16th to 8th time slots. The range of the black background indicates the range of the setting time slot. Furthermore, in the example of FIG. 10, in the eighth time slot, none of the stations has received a frame, so the correction unit 305 may remove the eighth time slot from the set time slot range. In the example in Figure 11, if a frame is received in the 16th time slot, the 16th time slot is immediately added to the new set time slot range. Instead, after the reception of the 16th time slot frame has been confirmed multiple times, that is, after the offset above the threshold has been confirmed multiple times, the correction unit 305 can also correct the set time slot range to include the 16th time slot. groove. Similarly, after the unreceived frame of the eighth time slot has been confirmed multiple times, the correction unit 305 may also correct the set time slot range so that it does not include the eighth time slot.

第12圖及第13圖顯示訊框的接收時序往後偏移的情況下的修正部305的修正例。第12圖中,與第4圖同樣地,第1至第8個時槽進行優先訊框通訊。也就是第1至第8個時槽的範圍是設定時槽範圍。如第12圖所示,假設訊框的接收時序偏移到第9個時槽。在這個情況下,修正部305會在下一個通訊週期將第9個時槽設定為開啟。也就是,修正部305如第13圖所示,將設定時槽範圍修正為第1至第9個時槽的範圍。黑底的範圍表示設定時槽範圍。第13圖的例子中,第9個時槽中接收到訊框的話,立即將第9個時槽追加到新的設定時槽範圍。取而代之地,第9個時槽的訊框的接收確認有複數次之後,也就是閾值以上的偏移確認有複數次之後,修正部305也可以修正設定時槽範圍,使其包含第9個時槽。Figures 12 and 13 show examples of correction by the correction unit 305 when the reception timing of the frame is shifted backward. In Fig. 12, as in Fig. 4, the first to eighth time slots perform priority frame communication. That is, the range of the 1st to 8th time slots is the setting time slot range. As shown in Figure 12, suppose the receiving timing of the frame is shifted to the 9th time slot. In this case, the correction unit 305 will set the 9th time slot to be on in the next communication cycle. That is, the correction unit 305 corrects the set time slot range to the range of the first to ninth time slots as shown in FIG. 13. The range of the black background indicates the range of the setting time slot. In the example in Figure 13, if a frame is received in the 9th time slot, the 9th time slot is immediately added to the new set time slot range. Instead, after the reception of the frame of the 9th time slot has been confirmed multiple times, that is, after the offset above the threshold has been confirmed multiple times, the correction unit 305 can also correct the set time slot range to include the 9th time slot. groove.

第14圖及第15圖顯示訊框的接收時序前後擺動偏移的情況下的修正部305的修正例。第14圖中,與第4圖同樣地,第1至第8個時槽進行優先訊框通訊。也就是第1至第8個時槽的範圍是設定時槽範圍。如第14圖所示,假設訊框的接收時序偏移到前1個通訊週期的第16個時槽,也偏移第9個時槽。在這個情況下,修正部305會在下一個通訊週期將第16個時槽及第9個時槽設定為開啟。也就是,修正部305如第14圖所示,將設定時槽範圍修正為第16至第9個時槽的範圍。Figures 14 and 15 show examples of correction by the correction unit 305 when the reception timing of the frame is shifted back and forth. In Figure 14, similar to Figure 4, the first to eighth time slots perform priority frame communication. That is, the range of the 1st to 8th time slots is the setting time slot range. As shown in Figure 14, suppose that the receiving timing of the frame shifts to the 16th time slot of the previous communication cycle, and also shifts to the 9th time slot. In this case, the correction unit 305 will set the 16th time slot and the 9th time slot to on in the next communication cycle. That is, the correcting unit 305 corrects the set time slot range to the range of the 16th to 9th time slots as shown in FIG. 14.

第16圖顯示修正部305的動作例及發送時刻管理部306的動作例。FIG. 16 shows an example of the operation of the correction unit 305 and an example of the operation of the transmission time management unit 306.

步驟S301中,修正部305將追加對象的時槽追加到設定時槽範圍。第10圖的例子中,第16時槽是追加對象的時槽。修正部305將追加對象的第16個時槽追加到設定時槽範圍。In step S301, the correction unit 305 adds the time slot to be added to the set time slot range. In the example in Fig. 10, the 16th time slot is the time slot to be added. The correction unit 305 adds the sixteenth time slot to be added to the set time slot range.

接著,步驟S302中,修正部305判定是否將設定時槽範圍修正到能夠吸收全部的偏移。例如,第14圖的例子,只將第16個時槽追加到設定時槽範圍的話,無法吸收第9個時槽的偏移。因此,這個情況下,步驟S302的判定中得到「NO」的結果。Next, in step S302, the correction unit 305 determines whether or not the set time slot range is corrected to absorb all the deviation. For example, in the example of Figure 14, if only the 16th time slot is added to the set time slot range, the offset of the 9th time slot cannot be absorbed. Therefore, in this case, the result of "NO" is obtained in the determination of step S302.

接著,在步驟S303中,將刪除對象的時槽從設定時槽範圍中刪除。第10圖的例子中,第8個時槽中不會接收訊框,因此將第8個時槽視為刪除對象的話,修正部305將第8個時槽從設定時槽範圍中刪除。Next, in step S303, the time slot to be deleted is deleted from the set time slot range. In the example of FIG. 10, no frame is received in the eighth time slot, so if the eighth time slot is regarded as a deletion target, the correction unit 305 deletes the eighth time slot from the set time slot range.

最後,在步驟S304中,發送時刻管理部306變更時槽的編號。如第15圖的例子,修正的結果,新的設定時槽範圍成為第16至第9個的範圍的情況下,發送時刻管理部306變更時槽的編號,使得新的設定時槽範圍從第1個時槽開始。結果,新的設定時槽的範圍成為第1個時槽(變更前的第16個時槽)至第10個時槽(變更前的第9個時槽)的範圍。藉此,母局100發送訊框的時槽的編號固定,因此母局100與中繼局300再同步時,就不需要調整時槽編號。又,發送時刻管理部306將記憶部302中的修正前的設定時槽範圍的資訊,以修正後的設定時槽範圍加以改寫。例如,第15圖的例子中,將修正前的設定時槽範圍的資訊,也就是第1至第8個時槽的資訊,改寫成第1至第10個時槽的資訊。另外,即使在發送時刻管理部306改寫設定時槽範圍的資訊的情況下,訊框的發送順序的資訊會繼續保留在記憶部302。例如,假設規定以來自子局(1)201的訊框、來自子局(2)202的訊框、來自子局(N)203的訊框的順序發送至母局100。第12圖的訊框的接收例中,第3個時槽中接收來自子局(1)201的訊框以及來自子局(2)202的訊框。在這個情況下,當訊框發送順序的資訊被刪除,有可能會發生以相同的第3個時槽接收到的來自子局(2)202的訊框比來自子局(1)201的訊框更先發送到母局100。因此,發送時刻管理部306改寫設定時槽範圍的資訊,使得訊框的發送順序按照規定進行,又,即使是要變更時槽的編號的情況下,訊框的發送順序的資訊也會繼續保留。 [實施型態的效果的說明]Finally, in step S304, the transmission time management unit 306 changes the number of the time slot. As in the example in Figure 15, as a result of the correction, when the new setting time slot range becomes the 16th to 9th range, the transmission time management unit 306 changes the time slot number so that the new setting time slot range is from the first 1 hour slot starts. As a result, the range of the newly set time slot becomes the range from the first time slot (the 16th time slot before the change) to the 10th time slot (the 9th time slot before the change). In this way, the number of the time slot in which the parent office 100 sends the frame is fixed, so when the parent office 100 and the relay office 300 resynchronize, there is no need to adjust the time slot number. In addition, the transmission time management unit 306 rewrites the information of the setting time slot range before the correction in the storage unit 302 with the setting time slot range after the correction. For example, in the example in Figure 15, the information of the set time slot range before correction, that is, the information of the 1st to 8th time slots, is rewritten into the information of the 1st to 10th time slots. In addition, even if the transmission time management unit 306 rewrites the information of the set time slot range, the information of the transmission sequence of the frame will continue to be retained in the storage unit 302. For example, suppose it is specified that the frame from the slave (1) 201, the frame from the slave (2) 202, and the frame from the slave (N) 203 are sent to the parent station 100 in the order. In the frame reception example in Figure 12, the frame from the slave (1) 201 and the frame from the slave (2) 202 are received in the third time slot. In this case, when the information of the frame sending order is deleted, it may happen that the frame from the slave station (2) 202 received in the same third time slot is higher than the frame from the slave station (1) 201. The box is sent to the home office 100 first. Therefore, the transmission time management unit 306 rewrites the information of the set time slot range so that the transmission sequence of the frame is performed according to the regulations, and even if the time slot number is to be changed, the transmission sequence information of the frame will continue to be retained. . [Explanation of the effect of implementation type]

如以上所述,本實施型態中,即使產生時刻同步的偏移的情況下,藉由變更中繼局300的時槽,就不需要進行用以修正的通訊。因此,根據本實施型態,能夠不消耗通訊頻寬來修正資訊通訊用的時序。 [硬體構成的說明]As described above, in this embodiment, even if a time synchronization shift occurs, by changing the time slot of the relay station 300, communication for correction is not required. Therefore, according to this embodiment, the timing for information communication can be corrected without consuming communication bandwidth. [Explanation of hardware configuration]

最後,補充說明中繼局300的硬體的構成。第2圖所示的處理器901是執行處理的IC(Integrated Circuit)。處理器901是CPU(Central Processing Unit)、DSP(Digital Signal Processor)等。第2圖所示的記憶裝置902是RAM(Random Access Memory)、ROM(Read Only Memory)、快閃記憶體、HDD(Hard Disk Drive)等。第2圖所示的通訊介面[0]904~通訊介面[N]906是執行資料的通訊處理的電子電路。通訊介面[0]904~通訊介面[N]906例如通訊晶片或者是NIC(Network Interface Card)。Finally, the hardware configuration of the relay station 300 is supplemented. The processor 901 shown in FIG. 2 is an IC (Integrated Circuit) that executes processing. The processor 901 is a CPU (Central Processing Unit), a DSP (Digital Signal Processor), etc. The memory device 902 shown in FIG. 2 is RAM (Random Access Memory), ROM (Read Only Memory), flash memory, HDD (Hard Disk Drive), etc. The communication interface [0] 904 to the communication interface [N] 906 shown in Figure 2 are electronic circuits that perform data communication processing. Communication interface [0] 904 ~ communication interface [N] 906 such as communication chip or NIC (Network Interface Card).

又,記憶裝置902中也儲存有OS(Operating System)。然後,OS的至少一部分會由處理器901來執行。處理器901一邊執行OS的至少一部分,一邊執行程式來實現接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的功能。處理器901執行OS,藉此進行排程管理、記憶管理、檔案管理、通訊控制等。又,顯示接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的處理結果的資訊、資料、信號值及變數值的至少任一者,要儲存於記憶裝置902、處理器901的內的暫存器及快閃記憶體的至少任一者。又,實現接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的功能的程式也可以儲存於磁碟片、可撓性碟片、光碟、CD、藍光光碟、DVD等的可搬運記錄媒體。In addition, an OS (Operating System) is also stored in the memory device 902. Then, at least a part of the OS is executed by the processor 901. The processor 901 executes at least a part of the OS while executing programs to realize the functions of the receiving unit 301, the comparing unit 303, the determining unit 304, the correcting unit 305, the sending time management unit 306, and the sending unit 307. The processor 901 executes the OS, thereby performing schedule management, memory management, file management, communication control, etc. In addition, at least any one of the information, data, signal value, and variable value showing the processing results of the receiving unit 301, comparison unit 303, judgment unit 304, correction unit 305, transmission time management unit 306, and transmission unit 307 should be stored in At least any one of a memory device 902, a register in the processor 901, and a flash memory. In addition, programs that realize the functions of the receiving unit 301, the comparing unit 303, the judging unit 304, the correcting unit 305, the sending time management unit 306, and the sending unit 307 can also be stored on a magnetic disk, a flexible disk, an optical disk, a CD, Transportable recording media such as Blu-ray Discs and DVDs.

又,也可以將接收部301、比較部303、判定部304、修正部305、發送時刻管理部306及發送部307的「部」替換成「電路」、「程序」、「步驟」、或「處理」。又,中繼局300也可以藉由處理線路來實現。處理線路例如邏輯IC(Integrated Circuit)、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)。另外,本說明書中,將處理器及處理線路的上位概念稱為「處理電路(processing circuitry)」。也就是說,處理器及處理線路各自是「處理電路(processing circuitry)」的具體例子。In addition, the "units" of the receiving unit 301, comparison unit 303, judgment unit 304, correction unit 305, transmission time management unit 306, and transmission unit 307 may be replaced with "circuit", "program", "step", or " deal with". In addition, the relay station 300 can also be realized by processing lines. Processing circuits such as logic IC (Integrated Circuit), GA (Gate Array), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array). In addition, in this specification, the higher-level concept of the processor and the processing circuit is referred to as "processing circuitry". In other words, the processor and processing circuit are specific examples of "processing circuitry".

100:母局 200:子局 201:子局(1) 202:子局(2) 203:子局(N) 300:中繼局 301:接收部 302:記憶部 303:比較部 304:判定部 305:修正部 306:發送時刻管理部 307:發送部 901:處理器 902:記憶裝置 903:計數器 904:通訊介面[0] 905:通訊介面[1] 906:通訊介面[N] 100: home game 200: Sub game 201: Sub-game (1) 202: Sub-round (2) 203: Sub-game (N) 300: Relay Office 301: Receiving Department 302: Memory Department 303: Comparison Department 304: Judgment Department 305: Correction Department 306: Delivery time management department 307: Sending Department 901: processor 902: memory device 903: Counter 904: Communication interface [0] 905: Communication interface [1] 906: Communication interface [N]

第1圖係顯示實施型態1的通訊系統的構成例。 第2圖係顯示實施型態1的中繼局的硬體構成例。 第3圖係顯示實施型態1的中繼局的機能構成例。 第4圖係顯示實施型態1的設定時槽的範圍的例子。 第5圖係顯示實施型態1的每個時槽的接收訊框數的例子。 第6圖係顯示實施型態1的每個時槽的接收訊框數的例子。 第7圖係顯示實施型態1的每個時槽的接收訊框數的例子。 第8圖係顯示實施型態1的中繼局的動作例的流程圖。 第9圖係顯示實施型態1的中繼局的動作例的流程圖。 第10圖係顯示實施型態1的設定時槽範圍的修正例。 第11圖係顯示實施型態1的設定時槽範圍的修正例。 第12圖係顯示實施型態1的設定時槽範圍的修正例。 第13圖係顯示實施型態1的設定時槽範圍的修正例。 第14圖係顯示實施型態1的設定時槽範圍的修正例。 第15圖係顯示實施型態1的設定時槽範圍的修正例。 第16圖係顯示實施型態1的中繼局的動作例的流程圖。Fig. 1 shows an example of the configuration of the communication system of the first embodiment. Figure 2 shows an example of the hardware configuration of the relay station in the first embodiment. Fig. 3 shows an example of the functional configuration of the relay station in the first embodiment. Fig. 4 shows an example of the range of the slot during the setting of the first embodiment. Figure 5 shows an example of the number of received frames per time slot in the first embodiment. Figure 6 shows an example of the number of received frames per time slot in the first embodiment. Figure 7 shows an example of the number of received frames per time slot in the first embodiment. Fig. 8 is a flowchart showing an example of the operation of the relay station in the first embodiment. Fig. 9 is a flowchart showing an example of the operation of the relay station in the first embodiment. Fig. 10 shows a modification example of the slot range during the setting of implementation pattern 1. Fig. 11 shows a modification example of the slot range during the setting of the implementation pattern 1. Figure 12 shows a modification example of the slot range during the setting of the implementation pattern 1. Fig. 13 shows a modification example of the slot range during the setting of the implementation pattern 1. Fig. 14 shows a modification example of the slot range during the setting of the implementation pattern 1. Fig. 15 shows a modification example of the slot range during the setting of the implementation pattern 1. Fig. 16 is a flowchart showing an example of the operation of the relay station in Embodiment 1.

300:中繼局 300: Relay Office

301:接收部 301: Receiving Department

302:記憶部 302: Memory Department

303:比較部 303: Comparison Department

304:判定部 304: Judgment Department

305:修正部 305: Correction Department

306:發送時刻管理部 306: Delivery time management department

307:發送部 307: Sending Department

Claims (9)

一種中繼裝置,包括: 比較部,比較設定時槽範圍以及實施時槽範圍,其中該設定時槽範圍是構成通訊週期的複數的時槽當中用以實施資料中繼而被設定的時槽的範圍,該實施時槽範圍是該複數的時槽當中實際實施該資料中繼的時槽的範圍; 判定部,因應該比較部所做的比較結果,判定是否要修正之後的通訊週期中的設定時槽範圍;以及 修正部,在該判定部判定要修正之後的通訊週期中的設定時槽範圍的情況下,根據該實施時槽範圍來修正之後的通訊週期中的設定時槽範圍。A relay device includes: The comparison part compares the setting time slot range and the implementation time slot range, where the setting time slot range is the time slot range set for implementing data relay among the plural time slots constituting the communication cycle, and the implementation time slot range is The range of the time slot that actually implements the data relay among the plural time slots; The judging unit, based on the comparison result made by the comparing unit, determines whether to modify the set time slot range in the subsequent communication cycle; and The correction unit corrects the set time slot range in the subsequent communication cycle based on the implementation time slot range when the determination unit determines that the set time slot range in the subsequent communication cycle is to be corrected. 如申請專利範圍第1項所述之中繼裝置,其中: 該判定部會在該比較部進行比較的結果顯示出設定時槽範圍與實施時槽範圍之間產生了閾值以上的偏移的情況下,判定要修正之後的通訊週期中的設定時槽範圍。The relay device described in item 1 of the scope of patent application, in which: When the comparison result of the comparison unit shows that there is a threshold or more deviation between the setting time slot range and the implementation time slot range, the judgment unit judges the setting time slot range in the communication cycle after the correction is required. 如申請專利範圍第1項所述之中繼裝置,其中: 當該判定部確定複數的通訊週期中,設定時槽範圍與實施時槽範圍之間產生了閾值以上的偏移的情況下,會判定要修正之後的通訊週期中的設定時槽範圍。The relay device described in item 1 of the scope of patent application, in which: When the determination unit determines that there is a threshold or more deviation between the setting time slot range and the implementation time slot range in a plurality of communication cycles, it determines that the setting time slot range in the subsequent communication cycle should be corrected. 如申請專利範圍第1項所述之中繼裝置,其中: 該修正部將之後的通訊週期中的設定時槽範圍修正為與實施時槽範圍相同的範圍。The relay device described in item 1 of the scope of patent application, in which: The correction unit corrects the setting time slot range in the subsequent communication cycle to the same range as the implementation time slot range. 如申請專利範圍第1項所述之中繼裝置,其中: 其中該複數的時槽中被附上編號, 該修正部在要修正之後的通訊週期中的設定時槽範圍的情況下,會變更該複數的時槽的編號。The relay device described in item 1 of the scope of patent application, in which: The plural time slots are numbered, When the correction unit needs to correct the set time slot range in the subsequent communication cycle, it will change the number of the plural time slot. 如申請專利範圍第1項所述之中繼裝置,其中: 該比較部會將該複數的時槽之中在過去的通訊週期中實施該資料中繼的時槽的範圍,當作該設定時槽範圍來使用。The relay device described in item 1 of the scope of patent application, in which: The comparison unit will use the time slot range in the plural time slots where the data relay was implemented in the past communication cycle as the set time slot range. 如申請專利範圍第1項所述之中繼裝置,其中: 該比較部算出該設定時槽範圍中的資料接收數以及該實施時槽範圍中的資料接收數的相互相關值, 該判定部根據該相互相關值,檢測出該設定時槽範圍中的資料接收數及該實施時槽範圍中的資料接收數的偏移,判定檢測出的偏移是否在閾值以上,再判定是否要修正之後的通訊週期中的設定時槽範圍。The relay device described in item 1 of the scope of patent application, in which: The comparison unit calculates the correlation value between the number of data receptions in the set time slot range and the number of data receptions in the implementation time slot range, Based on the correlation value, the determination unit detects the deviation of the number of data received in the slot range at the set time and the number of data received in the slot range at the implementation time, determines whether the detected offset is above the threshold, and then determines whether To modify the setting time slot range in the subsequent communication cycle. 一種中繼方法,包括: 透過電腦比較設定時槽範圍以及實施時槽範圍,其中該設定時槽範圍是構成通訊週期的複數的時槽當中用以實施資料中繼而被設定的時槽的範圍,該實施時槽範圍是該複數的時槽當中實際實施該資料中繼的時槽的範圍; 透過該電腦因應比較結果,判定是否要修正之後的通訊週期中的設定時槽範圍;以及 在判定要修正之後的通訊週期中的設定時槽範圍的情況下,透過該電腦根據該實施時槽範圍來修正之後的通訊週期中的設定時槽範圍。A relay method, including: Compare the setting time slot range and the implementation time slot range through the computer, where the setting time slot range is the time slot range set to implement data relay among the plural time slots constituting the communication cycle, and the implementation time slot range is the The range of the time slot that actually implements the data relay among the plural time slots; According to the comparison result through the computer, determine whether to modify the set time slot range in the subsequent communication cycle; and When it is determined that the setting time slot range in the subsequent communication cycle is to be corrected, the computer is used to correct the setting time slot range in the subsequent communication cycle according to the implementation time slot range. 一種中繼程式產品,使電腦執行: 比較處理,比較設定時槽範圍以及實施時槽範圍,其中該設定時槽範圍是構成通訊週期的複數的時槽當中用以實施資料中繼而被設定的時槽的範圍,該實施時槽範圍是該複數的時槽當中實際實施該資料中繼的時槽的範圍; 判定處理,因應該比較處理所做的比較結果,判定是否要修正之後的通訊週期中的設定時槽範圍;以及 修正處理,在該判定處理判定要修正之後的通訊週期中的設定時槽範圍的情況下,根據該實施時槽範圍來修正之後的通訊週期中的設定時槽範圍。A relay program product that enables a computer to execute: Comparing processing, comparing the setting time slot range and the implementation time slot range, where the setting time slot range is the time slot range set for implementing data relay among the plural time slots constituting the communication cycle, and the implementation time slot range is The range of the time slot that actually implements the data relay among the plural time slots; Judgment processing, based on the comparison results made by the comparison processing, determine whether to modify the set time slot range in the subsequent communication cycle; and In the correction process, when the determination process determines that the set time slot range in the subsequent communication cycle is to be corrected, the set time slot range in the subsequent communication cycle is corrected based on the implementation time slot range.
TW108119304A 2018-12-27 2019-06-04 Relay device, relay method and relay program TW202025653A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
PCT/JP2018/048311 WO2020136843A1 (en) 2018-12-27 2018-12-27 Relay device, relay method and relay program
WOPCT/JP2018/048311 2018-12-27

Publications (1)

Publication Number Publication Date
TW202025653A true TW202025653A (en) 2020-07-01

Family

ID=71127868

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108119304A TW202025653A (en) 2018-12-27 2019-06-04 Relay device, relay method and relay program

Country Status (3)

Country Link
JP (1) JP6827607B2 (en)
TW (1) TW202025653A (en)
WO (1) WO2020136843A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022109986A1 (en) 2020-11-27 2022-06-02 新华三技术有限公司 Message forwarding method and apparatus, and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010056956A (en) * 2008-08-28 2010-03-11 Sanyo Electric Co Ltd Notification method, and radio apparatus
WO2016132402A1 (en) * 2015-02-20 2016-08-25 三菱電機株式会社 Communication frame transfer device and communication system
JP7013650B2 (en) * 2017-01-30 2022-02-01 富士通株式会社 Packet processing device and packet processing method
JP6867240B2 (en) * 2017-06-16 2021-04-28 日本電信電話株式会社 Communication device and frame transfer method

Also Published As

Publication number Publication date
WO2020136843A1 (en) 2020-07-02
JPWO2020136843A1 (en) 2021-03-11
JP6827607B2 (en) 2021-02-10

Similar Documents

Publication Publication Date Title
US9699091B2 (en) Apparatus and method for time aware transfer of frames in a medium access control module
US10523352B2 (en) Forward error correction for incomplete blocks
EP2750332B1 (en) System and method for packet timing of circuit emulation services over networks
US8982897B2 (en) Data block output apparatus, communication system, data block output method, and communication method
US7596153B2 (en) Clock-state correction and/or clock-rate correction using relative drift-rate measurements
WO2014043092A1 (en) Method and apparatus for transmitting packets in accordance with ieee 802.1 qbv
JP7077845B2 (en) Network equipment
US9756654B2 (en) Timer-based scheme for user equipment queue state estimation
EP2359538B1 (en) Method for adjusting time slots in a communication network
JP2022518631A (en) Methods performed by the computer means of a communication entity in a packet-switched network, as well as its computer programs and computer-readable non-temporary recording media, and the communication entity of the packet-switched network.
TW202025653A (en) Relay device, relay method and relay program
US10742260B2 (en) Synchronizing unicast traffic
US20180026864A1 (en) Communication apparatus, communication system, and communication method
JP2014033251A (en) Communication system and packet transmission method
JP2015162719A (en) Communication device, communication method, and program
JP6320654B1 (en) Management device, communication system, management method, and management program
JP3650770B2 (en) Stream data transmitter
JP3785635B2 (en) Communication apparatus, priority control method thereof, and priority control program
US10172148B2 (en) Communication terminal, communication method, storage medium on which communication program is stored, and communication system
WO2024109563A1 (en) Adaptive grant-free method and apparatus, terminal, and network side device
US11342959B2 (en) Positioning transmission of a packet
CN116055269A (en) Phase adjustment method for data transmission and related equipment
JP2005130529A (en) Stream data transmission apparatus