TWI472209B - Modem load balance method - Google Patents
Modem load balance method Download PDFInfo
- Publication number
- TWI472209B TWI472209B TW97130280A TW97130280A TWI472209B TW I472209 B TWI472209 B TW I472209B TW 97130280 A TW97130280 A TW 97130280A TW 97130280 A TW97130280 A TW 97130280A TW I472209 B TWI472209 B TW I472209B
- Authority
- TW
- Taiwan
- Prior art keywords
- ucd
- load balancing
- available
- uplink channel
- record
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 45
- 238000004891 communication Methods 0.000 claims description 16
- 238000011144 upstream manufacturing Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Description
本發明涉及一種用於實現數據機負載平衡之方法,特別涉及一種主動式之數據機頭端負載平衡方法。 The invention relates to a method for realizing data load balancing of a data machine, in particular to an active data head end load balancing method.
於常用之通訊網絡如國際互聯網(Internet)或企業內部互聯網(Intranet)之使用過程中,當其中每一台終端完成同步處理後,均需要從數據機頭端系統(Cable Modem Terminal System,CMTS)取得上行頻道描述符(Upstream Channel Descriptor,UCD),並憑藉此UCD選取可用之上行頻道(Upstream Channel)。通過選取適當之上行頻道,可以使該終端對應之數據機(Cable Modem,CM)獲得負載平衡(Load Balance)之穩定工作狀態。 In the use of commonly used communication networks such as the Internet or the intranet, when each terminal completes the synchronization process, it needs to be from the Cable Modem Terminal System (CMTS). Get the Upstream Channel Descriptor (UCD) and use this UCD to select the available Upstream Channel. By selecting the appropriate uplink channel, the corresponding modem (Cable Modem, CM) can obtain the stable working state of Load Balance.
請參閱圖1,現有之使數據機達到負載平衡之方法一般是利用CMTS自身收集所有現有之UCD,然後按照先入先出(First-In First-Out,FIFO)之順序逐個地選取每個UCD所對應之上行頻道。若被選中之UCD並未對應可用之上行頻道,則將該UCD記錄為不可用,繼續選取後續之UCD對應之上行頻道,直到獲得可用之上行頻道為止。此種負載平衡方法一般稱為被動式(Passive)負載平衡方法。 Referring to FIG. 1, the existing method for load balancing the data machine is generally to collect all existing UCDs by using the CMTS itself, and then select each UCD one by one in the order of First-In First-Out (FIFO). Corresponding uplink channel. If the selected UCD does not correspond to the available uplink channel, the UCD is recorded as unavailable, and the uplink channel corresponding to the subsequent UCD is continuously selected until the available uplink channel is obtained. This type of load balancing method is generally referred to as a passive load balancing method.
上述被動式負載平衡方法存於之主要缺點在於,CMTS所連接之數據機及UCD之數量一般都很大,逐個選取所有UCD對應之上行頻道 需要較大之運算量,可能消耗較多之運算時間及系統資源。另外,由於所有數據機均採用相同之順序選取上行頻道,當網路中連接數量較多之數據機時,可能出現多個數據機同時通過CMTS中之同一個UCD選取上行頻道之情況。此時,該UCD對應之上行頻道上之負載將明顯增大,從而可能對網路造成延遲、死機等不良影響。 The main disadvantage of the above passive load balancing method is that the number of data machines and UCDs connected to the CMTS is generally large, and all uplink channels corresponding to the UCD are selected one by one. A large amount of computation is required, which may consume more computing time and system resources. In addition, since all data machines select the uplink channel in the same order, when a large number of data machines are connected in the network, multiple data machines may simultaneously select the uplink channel through the same UCD in the CMTS. At this time, the load on the uplink channel corresponding to the UCD will increase significantly, which may cause delays, crashes, and the like on the network.
有鑒於此,有必要提供一種更有利於減少網路負擔之數據機負載平衡方法。 In view of this, it is necessary to provide a data load balancing method that is more conducive to reducing the network load.
一種數據機負載平衡方法,用於在通訊網絡中實現終端對應之數據機之負載平衡,該方法包括以下步驟:利用該終端於該通訊網絡中收集上行頻道描述符(Upstream Channel Descriptor,UCD);檢測該終端是否存儲有歷史UCD記錄;根據歷史UCD記錄之檢測結果對現有之UCD確定選取範圍;選取該範圍內之UCD所對應之上行頻道,以獲得可用以實現上述數據機之負載平衡之上行頻道;根據選取之結果,將對應不可用之上行頻道之UCD記錄為不可用,將對應可用之上行頻道之UCD記錄為可用。 A data load balancing method for implementing load balancing of a data machine corresponding to a terminal in a communication network, the method comprising the steps of: collecting an Upstream Channel Descriptor (UCD) in the communication network by using the terminal; Detecting whether the terminal stores a historical UCD record; determining a selection range for the existing UCD according to the detection result of the historical UCD record; selecting an uplink channel corresponding to the UCD in the range to obtain an uplink that can be used to achieve load balancing of the data machine. Channel; according to the result of the selection, the UCD corresponding to the unavailable uplink channel is recorded as unavailable, and the UCD corresponding to the available uplink channel is recorded as available.
與習知技術相比,本發明提供之數據機負載平衡方法採用終端主動確定上行頻道之選取範圍,該主動之數據機負載平衡方法有更大之可能性於較小之UCD選取範圍內獲得可用之上行頻道,有利於減少整體運算量,節省系統資源及縮短達到負載平衡所需之時間。 Compared with the prior art, the data load balancing method provided by the present invention uses the terminal to actively determine the selection range of the uplink channel, and the active data load balancing method has a greater possibility to obtain the available in the smaller UCD selection range. The upstream channel helps reduce the overall amount of computing, saves system resources and shortens the time required to achieve load balancing.
100‧‧‧數據機頭端系統 100‧‧‧Data head system
10‧‧‧數據機 10‧‧‧Data machine
20‧‧‧終端 20‧‧‧ Terminal
圖1為現有之數據機負載平衡方法之流程圖。 FIG. 1 is a flow chart of a conventional data load balancing method.
圖2為使用本發明數據機負載平衡方法較佳實施例之通訊網絡之架構圖。 2 is a block diagram of a communication network using a preferred embodiment of the data load balancing method of the present invention.
圖3為本發明數據機負載平衡方法較佳實施例之流程圖。 3 is a flow chart of a preferred embodiment of a data load balancing method of the present invention.
本發明之一個較佳實施例為一種數據機(Cable Modem)之負載平衡方法,用於在通訊網絡中達到其中每一終端使用之數據機之頭端負載平衡。該數據機負載平衡方法可以適用於各種通訊網絡。 A preferred embodiment of the present invention is a load balancing method for a modem (Mable Modem) for achieving head-end load balancing of a data machine used by each terminal in a communication network. The data load balancing method can be applied to various communication networks.
請參閱圖2,一適用本發明較佳實施例之數據機負載平衡方法之通訊網絡100包括至少一數據機頭端系統(Cable Modem Terminal System,CMTS)10及多個終端20,該等終端20可以是個人電腦或其他類型之資料處理裝置,每一終端20均通過一數據機21連接到該CMTS10。使用時,每一終端20均需要利用其對應之數據機21通過CMTS10收集上行頻道描述符(Upstream Channel Descriptor,UCD),並根據所收集之UCD選取相應之上行頻道,通過該上行頻道於該通訊網絡100中傳輸資料。 Referring to FIG. 2, a communication network 100 for a data load balancing method according to a preferred embodiment of the present invention includes at least one Cable Modem Terminal System (CMTS) 10 and a plurality of terminals 20, and the terminals 20 It may be a personal computer or other type of data processing device, and each terminal 20 is connected to the CMTS 10 via a data machine 21. In use, each terminal 20 needs to use its corresponding data machine 21 to collect an Upstream Channel Descriptor (UCD) through the CMTS 10, and select a corresponding uplink channel according to the collected UCD, and use the uplink channel to communicate with the uplink channel. Data is transmitted in the network 100.
圖3為本發明較佳實施例提供之數據機負載平衡方法之流程圖,以下根據該流程圖對該方法之步驟作詳細說明。 FIG. 3 is a flowchart of a data load balancing method according to a preferred embodiment of the present invention. The steps of the method are described in detail below according to the flowchart.
首先,提供一上述之通訊網絡100,於該通訊網絡100中,終端20通過數據機21接入數據機頭端系統10。依照現有方法為該終端20建立必要之信號連接後,即可使用該終端20主動地通過其對應之數據機21從該數據機頭端系統10收集所有現有之UCD。 First, a communication network 100 as described above is provided. In the communication network 100, the terminal 20 accesses the data head system 10 via the data machine 21. After establishing the necessary signal connections for the terminal 20 in accordance with existing methods, the terminal 20 can be used to actively collect all existing UCDs from the data head system 10 through its corresponding data machine 21.
當完成對UCD之收集工作後,首先檢測終端20內部是否存儲有歷史UCD記錄。該歷史UCD記錄係指於前一次使用時由該終端20加以 存儲之,對於對應有可用之上行頻道之UCD之使用歷史記錄。 After the collection of the UCD is completed, it is first detected whether a historical UCD record is stored inside the terminal 20. The historical UCD record is referred to by the terminal 20 when it was used the previous time. Stored, for the usage history of the UCD corresponding to the available upstream channel.
若於檢測歷史UCD記錄時未發現該終端20儲存有歷史UCD記錄,則直接對所有現有之UCD進行選取,按照隨機順序逐個選取所有UCD對應之上行頻道並判斷其是否可用。於該隨機順序之選取過程中,將未對應可用上行頻道之UCD均記錄為不可用。直至獲得可用之上行頻道,則停止選取,使用該上行頻道與通訊網絡100實現資料傳輸,令該終端20對應之數據機該上行頻道達到負載平衡。同時,該終端20將對應于該上行頻道之UCD記錄為可用,並存儲該不可用及可用記錄。若該部分UCD仍然均未對應可用之上行頻道,則該終端20可以顯示連接失敗,以告知使用者排除故障或重新建立連接。 If the historical UCD record is not found in the historical UCD record, all existing UCDs are directly selected, and all uplink channels corresponding to the UCD are selected one by one in a random order and judged whether they are available. During the selection of the random sequence, the UCDs that do not correspond to the available uplink channels are recorded as unavailable. Until the available uplink channel is obtained, the selection is stopped, and the uplink channel is used to implement data transmission with the communication network 100, so that the uplink channel of the data device corresponding to the terminal 20 is load balanced. At the same time, the terminal 20 records the UCD corresponding to the upstream channel as available, and stores the unavailable and available records. If the portion of the UCD still does not correspond to the available uplink channel, the terminal 20 may display a connection failure to inform the user to troubleshoot or re-establish the connection.
若檢測發現終端20內儲存有歷史UCD記錄,則根據該檢測結果,於收集到之所有現有之UCD中進行比對,以確定該等現有UCD是否與該終端20內存儲之之歷史UCD記錄相符合。然後,該終端20根據現有UCD與歷史UCD記錄之比對結果,對現有UCD確定相應之選取範圍,並對該範圍內之UCD進行選取,以獲得可用之上行頻道。具體地,可將本步驟分為以下兩種情況。 If the detection finds that the historical UCD record is stored in the terminal 20, based on the detection result, the existing UCDs are collected for comparison to determine whether the existing UCDs are related to the historical UCD records stored in the terminal 20. meets the. Then, the terminal 20 determines a corresponding selection range for the existing UCD according to the comparison result between the existing UCD and the historical UCD record, and selects the UCD in the range to obtain an available uplink channel. Specifically, this step can be divided into the following two cases.
第一種情況下,若現有UCD與歷史UCD記錄一致,則該終端20即可通過歷史UCD記錄縮小選取範圍。具體做法是根據歷史UCD記錄選取前一次所選用之對應可用上行頻道之UCD,再根據該UCD可以直接選取前一次使數據機21達到平衡所使用之上行頻道,並判斷該上行頻道是否可用。若該上行頻道本次仍然可用,則該終端20停止選取,使用該上行頻道進行資料傳輸,從而使該終端20對應之數據機21通過該上行頻道達到負載平衡。此時該終端20可繼續保 持原有之歷史UCD記錄。 In the first case, if the existing UCD is consistent with the historical UCD record, the terminal 20 can narrow down the selection range by the historical UCD record. The specific method is to select the UCD corresponding to the available uplink channel selected according to the historical UCD record, and then according to the UCD, directly select the uplink channel used by the data machine 21 to balance the previous time, and determine whether the uplink channel is available. If the uplink channel is still available, the terminal 20 stops selecting and uses the uplink channel to perform data transmission, so that the data machine 21 corresponding to the terminal 20 achieves load balancing through the uplink channel. At this time, the terminal 20 can continue to protect Hold the original historical UCD record.
若該上行頻道本次並不可用,則重新將該UCD記錄為不可用,接著繼續對其他現有之UCD進行選取,選取時按照隨機順序逐個選取所有其他現有之UCD對應之上行頻道並判斷其是否可用。於該隨機順序之選取過程中,將未對應可用上行頻道之UCD均記錄為不可用。直至獲得到可用之上行頻道,則結束選取,使用該上行頻道與通訊網絡100實現資料傳輸,令該終端20對應之數據機21通過該上行頻道達到負載平衡。同時,該終端20將對應於該上行頻道之UCD記錄為可用,並存儲該記錄。另外,若其他現有之UCD亦均未對應可用之上行頻道,則該終端20可以顯示連接失敗,以告知使用者排除故障或重新建立連接。 If the uplink channel is not available at this time, the UCD is re-recorded as unavailable, and then the other existing UCDs are selected. When selecting, the uplink channels corresponding to all other existing UCDs are selected one by one in a random order and judged whether it is Available. During the selection of the random sequence, the UCDs that do not correspond to the available uplink channels are recorded as unavailable. Until the available uplink channel is obtained, the selection is ended, and the data transmission is implemented by using the uplink channel and the communication network 100, so that the data machine 21 corresponding to the terminal 20 achieves load balancing through the uplink channel. At the same time, the terminal 20 records the UCD corresponding to the upstream channel as available, and stores the record. In addition, if none of the other existing UCDs correspond to the available uplink channel, the terminal 20 may display a connection failure to inform the user to troubleshoot or re-establish the connection.
第二種情況下,若現有UCD與歷史UCD記錄不一致,此時後續步驟與未發現該終端20儲存有歷史UCD記錄時之情況相似,直接按照隨機順序逐個選取所有現有之UCD對應之上行頻道並判斷其是否可用。於該隨機順序之選取過程中,將未對應可用上行頻道之UCD均記錄為不可用。直至獲得可用之上行頻道,則停止選取,使用該上行頻道與通訊網絡100實現資料傳輸,令該終端20對應之數據機21通過該上行頻道達到負載平衡。同時,該終端20將對應于該上行頻道之UCD記錄為可用,並存儲該不可用及可用記錄。若所有現有之UCD均未對應可用之上行頻道,則該終端20可以顯示連接失敗,以告知使用者排除故障或重新建立連接。 In the second case, if the existing UCD is inconsistent with the historical UCD record, the subsequent steps are similar to the case where the historical UCD record is not found in the terminal 20, and all the uplink channels corresponding to the existing UCD are directly selected in a random order and Determine if it is available. During the selection of the random sequence, the UCDs that do not correspond to the available uplink channels are recorded as unavailable. Until the available uplink channel is obtained, the selection is stopped, and the uplink channel is used to implement data transmission with the communication network 100, so that the data machine 21 corresponding to the terminal 20 achieves load balancing through the uplink channel. At the same time, the terminal 20 records the UCD corresponding to the upstream channel as available, and stores the unavailable and available records. If all of the existing UCDs do not correspond to the available upstream channel, the terminal 20 can display a connection failure to inform the user to troubleshoot or re-establish the connection.
可以理解,若一終端20對應之數據機21曾經使用過上述之數據機負載平衡方法獲得了可用之上行頻道,則該終端20內將至少存儲有一條對應可用上行頻道之UCD之記錄。當該終端20再次使用該 方法從通訊網絡100中選取上行頻道時,即可優先通過該部分具有可用記錄之UCD選取上行頻道。 It can be understood that if the data machine 21 corresponding to the terminal 20 has used the above-mentioned data load balancing method to obtain the available uplink channel, the terminal 20 will store at least one record of the UCD corresponding to the available uplink channel. When the terminal 20 uses the When the method selects an uplink channel from the communication network 100, the uplink channel can be preferentially selected by the UCD having the available record in the portion.
可以理解,本發明實施例中提供之數據機負載平衡方法可以使用終端20通過數據機21主動地收集及處理UCD,從而降低CMTS10之負擔。終端20內存儲UCD可用記錄後,於通過UCD選取上行頻道之過程中可以優先選取具有可用記錄的,亦即數據機21曾經成功使用過之上行頻道。這樣,可以有更大之可能性於較小之選取範圍內獲得對應可用上行頻道之UCD,從而可以儘量縮小選取範圍,有利於減少整體運算量,節省系統資源及縮短達到負載平衡所需之時間。另外,當可用記錄範圍內之UCD均未對應可用上行頻道時,本發明提供之方法採用隨機順序選取所有未存儲記錄之UCD對應之上行頻道,有利於避免出現多個數據機21同時通過同一UCD選取上行頻道之情況,從而減輕網路負載,降低出現延遲、死機等故障之風險。 It can be understood that the data load balancing method provided in the embodiment of the present invention can use the terminal 20 to actively collect and process the UCD through the data machine 21, thereby reducing the burden on the CMTS 10. After the UCD available record is stored in the terminal 20, the uplink channel can be preferentially selected in the process of selecting the uplink channel through the UCD, that is, the uplink channel that the data machine 21 has successfully used. In this way, there is a greater possibility that the UCD corresponding to the available uplink channel can be obtained in a smaller selection range, so that the selection range can be minimized, which is beneficial to reducing the overall calculation amount, saving system resources and shortening the time required for load balancing. . In addition, when the available UCDs in the available recording range do not correspond to the available uplink channels, the method provided by the present invention selects the uplink channels corresponding to the UCDs that do not store the records in a random order, which is beneficial to prevent multiple data machines 21 from simultaneously passing through the same UCD. Select the uplink channel to reduce network load and reduce the risk of delays, crashes and other failures.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.
100‧‧‧數據機頭端系統 100‧‧‧Data head system
10‧‧‧數據機 10‧‧‧Data machine
20‧‧‧終端 20‧‧‧ Terminal
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW97130280A TWI472209B (en) | 2008-08-08 | 2008-08-08 | Modem load balance method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW97130280A TWI472209B (en) | 2008-08-08 | 2008-08-08 | Modem load balance method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201008200A TW201008200A (en) | 2010-02-16 |
| TWI472209B true TWI472209B (en) | 2015-02-01 |
Family
ID=44827357
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW97130280A TWI472209B (en) | 2008-08-08 | 2008-08-08 | Modem load balance method |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI472209B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040095963A1 (en) * | 2002-11-15 | 2004-05-20 | Rakib Selim Shlomo | Process for sharing an upstream among multiple downstreams |
| US20050025145A1 (en) * | 2002-11-15 | 2005-02-03 | Rakib Selim Shlomo | Cable modem termination system with flexible addition of single upstreams or downstreams |
| US6898755B1 (en) * | 2001-08-24 | 2005-05-24 | Juniper Networks, Inc. | Method for increasing physical layer flexibility in cable modem systems |
| US20060117363A1 (en) * | 1999-06-10 | 2006-06-01 | Cisco Technology, Inc. | Data transmission over multiple upstream channels within a cable modem system |
-
2008
- 2008-08-08 TW TW97130280A patent/TWI472209B/en not_active IP Right Cessation
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060117363A1 (en) * | 1999-06-10 | 2006-06-01 | Cisco Technology, Inc. | Data transmission over multiple upstream channels within a cable modem system |
| US6898755B1 (en) * | 2001-08-24 | 2005-05-24 | Juniper Networks, Inc. | Method for increasing physical layer flexibility in cable modem systems |
| US20040095963A1 (en) * | 2002-11-15 | 2004-05-20 | Rakib Selim Shlomo | Process for sharing an upstream among multiple downstreams |
| US20050025145A1 (en) * | 2002-11-15 | 2005-02-03 | Rakib Selim Shlomo | Cable modem termination system with flexible addition of single upstreams or downstreams |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201008200A (en) | 2010-02-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8135979B2 (en) | Collecting network-level packets into a data structure in response to an abnormal condition | |
| US9077448B2 (en) | Read optical power link service for link health diagnostics | |
| US8122151B2 (en) | Storage system for optimally controlling a plurality of data transfer paths and method therefor | |
| CN108737689A (en) | A kind of splicing display method and display control apparatus of video | |
| CN111970518B (en) | An image frame loss processing method, system, device and computer storage medium | |
| CN108337699A (en) | A kind of method, apparatus of online, mobile terminal and storage medium | |
| CN102628921B (en) | Integrated circuit and method for monitoring bus state in integrated circuit | |
| CN109584105A (en) | A kind of method and system of service response | |
| CN107820052A (en) | Fusion method and system based on assessment of bids business datum and video data | |
| CN110099084A (en) | A kind of method, system and computer-readable medium guaranteeing storage service availability | |
| CN108243033A (en) | A method, cloud server and system for scoring video quality | |
| CN104378223A (en) | Link performance testing method and device, logic processor and network processor | |
| TWI472209B (en) | Modem load balance method | |
| US20150172224A1 (en) | Hierarchical Caching System For Lossless Network Packet Capture Applications | |
| CN103475871B (en) | High-speed camera system with punctual data transmission function | |
| CN107947974A (en) | A network critical link detection method for cloud platform services | |
| CN101631027B (en) | Method for balancing loads of modem | |
| CN101986703A (en) | Video recording method, network video surveillance system and front end as well as scheduling server | |
| WO2016090982A1 (en) | Base station malfunction collection method and system | |
| CN100421381C (en) | A method and device for acquiring network equipment operation and fault state information | |
| CN107547641A (en) | A kind of rear end storage system of selection and device based on bandwidth load | |
| CN109831335B (en) | Data monitoring method, monitoring terminal, storage medium and data monitoring system | |
| CN104519516B (en) | The method and device that memory is tested | |
| CN117032989A (en) | Time delay perception scheduling algorithm | |
| CN109298931B (en) | Buffer on-demand release method and network equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |