TWI465070B - Network device and method of dynamically allocating system resources thereof - Google Patents
Network device and method of dynamically allocating system resources thereof Download PDFInfo
- Publication number
- TWI465070B TWI465070B TW099112105A TW99112105A TWI465070B TW I465070 B TWI465070 B TW I465070B TW 099112105 A TW099112105 A TW 099112105A TW 99112105 A TW99112105 A TW 99112105A TW I465070 B TWI465070 B TW I465070B
- Authority
- TW
- Taiwan
- Prior art keywords
- user
- connection
- resource
- priority
- network device
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Description
本發明涉及一種網路通訊,尤其涉及一種網路裝置動態分配系統資源的方法。 The present invention relates to network communication, and more particularly to a method for dynamically allocating system resources by a network device.
近年來隨著網際網路(Internet)快速發展,使用網際網路協定(Internet Protocol,IP)位址的主機大量增加,因此網路位址轉換(Network Address Translation,NAT)提供了一種足以解決IP位址短缺問題且被普遍接受的方法。 In recent years, with the rapid development of the Internet (Internet), the number of hosts using Internet Protocol (IP) addresses has increased significantly. Therefore, Network Address Translation (NAT) provides an adequate solution for IP. A problem with a shortage of addresses and a generally accepted method.
在NAT的管理模式下,同一條寬頻網路線路上可同時接入複數用戶,即為複數用戶提供上網服務。不過,隨著網路技術不斷的提升之下,早期的主從式架構(Client-Server)檔傳輸方法已漸漸被點對點(Peer to Peer,P2P)傳輸技術所取代,網路連線數量的需求量也大大的增加了。 In the NAT management mode, multiple users can be connected to the same broadband network line at the same time, that is, Internet services are provided for multiple users. However, with the continuous improvement of network technology, the early master-slave architecture (Client-Server) file transfer method has gradually been replaced by Peer to Peer (P2P) transmission technology, the number of network connection requirements The amount has also increased greatly.
但是,現在出現了系統資源被單一用戶的P2P連接大量佔用,造成其他用戶不能正常連接網路的情形。舉例而言,參閱圖1,用戶I為使用P2P軟體的用戶,其佔用了大量的系統資源,用戶II佔用了部分系統資源,當用戶I或II有新連線請求時,由於系統資源被用完了,新連線請求被退回,舉例而言,出現用戶I用P2P看電影時導致用戶I或用戶II的新連線請求被退回而不能正常上網 的情形。 However, there has been a situation in which system resources are heavily occupied by a single user's P2P connection, causing other users to fail to connect to the network normally. For example, referring to FIG. 1, user I is a user who uses P2P software, which occupies a large amount of system resources, and user II occupies part of system resources. When user I or II has a new connection request, system resources are used. After the completion, the new connection request is returned. For example, when user I uses P2P to watch a movie, the new connection request of User I or User II is returned and cannot be accessed. The situation.
有鑒於此,有必要提供一種網路裝置,可動態分配系統資源,避免系統資源被單一用戶大量佔用而造成其他用戶不能正常連接網路。 In view of this, it is necessary to provide a network device that dynamically allocates system resources to prevent system resources from being heavily occupied by a single user, thereby causing other users to fail to connect to the network.
此外,還需要提供一種網路裝置動態分配系統資源的方法,可動態分配系統資源,避免系統資源被單一用戶大量佔用而造成其他用戶不能正常連接網路。 In addition, there is a need to provide a method for dynamically allocating system resources by a network device, which can dynamically allocate system resources, so as to prevent system resources from being occupied by a single user, and other users cannot connect to the network normally.
本發明實施方式中提供的網路裝置用於給複數用戶提供上網服務並動態分配系統資源,其包括接收模組、判斷模組、優先級模組、釋放模組及建立模組。接收模組接收第一用戶的連線請求封包。判斷模組判斷網路裝置的連線資源是否使用完畢,以及在網路裝置的連線資源使用完畢時判斷第一用戶與第二用戶的連線資源使用量的差值是否小於臨界值。其中第二用戶為連線資源使用量最大的用戶。優先級模組在差值小於臨界值時確定第一用戶的現有連線資源的優先級,並判斷第一用戶的現有連線資源中是否包含低優先級的連線資源。釋放模組在第一用戶的現有連線資源中包含低優先級的連線資源時釋放第一用戶的現有連線資源中的低優先級的連線資源。建立模組利用釋放的連線資源並根據連線請求封包為第一用戶建立連線。 The network device provided in the embodiment of the present invention is configured to provide Internet services to a plurality of users and dynamically allocate system resources, and includes a receiving module, a determining module, a priority module, a releasing module, and a building module. The receiving module receives the connection request packet of the first user. The determining module determines whether the connection resource of the network device is used, and determines whether the difference between the connection resource usage of the first user and the second user is less than a critical value when the connection resource of the network device is used. The second user is the user with the largest amount of connected resources. The priority module determines the priority of the existing connection resource of the first user when the difference is less than the threshold, and determines whether the existing connection resource of the first user includes the low priority connection resource. The release module releases the low priority connection resources in the existing connection resources of the first user when the first user's existing connection resources include the low priority connection resources. The setup module utilizes the released connection resources and establishes a connection for the first user according to the connection request packet.
本發明實施方式中提供的網路裝置動態分配系統資源的方法包括以下步驟:接收第一用戶的連線請求封包;判斷連線資源是否已經使用完畢;若已經使用完畢,則判斷第一用戶與第二用戶的連線資源使用量的差值是否小於臨界值,其中第二用戶為連線資源 使用量最大的用戶;若差值小於臨界值,則確定第一用戶的現有連線資源的優先級;判斷第一用戶是否有低優先級的連線資源;若第一用戶有低優先級連線資源,則釋放第一用戶的低優先級的連線資源;以及利用該釋放的連線資源並根據連線請求封包為該第一用戶建立連線。 The method for dynamically allocating system resources by the network device provided by the embodiment of the present invention includes the following steps: receiving a connection request packet of the first user; determining whether the connection resource has been used; and if it has been used, determining the first user and Whether the difference of the connection resource usage of the second user is less than a critical value, where the second user is a connection resource The user with the largest usage; if the difference is less than the threshold, the priority of the existing connection resource of the first user is determined; whether the first user has a low priority connection resource; if the first user has a low priority connection The line resource releases the low-priority connection resource of the first user; and utilizes the released connection resource and establishes a connection for the first user according to the connection request packet.
藉由以下對具體實施方式詳細的描述並結合附圖,將可輕易的瞭解上述內容及此項發明之技術效果。 The above and the technical effects of the invention can be easily understood from the following detailed description of the embodiments and the accompanying drawings.
100‧‧‧網路裝置 100‧‧‧Network devices
300‧‧‧網際網路 300‧‧‧Internet
102‧‧‧接收模組 102‧‧‧ receiving module
104‧‧‧判斷模組 104‧‧‧Judgement module
106‧‧‧優先級模組 106‧‧‧Priority module
108‧‧‧釋放模組 108‧‧‧Release module
110‧‧‧建立模組 110‧‧‧Building modules
112‧‧‧轉送模組 112‧‧‧Transfer module
114‧‧‧連線對照寄存器 114‧‧‧Connection check register
116‧‧‧處理器 116‧‧‧Processor
圖1是系統資源被單一用戶大量佔用的示意圖。 Figure 1 is a schematic diagram of system resources being heavily occupied by a single user.
圖2所示為本發明網路裝置一實施方式的應用環境圖。 FIG. 2 is a diagram showing an application environment of an embodiment of a network device according to the present invention.
圖3是本發明網路裝置一實施方式的模組圖。 3 is a block diagram of an embodiment of a network device of the present invention.
圖4是應用程式與埠號的對應關係圖。 Figure 4 is a diagram showing the correspondence between an application and an apostrophe.
圖5是本發明網路裝置動態分配系統資源一實施方式的示意圖。 FIG. 5 is a schematic diagram of an embodiment of a network device dynamic allocation system resource according to the present invention.
圖6是本發明網路裝置動態分配系統資源另一實施方式的示意圖。 6 is a schematic diagram of another embodiment of a network device dynamic allocation system resource according to the present invention.
圖7是本發明網路裝置動態分配系統資源的方法一實施方式的流程圖。 7 is a flow chart of an embodiment of a method for dynamically allocating system resources by a network device according to the present invention.
請參閱圖2,所示為本發明網路裝置100一實施方式的應用環境圖。在本實施方式中,網路裝置100一端與處於區域網端的複數用戶I、II、III、…N連接,另一端與網際網路300連接,用於為複數用戶I、II、III、…N提供上網服務,並為複數用戶I、II、 III、…N動態分配系統資源。網路裝置100總共可提供1024個連線資源。在本實施方式中,用戶I、II、III、…N可以為區域網中的個人電腦、筆記本電腦、個人數位助理(PDA)等可以上網的通訊裝置。 Referring to FIG. 2, an application environment diagram of an embodiment of a network device 100 of the present invention is shown. In this embodiment, one end of the network device 100 is connected to a plurality of users I, II, III, . . . N at the regional network end, and the other end is connected to the Internet 300 for use by the plurality of users I, II, III, . . . Internet access is available for multiple users I, II, III, ... N dynamically allocate system resources. The network device 100 provides a total of 1024 connection resources. In the present embodiment, the users I, II, III, . . . N may be communication devices such as personal computers, notebook computers, personal digital assistants (PDAs), etc. in the local area network.
請參閱圖3,所示為本發明網路裝置100一實施方式的模組圖。在本實施方式中,網路裝置100包括接收模組102、判斷模組104、優先級模組106、釋放模組108、建立模組110及處理器116。處理器116用於執行接收模組102、判斷模組104、優先級模組106、釋放模組108及建立模組110。 Referring to FIG. 3, a block diagram of an embodiment of a network device 100 of the present invention is shown. In the present embodiment, the network device 100 includes a receiving module 102, a determining module 104, a priority module 106, a releasing module 108, an establishing module 110, and a processor 116. The processor 116 is configured to execute the receiving module 102, the determining module 104, the priority module 106, the releasing module 108, and the establishing module 110.
接收模組102接收第一用戶發送的連線請求封包。其中,第一用戶為圖2中複數用戶I、II、III、…N其中之一。 The receiving module 102 receives the connection request packet sent by the first user. The first user is one of the plurality of users I, II, III, . . . N in FIG.
判斷模組104在該接收模組102接收到第一用戶發送的連線請求封包時判斷網路裝置100的連線資源是否使用完畢。 The determining module 104 determines whether the connection resource of the network device 100 is used when the receiving module 102 receives the connection request packet sent by the first user.
在本實施方式中,判斷模組104還用於在網路裝置100的連線資源使用完畢時判斷第一用戶與第二用戶的連線資源使用量的差值是否小於臨界值。在本實施方式中,第二用戶為圖2中複數用戶I、II、III、…N中連線資源使用量最大的用戶。在本實施方式中,臨界值為50。 In the embodiment, the determining module 104 is further configured to determine whether the difference between the connection resource usage amount of the first user and the second user is less than a critical value when the connection resource of the network device 100 is used. In the present embodiment, the second user is the user with the largest amount of connected resources among the plurality of users I, II, III, . . . In the present embodiment, the critical value is 50.
優先級模組106在第一用戶與第二用戶的連線資源使用量的差值小於臨界值時確定第一用戶的現有連線資源的優先級。在本實施方式中,當連線資源符合以下4個條件之一時可確定該連線資源為高優先級:(1)連線是由網際網路300來建立;(2)連線由區域網內部的用戶I、II、III、…N建立的且符合埠轉發(Port forwarding)規則的連線;(3)連線由區域網內部的用戶I、II、III、…N建立的目的埠號為1~1024;(4)連線由區域網內部的用戶I、II、III、…N建立,且目的埠號符合圖4所示。優先級模組106將不符合上述4個條件的連線資源確定為低優先級。 The priority module 106 determines the priority of the existing connection resources of the first user when the difference between the usage resource usage of the first user and the second user is less than a threshold. In this embodiment, when the connection resource meets one of the following four conditions, the connection resource may be determined to have a high priority: (1) the connection is established by the Internet 300; (2) the connection is determined by the regional network. Internal user I, II, III, ... N established and conforms to 埠 forwarding (Port The connection of the forwarding rules; (3) the connection is established by the users I, II, III, ... in the regional network, the destination number is 1~1024; (4) the connection is the user I, II inside the regional network , III, ... N are established, and the destination nickname is as shown in Figure 4. The priority module 106 determines the connection resources that do not meet the above four conditions as the low priority.
在本發明其他實施方式中,第一用戶與第二用戶可以是同一用戶。若第一用戶與第二用戶為同一用戶,則優先級模組106直接判斷第一用戶的連線資源中是否有低優先級的連線資源。 In other embodiments of the present invention, the first user and the second user may be the same user. If the first user and the second user are the same user, the priority module 106 directly determines whether there is a low priority connection resource in the connection resource of the first user.
在本實施方式中,優先級模組106還在第一用戶與第二用戶的連線資源使用量的差值小於臨界值時判斷第一用戶的現有連線資源中是否有低優先級,若有低優先級,則釋放模組108釋放第一用戶的低優先級的連線資源。 In this embodiment, the priority module 106 determines whether there is a low priority in the existing connection resources of the first user when the difference between the usage resources of the first user and the second user is less than a threshold. With low priority, the release module 108 releases the low priority connection resources of the first user.
在本實施方式中,優先級模組106還用於在第一用戶與第二用戶的連線資源使用量的差值不小於臨界值時確定第二用戶的現有連線資源的優先級,並判斷第二用戶的現有連線資源中是否有低優先級的連線資源。在本實施例中,第二用戶的現有連線資源的優先級的確定方法與第一用戶的現有連線資源的優先級的確定方法相同,因此不再贅述。 In this embodiment, the priority module 106 is further configured to determine a priority of the existing connection resource of the second user when the difference between the connection resource usage amounts of the first user and the second user is not less than a threshold value, and Determine whether there is a low priority connection resource in the existing connection resource of the second user. In this embodiment, the method for determining the priority of the existing connection resource of the second user is the same as the method for determining the priority of the existing connection resource of the first user, and therefore is not described again.
建立模組110利用釋放模組108釋放的連線資源並根據連線請求封包為第一用戶建立連線。在本實施方式中,建立模組110還為第一用戶建立連線項目,其中連線項目包括第一用戶的區域網的網際網路協定位址與公共的網際網路協定位址之間的對照關係。 The setup module 110 utilizes the connection resources released by the release module 108 and establishes a connection for the first user according to the connection request packet. In this embodiment, the setup module 110 also establishes a connection project for the first user, wherein the connection project includes an Internet Protocol address of the first user's regional network and a public internet protocol address. Control relationship.
在本實施方式中,建立模組110還在第一用戶與第二用戶的連線資源使用量的差值小於臨界值且第一用戶的現有連線資源中沒有 低優先級的連線資源時拒絕第一用戶的連線請求。 In this embodiment, the establishing module 110 is further that the difference between the connection resource usage amount of the first user and the second user is less than a critical value and the first user's existing connection resources are not included. The first user's connection request is rejected when the low priority connection resource is available.
在本實施方式中,建立模組110在第一用戶與第二用戶的連線資源使用量的差值不小於臨界值且第二用戶的現有連線資源中沒有低優先級的連線資源時拒絕第一用戶的連線請求。 In this embodiment, when the difference between the connection resource usage of the first user and the second user is not less than a critical value and the connection resources of the second user do not have a low priority connection resource, The first user's connection request is rejected.
在其他實施方式中,建立模組110還用於在網路裝置100的連線資源沒有使用完畢時利用沒有使用完畢的連線資源為第一用戶建立連線及連線項目。 In other implementations, the setup module 110 is further configured to establish a connection and connection item for the first user by using the unused connection resources when the connection resources of the network device 100 are not used.
網路裝置100還包括轉送模組112與連線對照寄存器114。在本實施方式中,轉送模組112將第一用戶的區域網的網際網路協定位址轉換為公共的網際網路協定位址,並根據公共的網際網路協定位址將第一用戶的連線請求封包轉送至網際網路300。 The network device 100 also includes a forwarding module 112 and a connection check register 114. In this embodiment, the forwarding module 112 converts the Internet Protocol address of the first user's regional network into a public internet protocol address, and the first user is based on the public internet protocol address. The connection request packet is forwarded to the Internet 300.
連線對照寄存器114儲存第一用戶新建立的連線項目。在本實施方式中,第一用戶的連線項目包括第一用戶的區域網的IP位址與公共的(Public)IP位址之間的對照關係。 The connection check register 114 stores the newly established connection item of the first user. In this embodiment, the connection item of the first user includes a comparison relationship between the IP address of the regional network of the first user and a public IP address.
本發明實施方式中的網路裝置100藉由判斷模組104、優先級模組106及釋放模組108來判斷複數用戶中連線資源使用量最大的第二用戶使用的連線資源量與第一用戶使用的連線資源量的差值是否小於臨界值來決定釋放哪一個用戶的低優先級連線資源,並利用釋放的低優先級連線資源為第一用戶的新連線請求建立連線,從而有效的解決了在單一用戶佔用大量連線資源時第一用戶也能建立連線。 The network device 100 in the embodiment of the present invention determines the amount of connection resources used by the second user with the largest amount of connected resources among the plurality of users by the determination module 104, the priority module 106, and the release module 108. Whether the difference between the amount of connection resources used by a user is less than a threshold value determines which user's low priority connection resources are released, and uses the released low priority connection resources to establish a connection for the first user's new connection request. The line effectively solves the problem that the first user can also establish a connection when a single user occupies a large amount of connection resources.
參閱圖5,所示為本發明網路裝置100動態分配系統資源一實施方式的示意圖。在本實施方式中,P1、P2分別表示連線資源的高優 先級與低優先級。在本實施方式中,用戶I與用戶II先向網路裝置100發送連線請求,網路裝置100將可用的系統資源分配給用戶I與用戶II,正常的為用戶I與用戶II轉送連線封包至網際網路300。其中,用戶II為使用點對點(Peer to Peer,P2P)軟體的用戶,其佔用了大量的系統資源。 Referring to FIG. 5, a schematic diagram of an embodiment of dynamically allocating system resources of the network device 100 of the present invention is shown. In the present embodiment, P1 and P2 respectively represent high-quality connection resources. Priority and low priority. In this embodiment, the user I and the user II first send a connection request to the network device 100, and the network device 100 allocates available system resources to the user I and the user II, and the user I and the user II transfer the connection normally. Packet to the Internet 300. User II is a user who uses peer-to-peer (P2P) software, which occupies a large amount of system resources.
然後,用戶I向網路裝置100發送新連線請求,由於用戶II佔用了大量的系統資源,且用戶I佔用了部分的系統資源,網路裝置100沒有可用的系統資源分配給用戶I的新連線請求。 Then, the user 1 sends a new connection request to the network device 100. Since the user II occupies a large amount of system resources, and the user 1 occupies part of the system resources, the network device 100 has no available system resources allocated to the user I. Wired request.
此時,由於用戶II是佔用的連線資源量最大的用戶,所以網路裝置100先判斷用戶I與用戶II的連線資源使用量的差值是否小於臨界值。若差值小於臨界值,則網路裝置100確定出用戶I所有連線資源的優先級,並釋放用戶I的低優先級的連線資源。然後網路裝置100利用釋放的低優先級資源為用戶I的新連線請求建立連線。 At this time, since the user II is the user who has the largest amount of connection resources, the network device 100 first determines whether the difference between the usage amount of the connection resources of the user I and the user II is less than a critical value. If the difference is less than the threshold, the network device 100 determines the priority of all the connection resources of the user I, and releases the low priority connection resources of the user 1. The network device 100 then uses the released low priority resources to establish a connection for User I's new connection request.
相反地,若用戶I與用戶II的連線資源使用量的差值不小於臨界值,則網路裝置100確定出用戶II所有連線資源的優先級,並釋放用戶II的低優先級的連線資源。然後網路裝置100利用釋放的低優先級資源為用戶I的新連線請求建立連線。 Conversely, if the difference between the usage resources of the user I and the user II is not less than the threshold, the network device 100 determines the priority of all the connection resources of the user II, and releases the low priority of the user II. Line resources. The network device 100 then uses the released low priority resources to establish a connection for User I's new connection request.
請參閱圖6,所示本發明網路裝置100動態分配系統資源另一實施方式的示意圖。在本實施方式中,P1、P2分別表示連線資源的高優先級與低優先級。在本實施方式中,用戶I與用戶II先向網路裝置100發送連線請求,網路裝置100將可用的系統資源分配給用戶I與用戶II,正常的為用戶I與用戶II轉送連線封包至網際網路300。用戶I為使用點對點(Peer to Peer,P2P)軟體的用戶, 其佔用了大量的系統資源。由此可知,當用戶I有新連線請求時,網路裝置100判斷連線資源使用量最大的用戶與請求連線的用戶均為用戶I,因此網路裝置100確定出用戶I所有連線資源的優先級,並釋放用戶I的低優先級的連線資源。然後網路裝置100利用釋放的低優先級資源為用戶I的新連線請求建立連線。 Referring to FIG. 6, a schematic diagram of another embodiment of dynamically allocating system resources of the network device 100 of the present invention is shown. In the present embodiment, P1 and P2 respectively indicate a high priority and a low priority of the connection resources. In this embodiment, the user I and the user II first send a connection request to the network device 100, and the network device 100 allocates available system resources to the user I and the user II, and the user I and the user II transfer the connection normally. Packet to the Internet 300. User I is a user who uses peer-to-peer (P2P) software. It takes up a lot of system resources. Therefore, when the user 1 has a new connection request, the network device 100 determines that the user with the largest connection resource usage and the user who requests the connection are both the user I, so the network device 100 determines that all the connections of the user I are determined. The priority of the resource and release the low priority connection resource of user I. The network device 100 then uses the released low priority resources to establish a connection for User I's new connection request.
請參閱圖7,所示為本發明網路裝置100動態分配系統資源的方法一實施方式的流程圖。在本實施方式中,該方法藉由圖3所示網路裝置100與模組來實現。 Referring to FIG. 7, a flowchart of an embodiment of a method for dynamically allocating system resources by the network device 100 of the present invention is shown. In the present embodiment, the method is implemented by the network device 100 and the module shown in FIG.
在步驟S600,接收模組102接收第一用戶發送的連線請求封包。 在本實施方式中,第一用戶為圖2中複數用戶I、II、III、…N其中之一。 In step S600, the receiving module 102 receives the connection request packet sent by the first user. In the present embodiment, the first user is one of the plurality of users I, II, III, . . .
在步驟S602,判斷模組104判斷連線資源是否使用完畢。 In step S602, the determination module 104 determines whether the connection resource is used up.
若連線資源使用完畢,則在步驟S604,判斷模組104判斷第一用戶與第二用戶的連線資源使用量的差值是否小於臨界值。在本實施方式中,第二用戶為圖2中複數用戶I、II、II1、…N連線資源使用量最大的用戶。在本實施方式中,臨界值為50。 If the connection resource usage is completed, then in step S604, the determination module 104 determines whether the difference between the connection resource usage amount of the first user and the second user is less than a critical value. In the present embodiment, the second user is the user with the largest amount of connection resources of the plurality of users I, II, II1, . . . In the present embodiment, the critical value is 50.
若第一用戶與第二用戶的連線資源使用量的差值小於臨界值,則在步驟S606,優先級模組106確定第一用戶的現有連線資源的優先級。 If the difference between the connection resource usage of the first user and the second user is less than a threshold, then in step S606, the priority module 106 determines the priority of the existing connection resource of the first user.
在步驟S608,優先級模組106判斷第一用戶的現有連線資源中是否有低優先級連線資源。 In step S608, the priority module 106 determines whether there is a low priority connection resource in the existing connection resource of the first user.
若第一用戶的現有連線資源中有低優先級的連線資源,則在步驟S610,釋放模組108釋放第一用戶的低優先級的連線資源。 If there is a low priority connection resource in the existing connection resource of the first user, in step S610, the release module 108 releases the low priority connection resource of the first user.
若沒有低優先級的連線資源,則在步驟S624,建立模組110拒絕第一用戶的連線請求。 If there is no low priority connection resource, then in step S624, the setup module 110 rejects the connection request of the first user.
在步驟S612,建立模組110利用釋放的連線資源為第一用戶建立連線。 In step S612, the establishing module 110 establishes a connection for the first user by using the released connection resource.
在步驟S614,轉送模組112將第一用戶的區域網的IP位址轉換為公共的IP位址,並將第一用戶的連線請求封包轉送至網際網路300。 In step S614, the forwarding module 112 converts the IP address of the first user's regional network into a public IP address, and forwards the first user's connection request packet to the Internet 300.
若連線資源沒有使用完畢時,則在步驟S616,建立模組110利用沒有使用完畢的連線資源為第一用戶建立連線及連線項目。在本實施方式中,第一用戶的連線項目包括第一用戶的區域網的IP位址與公共的(Public)IP位址之間的對照關係。 If the connection resource is not used, then in step S616, the setup module 110 establishes a connection and connection item for the first user by using the unused connection resource. In this embodiment, the connection item of the first user includes a comparison relationship between the IP address of the regional network of the first user and a public IP address.
然後在步驟S614,轉送模組112將第一用戶的區域網的IP位址轉換為公共的IP位址,並將第一用戶的連線請求封包轉送至網際網路300。 Then, in step S614, the forwarding module 112 converts the IP address of the first user's regional network into a public IP address, and forwards the first user's connection request packet to the Internet 300.
若差值不小於臨界值,則在步驟S618,優先級模組106確定第二用戶的連線資源的優先級。 If the difference is not less than the threshold, then in step S618, the priority module 106 determines the priority of the connection resource of the second user.
在步驟S620,優先級模組106判斷連線資源使用量最大的第二用戶的連線資源中是否有低優先級的連線資源。 In step S620, the priority module 106 determines whether there is a low priority connection resource among the connection resources of the second user whose connection resource usage is the largest.
若有低優先級的連線資源,則在步驟S622,釋放模組108釋放第二用戶的低優先級的連線資源。 If there is a low priority connection resource, then in step S622, the release module 108 releases the low priority connection resource of the second user.
若沒有低優先級的連線資源,則在步驟S624,建立模組110拒絕第一用戶的連線請求。 If there is no low priority connection resource, then in step S624, the setup module 110 rejects the connection request of the first user.
然後在步驟S612,轉送模組112將第一用戶的區域網的IP位址轉換為公共的IP位址,並將該用戶的連線請求封包轉送至網際網路300。 Then, in step S612, the forwarding module 112 converts the IP address of the first user's regional network into a public IP address, and forwards the user's connection request packet to the Internet 300.
本發明實施方式中的網路裝置100及其動態分配系統資源的方法藉由判斷模組104、優先級模組106及釋放模組108來判斷複數用戶中連線資源使用量最大的第二用戶使用的連線資源量與第一用戶使用的連線資源量的差值是否小於臨界值來決定釋放哪一個用戶的低優先級連線資源,並利用釋放的低優先級連線資源為第一用戶的新連線請求建立連線,從而有效的解決了在單一用戶佔用大量連線資源時第一用戶也能建立新的連線。 The network device 100 and the method for dynamically allocating system resources in the embodiment of the present invention determine the second user with the largest amount of connected resources among the plurality of users by using the determining module 104, the priority module 106, and the releasing module 108. Whether the difference between the amount of connection resources used and the amount of connection resources used by the first user is less than a threshold value determines which user's low priority connection resources are released, and uses the released low priority connection resources as the first The user's new connection request establishes a connection, which effectively solves the problem that the first user can also establish a new connection when a single user occupies a large amount of connection resources.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本案技藝之人士,在爰依本案發明精神所作之等效修飾或變化,皆應包含於以下之申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art of the present invention should be included in the following claims.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099112105A TWI465070B (en) | 2010-04-19 | 2010-04-19 | Network device and method of dynamically allocating system resources thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099112105A TWI465070B (en) | 2010-04-19 | 2010-04-19 | Network device and method of dynamically allocating system resources thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201138366A TW201138366A (en) | 2011-11-01 |
TWI465070B true TWI465070B (en) | 2014-12-11 |
Family
ID=46759833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW099112105A TWI465070B (en) | 2010-04-19 | 2010-04-19 | Network device and method of dynamically allocating system resources thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI465070B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020174220A1 (en) * | 2001-05-21 | 2002-11-21 | Johnson Teddy Christian | Methods and structure for reducing resource hogging |
US20060045095A1 (en) * | 2004-08-27 | 2006-03-02 | Sandeep Dhar | Method and system for selecting connections to bump based on priority in a network |
CN1968185A (en) * | 2006-06-09 | 2007-05-23 | 华为技术有限公司 | Switching device with overload control capability and its overload control notification method |
CN101512988A (en) * | 2006-09-18 | 2009-08-19 | 艾利森电话股份有限公司 | Correlative method and apparatus with permission control of wideband service |
CN101594630A (en) * | 2009-06-30 | 2009-12-02 | 中兴通讯股份有限公司 | Uplink congestion detection and flow control methods and equipment |
US20090327496A1 (en) * | 2008-06-25 | 2009-12-31 | Microsoft Corporation | REMOTE ACCESS BETWEEN UPnP DEVICES |
TW201010341A (en) * | 2008-08-22 | 2010-03-01 | Hon Hai Prec Ind Co Ltd | Network calculating device and method |
-
2010
- 2010-04-19 TW TW099112105A patent/TWI465070B/en not_active IP Right Cessation
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020174220A1 (en) * | 2001-05-21 | 2002-11-21 | Johnson Teddy Christian | Methods and structure for reducing resource hogging |
US20060045095A1 (en) * | 2004-08-27 | 2006-03-02 | Sandeep Dhar | Method and system for selecting connections to bump based on priority in a network |
CN1968185A (en) * | 2006-06-09 | 2007-05-23 | 华为技术有限公司 | Switching device with overload control capability and its overload control notification method |
CN101512988A (en) * | 2006-09-18 | 2009-08-19 | 艾利森电话股份有限公司 | Correlative method and apparatus with permission control of wideband service |
US20090327496A1 (en) * | 2008-06-25 | 2009-12-31 | Microsoft Corporation | REMOTE ACCESS BETWEEN UPnP DEVICES |
TW201010341A (en) * | 2008-08-22 | 2010-03-01 | Hon Hai Prec Ind Co Ltd | Network calculating device and method |
CN101594630A (en) * | 2009-06-30 | 2009-12-02 | 中兴通讯股份有限公司 | Uplink congestion detection and flow control methods and equipment |
Also Published As
Publication number | Publication date |
---|---|
TW201138366A (en) | 2011-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10375015B2 (en) | Methods and system for allocating an IP address for an instance in a network function virtualization (NFV) system | |
CN108924272B (en) | Port resource allocation method and device | |
CN102223287A (en) | Network device and method thereof for dynamic distribution of system resources | |
WO2017054718A1 (en) | User migration | |
JP2016530618A (en) | Resource management for peripheral component interconnect express domain | |
WO2018220708A1 (en) | Resource allocation system, management device, method, and program | |
US20030165144A1 (en) | Systems and methods for implementing virtual router | |
WO2016197628A1 (en) | Method of terminal-based conference load-balancing, and device and system utilizing same | |
WO2014183417A1 (en) | Method, device, and system for memory management | |
JP2013037681A5 (en) | Integrated circuit and method for supporting transaction requests of different priority levels | |
EP3113539A1 (en) | Load balancing user plane traffic in a telecommunication network | |
WO2022218304A1 (en) | Message forwarding method, apparatus and system, and computer-readable storage medium | |
US9055117B1 (en) | Distributed network address translation | |
WO2023207189A1 (en) | Load balancing method and system, computer storage medium, and electronic device | |
CN107547690B (en) | Port allocation method and device in NAT, NAT equipment and storage medium | |
WO2022052496A1 (en) | Address reservation method, network device, and system | |
WO2022063249A1 (en) | Address management method, apparatus and system | |
CN113542244B (en) | Micro-service calling method, device, server and system | |
TWI465070B (en) | Network device and method of dynamically allocating system resources thereof | |
WO2023030300A1 (en) | Network address translation method and apparatus | |
WO2023143103A1 (en) | Message processing method, and gateway device and storage system | |
WO2023035660A1 (en) | Resource request method, system and apparatus, and device and storage medium | |
WO2023005745A1 (en) | Message forwarding method, device and system, and computer-readable storage medium | |
WO2023045191A1 (en) | Video stream obtaining method and apparatus, server, storage medium, and program product | |
CN110636149A (en) | Remote access method, device, router and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |