TW201811083A - Communication system and communication method - Google Patents
Communication system and communication method Download PDFInfo
- Publication number
- TW201811083A TW201811083A TW105123546A TW105123546A TW201811083A TW 201811083 A TW201811083 A TW 201811083A TW 105123546 A TW105123546 A TW 105123546A TW 105123546 A TW105123546 A TW 105123546A TW 201811083 A TW201811083 A TW 201811083A
- Authority
- TW
- Taiwan
- Prior art keywords
- communication
- data
- messaging
- bandwidth
- request
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 216
- 238000000034 method Methods 0.000 title claims description 6
- 230000005540 biological transmission Effects 0.000 claims abstract description 14
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本發明是關於一種在控制網路中所使用的通訊系統及通訊方法。 The invention relates to a communication system and a communication method used in a control network.
在複數連接裝置(節點)的控制網路中,採用設置即時通訊頻寬與非即時通訊頻寬的時分割通訊方式,藉此,得到一種可保證即時通訊之頻寬的方法。 In the control network of a plurality of connected devices (nodes), a time-division communication method in which an instant communication bandwidth and a non-immediate communication bandwidth are set is adopted, thereby obtaining a method for ensuring the bandwidth of the instant communication.
在此種保證即時通訊之頻寬的方法中,針對某一節點,於即時通訊頻寬被分配的期間,得以抑制來自其它節點的傳送,所以,即時通訊頻寬被分配之後的節點可傳送所要的即時通訊資料。 In this method of ensuring the bandwidth of instant messaging, for a certain node, during the period when the instant messaging bandwidth is allocated, transmission from other nodes can be suppressed, so the node after the instant messaging bandwidth is allocated can transmit the desired IM information.
但是需要考慮到,在非即時通訊頻寬中,當某一節點實施非即時通訊時,同一時點有其它節點的非即時通訊發生。結果,這意味著非即時通訊頻寬的吃緊傾向。 However, it is necessary to consider that in a non-immediate communication bandwidth, when a node implements non-immediate communication, non-immediate communication of other nodes occurs at the same time. As a result, this means a tighter tendency to non-IM bandwidth.
此問題可藉由將非即時通訊頻寬設定到某種程度的大小來解決。不過,在此情況下,即時通訊的通訊週期這次會變得比較長,即時通訊的通訊頻寬則變得較窄,所以,原本進行優先性的必要性提高的控制反而難以實行而產生了問題。 This problem can be solved by setting the non-IM bandwidth to a certain level. However, in this case, the communication cycle of instant messaging will become longer this time, and the communication bandwidth of instant messaging will become narrower. Therefore, it is difficult to implement the control to increase the necessity of the priority, which causes problems. .
專利文獻1:特表2004-515122號 Patent Document 1: Special Table No. 2004-515122
相對於此,在習知的通訊系統中,有一種被揭露的技術(專利文獻1)為了不干擾即時通訊頻寬,在中繼傳送非即時通訊資料時,主要儲存中繼資料到下一個週期的非即時通訊開始時間為止,藉此,進行資料傳送。 In contrast, in the conventional communication system, there is a disclosed technology (Patent Document 1). In order not to interfere with the instant communication bandwidth, when transmitting non-immediate communication data, it mainly stores the relay data to the next cycle. Until the non-IM start time of
不過,在習知的通訊系統中,需要一種可以在所有節點進行主要儲存的緩衝記憶體,所以成本提高。 However, in the conventional communication system, a buffer memory that can perform main storage at all nodes is needed, so the cost is increased.
又,即使為了不使成本產生影響而將此緩衝記憶體變小,也會有資料廢棄發生,於是,非即時通訊資料在到達位址之前常常都被主要儲存,對等待肯定回應(ACK)的傳送資料而言,再次傳送處理不會發生,更加使非即時通訊頻寬吃緊。 In addition, even if this buffer memory is made small in order not to affect the cost, data discarding will occur. Therefore, non-IM data is often stored mainly before reaching the address. As far as transmitting data is concerned, retransmission processing will not happen, which will further tighten the bandwidth of non-IM.
本發明是為了消解上述之課題的發明,提供一種包括第一通訊裝置及複數個第二通訊裝置的通訊系統,其特徵為:上述第二通訊裝置包括:第一傳訊控制部,傳送需要即時性之第一資料通訊;及第二傳訊控制部,將不需要即時性之第二資料通訊的傳訊請求作為上述第一資料通訊的一部分,將其傳送至上述第一通訊裝置,根據從上述第一通訊裝置接收的頻寬的情報傳送第二資料通訊;上述第一通訊裝置包括:傳訊管理部,管理上述第二資料通訊用的通訊頻寬,在接收上述第二資料通訊的請求之後,將上述通訊頻寬的空頻寬的情報傳送至傳送上述第二資料通訊之請求的第二通訊裝置。 The present invention is an invention for eliminating the above-mentioned problems, and provides a communication system including a first communication device and a plurality of second communication devices, characterized in that the second communication device includes: a first messaging control section, and transmission needs to be timely The first data communication; and the second messaging control unit, which transmits the request for the second data communication that does not require immediateness as part of the first data communication, and transmits it to the first communication device, The bandwidth information received by the communication device transmits the second data communication; the first communication device includes: a messaging management unit that manages the communication bandwidth for the second data communication, and after receiving the request for the second data communication, the above-mentioned The information of the space bandwidth of the communication bandwidth is transmitted to the second communication device transmitting the request for the second data communication.
根據本發明,可不包括對從屬裝置儲存傳送中斷處理等之資料的緩衝器而進行非即時通訊。 According to the present invention, non-immediate communication can be performed without including a buffer for the slave device to store data such as transmission interruption processing.
1‧‧‧CPU 1‧‧‧CPU
2‧‧‧記憶體 2‧‧‧Memory
3‧‧‧記憶裝置 3‧‧‧Memory device
4‧‧‧通訊裝置 4‧‧‧ communication device
5‧‧‧輸入裝置 5‧‧‧ input device
6‧‧‧顯示裝置 6‧‧‧ display device
100‧‧‧主裝置 100‧‧‧ main device
110‧‧‧網路介面部 110‧‧‧ Face
110a‧‧‧網路介面部 110a‧‧‧Interface
110b‧‧‧網路介面部 110b‧‧‧Interface
120‧‧‧傳訊控制部 120‧‧‧Communication Control Department
121‧‧‧即時傳訊控制部 121‧‧‧Real-time messaging control department
122‧‧‧非即時傳訊控制部 122‧‧‧ Non-instant messaging control department
123‧‧‧非即時傳訊管理部 123‧‧‧Non-real-time messaging management department
124‧‧‧通訊訊框產生部 124‧‧‧Communication frame generation department
130‧‧‧收訊控制部 130‧‧‧Receiving Control Department
140‧‧‧通訊週期控制部 140‧‧‧communication cycle control department
200‧‧‧從屬裝置 200‧‧‧ Slave
200a‧‧‧從屬裝置a 200a‧‧‧ slave devicea
200b‧‧‧從屬裝置b 200b‧‧‧ slave device b
200c‧‧‧從屬裝置c 200c‧‧‧ Slave c
210‧‧‧網路介面部 210‧‧‧ Face
210a‧‧‧網路介面部 210a‧‧‧Interface
210b‧‧‧網路介面部 210b‧‧‧Interface
220‧‧‧傳訊控制部 220‧‧‧Communication Control Department
221‧‧‧即時傳訊控制部 221‧‧‧Real-time messaging control department
222‧‧‧非即時傳訊控制部 222‧‧‧ Non-immediate messaging control department
223‧‧‧通訊訊框產生部 223‧‧‧Communication frame generation department
230‧‧‧收訊控制部 230‧‧‧Receiving Control Department
240‧‧‧通訊週期控制部 240‧‧‧communication cycle control department
500‧‧‧通訊系統 500‧‧‧communication system
第1圖為本實施型態之通訊系統的構造圖的其中一例。 FIG. 1 is an example of a structure diagram of a communication system according to this embodiment.
第2圖為本實施型態之主裝置、從屬裝置的硬體構造圖的其中一例。 FIG. 2 is an example of a hardware configuration diagram of a master device and a slave device in this embodiment.
第3圖為本實施型態之主裝置的機能構造圖的其中一例。 FIG. 3 is an example of a functional configuration diagram of the master device of this embodiment.
第4圖為本實施型態之非即時通訊頻寬表的其中一例。 FIG. 4 is an example of a non-immediate communication bandwidth meter according to the embodiment.
第5圖為表示本實施型態之非即時傳送管理部123之處理的流程圖。 FIG. 5 is a flowchart showing the processing of the non-immediate transmission management unit 123 in this embodiment.
第6圖為本實施型態之從屬裝置的機能構造圖的其中一例。 FIG. 6 is an example of a functional structure diagram of a slave device according to this embodiment.
第7圖為表示本實施型態之非即時傳訊控制部222之處理的流程圖。 FIG. 7 is a flowchart showing the processing of the non-immediate messaging control unit 222 in this embodiment.
第8圖為表示本實施型態之通訊訊框產生部206之處理的流程圖。 FIG. 8 is a flowchart showing the processing of the communication frame generating unit 206 in this embodiment.
第9圖為表示本實施型態之非即時通訊訊框之構造之其中一例的圖。 FIG. 9 is a diagram showing an example of a structure of a non-immediate communication frame of this embodiment.
第10圖為本實施型態之通訊系統的通訊流程圖的其中一例。 FIG. 10 is an example of a communication flowchart of a communication system of this embodiment.
第11圖為本實施型態之複數個從屬裝置在同一週期傳送傳送請求時的通訊流程圖的其中一例。 FIG. 11 is an example of a communication flowchart when a plurality of slave devices transmit a transmission request in the same embodiment.
實施本發明的最適當型態如下所示。此外,發明的內容不受以下所記述之內容的限定。 The most suitable mode for carrying out the present invention is shown below. The content of the invention is not limited by the content described below.
第1實施型態. 1st implementation type.
在第1圖中,表示本實施型態之通訊系統500的構造的其中一例。 FIG. 1 shows an example of the structure of a communication system 500 according to this embodiment.
如第1圖所示,通訊系統500為線形網路,包括主裝置(第一通訊裝置)100及複數個從屬裝置(第二通訊裝置)200。此外,在第1圖中,有由從屬裝置200a、從屬裝置200b、從屬裝置200c所構成的範例,以下將針對此進行敘述。 As shown in FIG. 1, the communication system 500 is a linear network and includes a master device (first communication device) 100 and a plurality of slave devices (second communication device) 200. In addition, in FIG. 1, there are examples in which the slave device 200a, the slave device 200b, and the slave device 200c are configured, which will be described below.
此外,連接主裝置100與複數個從屬裝置200的網路可為第1圖所示的線形網路,亦可為環形、星形、匯流排形等其它形狀的網路,這些網路皆可適用本實施型態。 In addition, the network connecting the master device 100 and the plurality of slave devices 200 may be a linear network as shown in FIG. 1, or a network of other shapes such as a ring, a star, and a bus. These networks may be This embodiment is applicable.
主裝置100週期性地傳送含有對從屬裝置200之控制指令的即時通訊(第一資料通訊)資料,各從屬裝置200對主裝置100週期性地傳送含有對控制指令回應的即時通訊資料。 The master device 100 periodically transmits instant messaging (first data communication) data containing a control instruction to the slave device 200, and each slave device 200 periodically transmits instant messaging data containing a response to the control instruction to the master device 100.
又,主裝置100及從屬裝置200非週期地實施不含控制指令之網際網路通訊協定(IP)通訊等非即時通訊(第二資料通訊)資料的收發。 In addition, the master device 100 and the slave device 200 aperiodically transmit and receive non-immediate communication (second data communication) data such as Internet Protocol (IP) communication without a control instruction.
本實施型態之主裝置100、從屬裝置200的硬體構造例如第2圖所示。各裝置由CPU1、記憶體2、記憶裝置3、通訊裝置4、輸入裝置5及顯示裝置6所構成。 A hardware structure example of the master device 100 and the slave device 200 in this embodiment is shown in FIG. 2. Each device includes a CPU 1, a memory 2, a memory device 3, a communication device 4, an input device 5, and a display device 6.
CPU1執行程式。更具體地說,就主裝置100而言,CPU1執行用來實現主裝置100之機能構成要素的程式,就從屬裝置200而言,CPU1執行用來實現從屬裝置200之機能構成要素的程式。 CPU1 executes the program. More specifically, in the case of the master device 100, the CPU 1 executes a program for realizing the functional components of the master device 100, and in the case of the slave device 200, the CPU 1 executes a program for realizing the functional components of the slave device 200.
記憶體2為揮發性的記憶裝置,具體地說,為RAM(隨機存取記憶體)。 The memory 2 is a volatile memory device, specifically, a RAM (Random Access Memory).
記憶裝置3為非揮發性的記憶裝置,其可為 HDD(硬碟)、快閃記憶體等。 The memory device 3 is a non-volatile memory device, which may be HDD (hard disk), flash memory, etc.
CPU1所執行的程式被儲存在記憶裝置3中,被載入記憶體2,由CPU1來執行。 The program executed by the CPU 1 is stored in the memory device 3, loaded into the memory 2, and executed by the CPU 1.
通訊裝置4為用來與其它裝置收發訊的電路,可為大型積體電路(LSI)、現場可程式閘陣列(FPGA)等。 The communication device 4 is a circuit for transmitting and receiving with other devices, and may be a large-scale integrated circuit (LSI), a field programmable gate array (FPGA), or the like.
輸出入裝置5為連接主裝置、從屬裝置的裝置,可為伺服馬達等。 The input / output device 5 is a device connected to a master device and a slave device, and may be a servo motor or the like.
此外,本構造不受此一例限定,亦可為其他構造。 In addition, this structure is not limited to this example, and may be another structure.
本實施型態中的主裝置100的機能構造圖如第3圖所示。 A functional configuration diagram of the main device 100 in this embodiment mode is shown in FIG. 3.
主裝置100由網路介面部110、傳訊控制部120、收訊控制部130、通訊週期控制部140所構成。 The main device 100 includes a network interface 110, a messaging control unit 120, a reception control unit 130, and a communication cycle control unit 140.
此外,本實施型態中的主裝置100可作為跨越複數個網路而連接的橋接裝置。因此,雖然即將說明第3圖所示的主裝置100由網路介面部110a及網路介面部110b構成的情況,但實際上網路介面部110可以只有一個或2個以上。 In addition, the master device 100 in this embodiment can be used as a bridge device connected across a plurality of networks. Therefore, although the case where the host device 100 shown in FIG. 3 is composed of the network interface portion 110a and the network interface portion 110b will be described, in reality, the network interface portion 110 may have only one or two or more.
網路介面部110與網路連接,對其它節點進行通訊訊框的接收及傳送。 The network interface 110 is connected to the network and receives and transmits communication frames to other nodes.
網路介面部110對網路傳送由傳訊控制部120轉送的通訊訊框。又,網路介面部110接收來自網路的通訊訊框,解析收訊訊框的資料。 The network interface 110 transmits a communication frame forwarded by the messaging control unit 120 to the network. In addition, the network interface 110 receives a communication frame from the network and analyzes data of the receiving frame.
收訊訊框的資料被解析後,若為以主裝置100為目的地的單點傳播訊框或以主裝置100所屬的多點傳播群組為目的地的多點傳播訊框或廣播訊框,網路介面部110將收訊資料轉送到 收訊控制部130。 After the data of the receiving frame is parsed, if it is a unicast frame with the host device 100 as the destination or a multicast group or broadcast frame with the multicast group to which the host device 100 belongs as the destination , The network interface 110 forwards the received data to Receive control unit 130.
又,收訊訊框的資料被解析後,若為非即時傳訊請求情報的通知或收訊訊框從另一網路介面中繼傳送的資料(傳送至其它裝置的訊框,或者,多點傳送或廣播的訊框),網路介面部110對傳訊控制部120轉送收訊資料。 In addition, after the data of the receiving frame is parsed, if it is a non-real-time messaging request for information notification or the receiving frame relays the data transmitted from another network interface (the frame sent to other devices, or multiple points) Frame sent or broadcasted), the network interface 110 forwards the received data to the messaging control unit 120.
傳訊控制部120由即時傳訊控制部121、非即時傳訊控制部122、非即時傳訊管理部(傳訊管理部)123及通訊訊框產生部124所構成。 The messaging control section 120 includes an instant messaging control section 121, a non-immediate messaging control section 122, a non-immediate messaging management section (messaging management section) 123, and a communication frame generating section 124.
即時傳訊控制部121藉由比較從通訊週期控制部140通知的時間情報及現在的時刻,判斷是否為傳送即時資料的時間。 The instant messaging control unit 121 compares the time information notified from the communication cycle control unit 140 with the current time to determine whether it is time to transmit real-time data.
若判斷為傳送即時資料的時間,即時傳訊控制部121將即時資料轉送至通訊訊框產生部124。 If it is determined that the real-time data is transmitted, the real-time messaging control unit 121 forwards the real-time data to the communication frame generating unit 124.
在非即時傳訊控制部122中,在有需要傳送之非即時通訊資料的情況下,比較從通訊週期控制部140通知的時間情報和從非即時傳訊管理部123通知的空頻寬情報,主裝置100若判斷出為可傳送的時間,便將欲傳送之非即時資料轉送至通訊訊框產生部124。 The non-immediate messaging control unit 122 compares the time information notified from the communication cycle control unit 140 with the air-bandwidth information notified by the non-immediate messaging management unit 123 when there is non-immediate communication data to be transmitted. If it is determined that the time can be transmitted, the non-real-time data to be transmitted is forwarded to the communication frame generating unit 124.
非即時傳訊管理部123在從網路介面部110轉送的收訊訊框的資料為來自從屬裝置的非即時傳訊請求情報的情況下,進行非即時傳訊頻寬的管理。 The non-immediate messaging management unit 123 manages the non-immediate messaging bandwidth when the data of the receiving frame transmitted from the network interface 110 is non-immediate messaging request information from the slave device.
所謂非即時傳訊頻寬,是指在通訊週期內的即時通訊用之頻寬以外的頻寬。亦即,在非即時傳訊管理部,各通訊週期的可使用非即時通訊頻寬可在如第4圖所示的非即時通訊頻寬表 進行管理,對從屬裝置進行非即時傳訊頻寬的分配。 The so-called non-instant messaging bandwidth refers to a bandwidth other than the bandwidth used for instant messaging during the communication cycle. That is, in the non-immediate messaging management department, the available non-immediate communication bandwidth for each communication cycle can be shown in the non-immediate communication bandwidth table shown in FIG. 4 Manage and allocate non-immediate messaging bandwidth to slave devices.
在此使用第5圖說明非即時傳訊管理部123所進行的「非即時傳訊頻寬的管理」。 Here, the "management of non-immediate messaging bandwidth" performed by the non-immediate messaging management unit 123 will be described using FIG. 5.
非即時傳訊管理部123判斷從從屬裝置200接收的收訊訊框是否為非即時傳訊請求(S301)。 The non-immediate messaging management unit 123 determines whether the receiving frame received from the slave device 200 is a non-immediate messaging request (S301).
所接收的收訊訊框為非即時傳訊請求時(S301:YES),非即時傳訊管理部123檢索各通訊週期內的空頻寬,將空頻寬分配至該非即時傳訊請求端(S302)。 When the received message frame is a non-immediate messaging request (S301: YES), the non-immediate messaging management unit 123 retrieves the empty bandwidth in each communication cycle and allocates the empty bandwidth to the non-immediate messaging requester (S302).
例如,各通訊週期中尚未使用於即時通訊且目前為止未被分配至從屬裝置200的非即時傳訊用之通訊頻寬被分配至該非即時傳訊請求從屬裝置。 For example, in each communication cycle, a communication bandwidth for non-immediate messaging that has not been used for instant messaging and has not been allocated to the slave device 200 so far is allocated to the non-immediate messaging request slave device.
非即時傳訊管理部123將被分配的頻寬情報及被分配的ID作為非即時傳訊許可情報,對通訊訊框產生部124給予通知(S303)。又,非即時傳訊許可情報可為第4圖的通訊週期編號。又,亦可為自時刻情報、非即時傳訊許可情報傳送至從屬裝置的週期以來的經過週期數。 The non-immediate messaging management unit 123 uses the allocated bandwidth information and the assigned ID as non-immediate messaging permission information, and notifies the communication frame generating unit 124 (S303). The non-immediate messaging permission information may be a communication cycle number in FIG. 4. In addition, it may be the number of elapsed cycles since the cycle in which time information and non-immediate messaging permission information were transmitted to the slave device.
接受到的收訊訊框若不是非即時傳訊請求(S301:NO),非即時傳訊管理部123便反覆收訊訊框的接收(S301)。 If the received receiving frame is not a non-immediate messaging request (S301: NO), the non-instant messaging management unit 123 repeatedly receives the receiving frame (S301).
通訊訊框產生部124在從即時傳訊控制部121或非即時傳訊控制部122有收訊資料轉送的情況下,產生通訊訊框,對網路介面部110轉送通訊訊框。 The communication frame generating unit 124 generates a communication frame when the received data is transferred from the instant messaging control unit 121 or the non-immediate messaging control unit 122, and transfers the communication frame to the network interface 110.
此外,當產生通訊訊框時,若從非即時通訊管理部123有非即時傳訊許可情報的通知,在該從屬裝置(請求非傳訊的從屬裝置)端的即時通訊訊框的訊框標頭或非即時傳訊訊框中儲 存非即時傳訊許可情報。 In addition, when a communication frame is generated, if there is a notification of non-immediate messaging permission information from the non-immediate communication management section 123, the frame header or non- Instant messaging box Store non-instant messaging permission information.
收訊控制部130將從網路介面部110轉送的資料除存在記憶體2或記憶裝置3中。 The receiving control unit 130 stores the data transferred from the network interface 110 in the memory 2 or the storage device 3.
通訊週期控制部140進行在通訊系統500唯一設定的通訊週期情報的管理。所謂通訊週期情報,可為以絕對時刻為基準來設定的主裝置可傳訊時間(通訊頻寬)的情報,或開始傳送即時資料的時點情報。該通訊週期情報會給予傳訊控制部120通知。 The communication cycle control unit 140 manages communication cycle information uniquely set in the communication system 500. The communication cycle information may be information on a master device's transmission time (communication bandwidth) set on the basis of an absolute time, or point-in-time information that starts transmitting real-time data. The communication cycle information is notified to the messaging control unit 120.
通訊週期情報為使用者所設定的值,其為被程式化之後載入記憶體的值。 The communication cycle information is a value set by the user, which is a value loaded into memory after being programmed.
本實施型態中的從屬裝置200的機能構造圖如第6圖所示。 A functional configuration diagram of the slave device 200 in this embodiment is shown in FIG. 6.
從屬裝置200由網路介面部210、傳訊控制部220、收訊控制部230、通訊週期控制部240所構成。 The slave device 200 includes a network interface section 210, a messaging control section 220, a reception control section 230, and a communication cycle control section 240.
此外,本實施型態中的從屬裝置200和主裝置100的狀況相同,亦可作為跨越複數個網路而連接的橋接裝置。因此,關於第6圖所示的從屬裝置200,將說明其由網路介面部210a及網路介面部210b構成的情況,但網路介面部210可為一個,亦可為2個以上。 In addition, the slave device 200 and the master device 100 in the present embodiment have the same status, and can also be used as a bridge device connected across a plurality of networks. Therefore, the slave device 200 shown in FIG. 6 will be described in terms of a network interface portion 210a and a network interface portion 210b. However, the network interface portion 210 may be one or more than two.
網路介面部210與網路連接,對其它節點進行通訊訊框的接收及傳送。 The network interface 210 is connected to the network and receives and transmits communication frames to other nodes.
網路介面部210對往路傳送由傳訊控制部220轉送的通訊訊框。又,網路介面部210接收來自網路的通訊訊框,解析收訊訊框的資料。 The network interface unit 210 transmits a communication frame forwarded by the messaging control unit 220 to the destination. In addition, the network interface 210 receives a communication frame from the network and analyzes data of the receiving frame.
收訊訊框的資料被解析後,若從屬裝置為應接收之訊框,網路介面部210對收訊控制部230轉送收訊資料。 After the data of the receiving frame is parsed, if the slave device is the frame that should be received, the network interface 210 transmits the receiving data to the receiving control unit 230.
又,收訊訊框的資料被解析後,若為非即時傳訊請求情報的通知或收訊訊框從另一網路介面中繼傳送的資料(傳送至其它裝置的訊框,或者,多點傳送或廣播的訊框),對另一網路介面部轉送收訊訊框。 In addition, after the data of the receiving frame is parsed, if it is a non-real-time messaging request for information notification or the receiving frame relays the data transmitted from another network interface (the frame sent to other devices, or multiple points) Send or broadcast frame), and forward the receive frame to another network interface.
傳訊控制部220由即時傳訊控制部(第一傳訊控制部)221、非即時傳訊控制部(第二傳訊控制部)222及通訊訊框產生部223所構成。 The messaging control unit 220 is composed of an instant messaging control unit (first messaging control unit) 221, a non-instant messaging control unit (second messaging control unit) 222, and a communication frame generation unit 223.
收訊控制部230與在第3圖中所說明的主裝置100的收訊控制部130相同。 The reception control unit 230 is the same as the reception control unit 130 of the main device 100 described in FIG. 3.
即時傳訊控制部221與主裝置的即時傳訊控制部121相同。 The instant messaging control unit 221 is the same as the instant messaging control unit 121 of the host device.
非即時傳訊控制部222的處理流程如第7圖所示。 The processing flow of the non-immediate messaging control unit 222 is shown in FIG. 7.
非即時傳訊控制部222判斷從屬裝置200中是否有非即時傳訊請求(S501)。例如,非即時傳訊請求從CPU進行通知。 The non-immediate messaging control unit 222 determines whether there is a non-immediate messaging request in the slave device 200 (S501). For example, non-instant messaging requests notification from the CPU.
若有非即時傳訊請求(S501:YES),非即時傳訊控制部222對通訊訊框產生部223通知傳訊請求情報(S502)。 If there is a non-immediate messaging request (S501: YES), the non-immediate messaging control section 222 notifies the communication frame generating section 223 of the messaging request information (S502).
傳訊請求情報可為欲傳送的訊框數、該訊框的優先性情報等。 The messaging request information may be the number of frames to be transmitted, priority information of the frame, and the like.
非即時傳訊控制部222在對通訊訊框產生部223通知傳訊請求情報後,接著,從網路介面部210接收收訊訊框(S503)。 The non-immediate messaging control unit 222 notifies the communication frame generating unit 223 of the messaging request information, and then receives a receiving frame from the network interface 210 (S503).
若從網路介面部210取得非即時通訊許可情報(S503:YES),非即時傳訊控制部222根據該許可情報,將非即 時資料轉送至通訊訊框產生部223。 If the non-immediate communication permission information is obtained from the network interface 210 (S503: YES), the non-immediate communication control unit 222 will not immediately The time data is transferred to the communication frame generating section 223.
通訊訊框產生部223的處理流程如第8圖所示。 The processing flow of the communication frame generating unit 223 is shown in FIG. 8.
通訊訊框產生部223若有即時傳訊控制部221或非即時傳訊控制部222的轉送資料,便會啟動。 If the communication frame generating unit 223 has the transfer data of the instant messaging control unit 221 or the non-immediate messaging control unit 222, it will be activated.
所接收的資料若有從非即時傳訊控制部222的轉送資料(S602:非即時),通訊訊框產生部223產生非即時通訊訊框(S603),將其轉送至網路介面部210(S604)。在第9圖中,表示非即時通訊訊框的構造的其中一例。 If the received data is transferred from the non-immediate messaging control section 222 (S602: non-real-time), the communication frame generating section 223 generates a non-immediate communication frame (S603) and transfers it to the network interface 210 (S604 ). FIG. 9 shows an example of the structure of a non-IM frame.
非即時通訊訊框若為乙太網路(註冊商標)等,會藉由乙太網路型態(Ethernet Type)來識別即時通訊訊框。乙太網路通訊協定資料單元(Ethernet PDU)內可設定即時資料及非即時資料的識別區域來進行識別。 If the non-immediate communication frame is an Ethernet (registered trademark), etc., the instant communication frame will be identified by the Ethernet type. The identification area of real-time data and non-real-time data can be set in the Ethernet PDU for identification.
接收到的資料若為來自即時傳訊控制部221的轉送資料(S602:即時),通訊訊框產生部223產生即時資料訊框(S605)。 If the received data is transfer data from the instant messaging control section 221 (S602: real-time), the communication frame generating section 223 generates a real-time data frame (S605).
接著,通訊訊框產生部223進行轉送資料是否含有非即時傳訊請求情報的判斷(S606)。 Next, the communication frame generating unit 223 determines whether the transferred data contains non-real-time messaging request information (S606).
若轉送資料含有非即時傳訊請求情報(S606:YES),通訊訊框產生部223在欲產生的即時通訊訊框的標頭情報中儲存非即時傳訊請求情報(S607)。 If the transferred data contains non-immediate messaging request information (S606: YES), the communication frame generating unit 223 stores the non-immediate messaging request information in the header information of the instant messaging frame to be generated (S607).
若轉送資料不含有非即時傳訊請求情報(S606:NO),通訊訊框產生部223會儲存所產生之即時通訊訊框之標頭情報中不含有非即時傳訊請求的內容(S608)。 If the forwarded data does not contain non-immediate messaging request information (S606: NO), the communication frame generating unit 223 stores the header information of the generated instant messaging frame without the content of non-immediate messaging request (S608).
通訊訊框產生部223將已產生的即時通訊訊框轉送至網路介面部210(S609)。 The communication frame generation unit 223 forwards the generated instant communication frame to the network interface 210 (S609).
通訊週期控制部240與主裝置100的通訊週期控制部140相同。 The communication cycle control unit 240 is the same as the communication cycle control unit 140 of the host device 100.
接著,將使用第10圖及第11圖,說明通訊流程。在第10圖及第11圖中,與在第1圖所說明過的相同,將敘述具有主裝置100、從屬裝置200a、從屬裝置200b、從屬裝置200c的範例。 Next, the communication flow will be described using FIG. 10 and FIG. 11. In Figs. 10 and 11, as in Fig. 1, an example having a master device 100, a slave device 200a, a slave device 200b, and a slave device 200c will be described.
主裝置100以既定週期進行對各從屬裝置的即時通訊(向下通訊),各從屬裝置對主裝置100,進行向上通訊的即時通訊。 The master device 100 performs instant communication (down communication) to each slave device at a predetermined cycle, and each slave device performs instant communication to the master device 100 for upward communication.
通訊週期由使用者來設定。例如,若將通訊週期設定為1ms,700μs作為即時通訊的頻寬,剩下的300μs作為可使用於非即時通訊的頻寬。這些時間可從整個系統的即時通訊資料量來算出。 The communication cycle is set by the user. For example, if the communication period is set to 1 ms, 700 μs is used as the bandwidth of the instant communication, and the remaining 300 μs is used as the bandwidth available for non-immediate communication. These times can be calculated from the amount of IM data in the entire system.
在此以僅有從屬裝置200b實施非即時傳訊為例,使用第10圖來進行說明。 Here, taking only the slave device 200b to perform non-real-time messaging as an example, description is made using FIG. 10.
從屬裝置200b針對即時通訊訊框,將表達出欲進行1500位元組之非即時通訊資料之傳送的非即時傳訊請求情報,儲存於即時通訊訊框的標頭部中(701)。 For the instant messaging frame, the slave device 200b stores the non- instant messaging request information expressing the desire to transmit 1500 bytes of non- instant messaging data in the header of the instant messaging frame (701).
接收到儲存有非即時傳訊請求資料之即時通訊訊框的主裝置100將第4圖所示的通訊週期和從可使用於非即時通訊之頻寬許可傳送的頻寬分配至從屬裝置200b。在此,通訊週期編號12的頻寬分配至從屬裝置200b。 The master device 100 that has received the instant messaging frame storing the non-immediate messaging request data allocates the communication cycle shown in FIG. 4 and the bandwidth from the bandwidth permission transmission that can be used for non- instant messaging to the slave device 200b. Here, the bandwidth of the communication cycle number 12 is allocated to the slave device 200b.
此被分配的頻寬作為非即時傳訊許可情報,儲存至即時通訊訊框的標頭情報中,被傳送至從屬裝置200b(702)。 The allocated bandwidth is stored as non-instant messaging permission information in the header information of the instant messaging frame and transmitted to the slave device 200b (702).
例如,被分配的頻寬若許可1個週期以後的傳送,作為非 即時傳訊許可情報,可儲存從傳送傳訊許可通知之通訊週期(通訊週期編號11)以來的經過通訊週期(通訊週期編號12的頻寬已被分配,所以經過通訊週期為1)(在圖內,1個週期後作為傳訊許可)。 For example, if the allocated bandwidth allows transmission after one cycle, Real-time messaging permission information can store the communication cycle (communication cycle number 12 bandwidth has been allocated since the communication cycle (communication cycle number 11) from which the communication permission notification was sent, so the communication cycle is 1) (in the figure, After 1 cycle as a messaging permission).
已接收主裝置100傳送出之非即時傳訊許可情報的從屬裝置200b在接收非即時傳訊許可情報的通訊週期的1個週期後,實施非即時傳訊(703)。 The slave device 200b that has received the non-immediate messaging permission information transmitted from the master device 100 performs non-immediate messaging after one cycle of the communication cycle of receiving the non-immediate messaging permission information (703).
接著,複數個從屬裝置200以同一週期傳送非即時傳訊請求的情況,使用第11圖來說明。 Next, a case where a plurality of slave devices 200 transmit non-immediate messaging requests in the same cycle will be described using FIG. 11.
第11圖說明了從屬裝置200a,200b,200c在同一週期內同時將非即時傳訊請求傳送到主裝置100的情況(801,802,803)。從屬裝置200a,200b,200c分別要求了1500位元組的非即時通訊資料的傳送。 FIG. 11 illustrates a case where the slave devices 200a, 200b, and 200c transmit non-immediate messaging requests to the master device 100 at the same time (801, 802, 803). The slave devices 200a, 200b, and 200c each require the transmission of 1500 bytes of non-IM data.
當主裝置100接收從從屬裝置200a,200b,200c接收非即時傳訊要求時,便參照非即時通訊頻寬表,從各通訊週期中可使用的非即時通訊頻寬,分配頻寬至從屬裝置。 When the master device 100 receives the non-immediate messaging request from the slave devices 200a, 200b, 200c, it refers to the non-immediate communication bandwidth table and allocates the bandwidth from the non-immediate communication bandwidth available in each communication cycle to the slave device.
當非即時通訊頻寬表為如第4圖所示的狀態時,主裝置100真對從屬裝置200a和從屬裝置200b,在傳送通訊許可通知的週期(通訊週期編號13)之後的1個週期傳送許可非即時通訊的通知,對從屬裝置200c在2個週期後傳送許可非即時通訊的通知。 When the non-immediate communication bandwidth table is in the state shown in FIG. 4, the master device 100 transmits to the slave device 200a and the slave device 200b one cycle after the cycle of transmitting the communication permission notification (communication cycle number 13). The notification of non-immediate communication is permitted, and the slave device 200c transmits a notification of permission of non-immediate communication after 2 cycles.
從屬裝置200a,從屬裝置200b,從屬裝置200c接收該許可情報。從屬裝置200a及從屬裝置200b在許可通知接收的下一個通訊週期(821,822)進行所要的非即時通訊,從 屬裝置200c在2個週期後進行所要的非即時通訊(823)。 The slave device 200a, the slave device 200b, and the slave device 200c receive the permission information. The slave device 200a and the slave device 200b perform the required non-immediate communication in the next communication cycle (821,822) when the notification of permission is received. The slave device 200c performs desired non-immediate communication after two cycles (823).
此外,當主裝置100從從屬裝置200接收非即時通訊請求而考慮空頻寬時,主裝置100可使接收傳訊要求通知的順序優先,也可通知從屬裝置通訊時點。 In addition, when the master device 100 receives the non-immediate communication request from the slave device 200 and considers the empty bandwidth, the master device 100 may give priority to the order of receiving the messaging request notification, and may also notify the slave device of the communication time point.
又,傳訊要求情報中事先設定表示要優先處理哪個從屬裝置的優先性,主裝置100可比較參照從各從屬裝置傳送過來的優先性,藉此,對優先性高的從屬裝置,許可更早時點的傳訊。 In addition, the communication request information sets in advance the priority indicating which slave device is to be processed in priority. The master device 100 can compare the priority sent from each slave device with reference, thereby allowing the slave device with higher priority to allow earlier time. Messaging.
如上所述,根據本實施型態,當主裝置100從從屬裝置200接收非即時傳訊請求時,從所管理的各通訊週期中的可使用的即時通訊頻寬將頻寬分配至從屬裝置200,傳送通訊許可通知,藉由具有這樣的構造,不需要儲存資料容量大的緩衝記憶體,也不會因非即時通訊而產生對即時通訊的干擾,可保證非即時通訊的頻寬,進而以良好效率實施非即時通訊。 As described above, according to this embodiment, when the master device 100 receives a non-immediate messaging request from the slave device 200, the bandwidth is allocated to the slave device 200 from the available instant messaging bandwidth in each managed communication cycle. The communication permission notification is transmitted. By having such a structure, it does not need a buffer memory with a large capacity for storing data, and it will not interfere with instant communication due to non-immediate communication, which can ensure the bandwidth of non-immediate communication, and Efficient implementation of non-IM.
100‧‧‧主裝置 100‧‧‧ main device
200a‧‧‧從屬裝置a 200a‧‧‧ slave devicea
200b‧‧‧從屬裝置b 200b‧‧‧ slave device b
200c‧‧‧從屬裝置c 200c‧‧‧ Slave c
500‧‧‧通訊系統 500‧‧‧communication system
Claims (3)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP2016/069657 WO2018003117A1 (en) | 2016-07-01 | 2016-07-01 | Communication system and communication method |
| ??PCT/JP2016/069657 | 2016-07-01 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI600335B TWI600335B (en) | 2017-09-21 |
| TW201811083A true TW201811083A (en) | 2018-03-16 |
Family
ID=60719462
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW105123546A TWI600335B (en) | 2016-07-01 | 2016-07-26 | Communication system and communication method |
Country Status (2)
| Country | Link |
|---|---|
| TW (1) | TWI600335B (en) |
| WO (1) | WO2018003117A1 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6977600B2 (en) | 2018-02-14 | 2021-12-08 | オムロン株式会社 | Control devices, control systems, control methods, and control programs |
| JP7712642B2 (en) * | 2019-07-31 | 2025-07-24 | キョーラク株式会社 | packaging bag |
| KR20230175332A (en) * | 2021-06-22 | 2023-12-29 | 미쓰비시덴키 가부시키가이샤 | Communication monitoring system, base station, history management server and communication monitoring method |
| JP7317263B1 (en) * | 2022-10-25 | 2023-07-28 | 三菱電機株式会社 | Data management device, data management system, data management method and program |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1117685A (en) * | 1997-06-20 | 1999-01-22 | Oki Electric Ind Co Ltd | Band management circuit, transmitter and transmission system |
| JPH11341037A (en) * | 1998-05-27 | 1999-12-10 | Hitachi Ltd | Point / multipoint optical transmission system |
| JP3643016B2 (en) * | 2000-06-19 | 2005-04-27 | 三菱電機株式会社 | Optical burst transmission / reception control system, master station apparatus, slave station apparatus and optical burst transmission / reception control method used therefor |
| DE10058524A1 (en) * | 2000-11-24 | 2002-06-13 | Siemens Ag | System and method for the parallel transmission of real-time-critical and non-real-time-critical data via switchable data networks, in particular Ethernet |
| US8228791B2 (en) * | 2006-08-22 | 2012-07-24 | Embarq Holdings Company, Llc | System and method for routing communications between packet networks based on intercarrier agreements |
| WO2010053253A1 (en) * | 2008-11-07 | 2010-05-14 | 엘지전자주식회사 | Method for performing bandwidth request process in wireless communication system |
| JP5876427B2 (en) * | 2013-02-22 | 2016-03-02 | 日本電信電話株式会社 | Optical network system, station side termination device, and subscriber side termination device |
-
2016
- 2016-07-01 WO PCT/JP2016/069657 patent/WO2018003117A1/en not_active Ceased
- 2016-07-26 TW TW105123546A patent/TWI600335B/en not_active IP Right Cessation
Also Published As
| Publication number | Publication date |
|---|---|
| TWI600335B (en) | 2017-09-21 |
| WO2018003117A1 (en) | 2018-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11689606B2 (en) | Communication method, system and apparatus | |
| US11616723B2 (en) | Techniques to reduce network congestion | |
| KR20200037405A (en) | Packet control method and network device | |
| US11621918B2 (en) | Techniques to manage data transmissions | |
| JP6265058B2 (en) | Network transmission system, its master node, slave node | |
| US10797986B2 (en) | Link discovery method and apparatus | |
| TW201811083A (en) | Communication system and communication method | |
| CN104518973A (en) | SDN (software defined network) environment based reliable multicast data transport method | |
| WO2021128927A1 (en) | Message processing method and apparatus, storage medium, and electronic apparatus | |
| US9014211B2 (en) | Reducing the maximum latency of reserved streams | |
| EP4037270B1 (en) | Service traffic adjusting method and apparatus | |
| KR20220027716A (en) | Recording medium | |
| CN112753206B (en) | Method and communication device for data transmission in industrial communication network | |
| WO2019128649A1 (en) | Data stream sending method, device and system | |
| US9083617B2 (en) | Reducing latency of at least one stream that is associated with at least one bandwidth reservation | |
| CN113014498A (en) | Method and device for receiving and transmitting data | |
| CN103326961B (en) | Reserved bandwidth self-adaption method of adjustment based on QoS | |
| JP2017530643A5 (en) | ||
| CN114826952A (en) | Information processing method and device for OAM detection and node equipment | |
| WO2024234750A1 (en) | Congestion control method, apparatus, and system | |
| WO2017000478A1 (en) | Method and device for transmitting service data with microwave link | |
| JP2016082363A (en) | Communication apparatus, information processing apparatus, information processing system, and control method of communication apparatus | |
| CN106161269A (en) | A kind of data pack transmission method, controller and switch | |
| JP2015109532A (en) | Communication system and communication apparatus | |
| WO2019144797A1 (en) | Mesh network flow control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |