CN102843296A - Method for acceleration of designated terminal in local area network (LAN) and router - Google Patents

Method for acceleration of designated terminal in local area network (LAN) and router Download PDF

Info

Publication number
CN102843296A
CN102843296A CN2012103096670A CN201210309667A CN102843296A CN 102843296 A CN102843296 A CN 102843296A CN 2012103096670 A CN2012103096670 A CN 2012103096670A CN 201210309667 A CN201210309667 A CN 201210309667A CN 102843296 A CN102843296 A CN 102843296A
Authority
CN
China
Prior art keywords
bandwidth
terminal
setting terminal
lan
actual total
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103096670A
Other languages
Chinese (zh)
Other versions
CN102843296B (en
Inventor
郑明明
黄双榜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201210309667.0A priority Critical patent/CN102843296B/en
Publication of CN102843296A publication Critical patent/CN102843296A/en
Application granted granted Critical
Publication of CN102843296B publication Critical patent/CN102843296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for acceleration of a designated terminal in a local area network (LAN) and a router. In the method for the acceleration of the designated terminal in the LAN, rules are specified through traffic control (tc) in the iproute 2, and a kernel is enabled to provide a predetermined network bandwidth assurance for a set internet protocol (IP) according to the specified rules. A device which can be used to achieve the method for the acceleration of the designated terminal in the LAN is arranged in the router. In the router or a hub in the LAN, the tc in the iproute 2 is used to specify the rules, the effect that the set terminal IP is enabled to use a part of the bandwidth exclusively is guaranteed, and the defect that in the prior art, when all terminals compete freely to use a shared bandwidth in the LAN, the needs of a key terminal cannot be met is overcome.

Description

Designated terminal quickens in a kind of local area network (LAN) method and router
Technical field
The present invention relates to the local area network technology field, particularly set the method for designated terminal network speed and the router of device for the assurance emphasis network terminal in the local area network (LAN) with this method of realization.
Background technology
At present; Family broadband or office's online, operator forms an internal lan through hub or router often, and operator distributes to user's bandwidth by terminals share all in the local area network (LAN); If this moment is when having some critical terminals to guarantee in the local; When use at other terminal, can not guarantee that crucial terminal has enough bandwidth, makes the user use inconvenience.
Summary of the invention
All share the whole bandwidth of distributing to local for solving the inner all terminals of present local; Can not guarantee that the crucial terminal in this local area network (LAN) can enjoy the deficiency of necessary bandwidth; The method of specifying terminal network speed in a kind of local area network (LAN) is provided, can in local area network (LAN), guarantees the bandwidth that key terminal is shared through this method.
The present invention for the technical scheme of accomplishing its technical purpose and adopting is: the method and the router of specifying terminal network speed in a kind of local area network (LAN); This method is provided with rule through the tc among the iproute2; Kernel is guaranteed for the IP that sets provides the predetermined network bandwidth according to the rule of appointment, specifically may further comprise the steps:
The bandwidth reserved at this terminal is given in A, the IP address that obtains actual total bandwidth, setting terminal and planned assignment;
B, set up root qdisc formation;
C, foundation classification:
1) root is classified, minimum bandwidth and maximum bandwidth is set to actual total bandwidth respectively;
2) the IP subclassification of setting terminal is provided with minimum bandwidth and maximum bandwidth and is set to the bandwidth reserved and actual total bandwidth that this terminal is given in planned assignment respectively, and priority is highest;
3) other IP subclassification in the local area network (LAN) is provided with minimum bandwidth and maximum bandwidth and is set to 0 respectively and deducts the bandwidth reserved that this setting terminal is given in planned assignment with actual total bandwidth, and priority is the priority that is lower than setting terminal;
D, the sfq formation of setting up setting terminal IP subclassification;
E, flag data bag carry out mark to the packet of setting terminal IP address;
F, set up filter for setting terminal IP.
The present invention also provides a kind of router of realizing the method that designated terminal quickens in the above-mentioned local area network (LAN), and this router comprises: realize that the tc among the iproute2 is provided with the device of rule; Tc among the described realization iproute2 is provided with in the regular device and comprises:
Obtain the IP address of actual total bandwidth, setting terminal and the device that the bandwidth reserved at this terminal is given in planned assignment;
Set up the device of tc root qdisc formation;
Set up the device of classification, in the device of described foundation classification, also comprise:,
Set up the root sort module with what minimum bandwidth and maximum bandwidth were set to actual total bandwidth respectively;
Minimum bandwidth and maximum bandwidth are set are set to the bandwidth reserved and actual total bandwidth that this terminal is given in planned assignment respectively, priority is the five-star module of setting up the IP subclassification of setting terminal;
Minimum bandwidth and maximum bandwidth are set are set to 0 respectively and deduct the bandwidth reserved that this setting terminal is given in planned assignment with actual total bandwidth, priority be lower than setting terminal priority set up other IP subclassification in the local area network (LAN);
Set up the sfq formation of tc setting terminal IP subclassification, with the device of the bandwidth that guarantees IP;
The flag data bag uses iptables the packet of setting terminal IP address to be carried out the device of mark;
For setting terminal IP sets up the tc filter, the device that the packet of mark is filtered.
The present invention utilizes the tc among the iproute2 that rule is set in the router of local area network (LAN), guarantees that setting terminal IP exclusively enjoys the part bandwidth, has overcome when competing shared bandwidth by free terminals all in the local area network (LAN) at present, can not satisfy the deficiency of crucial terminal needs.
Below through combining specific embodiment and accompanying drawing that the present invention is further explained.
Description of drawings
Accompanying drawing 1 is the embodiment of the invention 1 flow chart.
Embodiment
As shown in Figure 1, present embodiment is provided with rule through the tc among the iproute2, and kernel is guaranteed for the terminal IP (trust ip) that sets provides the predetermined network bandwidth according to the rule of appointment.
According to the percentage that takies of bandwidth total value that is provided with and trust ip, the minimum bandwidth that trust ip is set takies percentage for the bandwidth total value multiply by, and maximum bandwidth is a WAN mouth physics maximum rate; The maximum value bandwidth that non-trust ip is set is the minimum bandwidth that actual total bandwidth deducts trust ip, and minimum bandwidth is 60Kbps.The speed that can guarantee trust ip like this can reach the physics maximum rate, and being unlikely to other IP has not again had flow.Flow chart is as shown in Figure 1:
1. obtain actual bandwidth (being assumed to be CKbps), trust ip (being assumed to be 192.168.1.99), reserved bandwidth (be assumed to be A Kbps, A < C)
2. set up root qdisc formation
tc?qdisc?add?dev?br0?root?handle?1:?htb?default?21
3. set up classification
1) root classification, it is 100Mbit that minimum-rate is set, maximum rate is 100Mbit:
tc?class?add?dev?br0?parent?1:?classid?1:1?htb?rate?102400Kbit?ceil?102400Kbit
2) Trust ip subclassification, it is user defined value A that minimum-rate is set, and maximum rate is 100Mbit, and priority is for the highest: tc class add dev br0 parent 1:1 classid 1:11 htb rate A ceil 102400Kbit prio 0
3) non-trust ip subclassification, it is 600Kbit that minimum-rate is set, and maximum rate is (C-A), and priority is low slightly: tc class add dev br0 parent 1:1 classid 1:21 htb rate 600Kbit ceil (C-A) prio 1
4. set up the sfq formation of trust ip subclassification.
tc?qdisc?add?dev?br0?parent?1:11?handle?11:?sfq?perturb?10
5. flag data bag.
iptables?-t?mangle?-A?POSTROUTING?-m?iprange?--dst-range?192.168.1.99-192.168.1.99?-j?MARK_and_DSCP?--set-mark?0x65?--set-dscp?0x1
6. set up filter for trust ip.
tc?filter?add?dev?br0?parent?1:?protocol?all?handle?0x65?fw?classid?1:11
Implementation effect
(total bandwidth is that 12Mbps, trust ip keep 6Mbps, uses same downloaded resources)
1. open and quicken before the function
The PC numbering 1 2 3 4
The IP address 192.168.1.2 192.168.1.4 192.168.1.3 192.168.1.5
Trust ip Not Be Not Not
Speed 4Mbps 2Mbps 3Mbps 2Mbps
From on can find out before open not quickening function do not have tangible strengths and weaknesses between 4 computers below the router, just belong to the free competition state.
2. open and quicken after the function
The PC numbering 1 2 3 4
The IP address 192.168.1.2 192.168.1.4 192.168.1.3 192.168.1.5
Trust ip Not Be Not Not
Speed 1Mbps 8Mbps 1.2Mbps 0.3Mbps
Open to after the acceleration function of specific IP, the speed of trust ip obviously improves.

Claims (2)

1. the method that designated terminal quickens in the local area network (LAN), it is characterized in that: this method is provided with rule through the tc among the iproute2, and kernel is guaranteed for the IP that sets provides the predetermined network bandwidth according to the rule of appointment, specifically may further comprise the steps:
The bandwidth reserved at this terminal is given in A, the IP address that obtains actual total bandwidth, setting terminal and planned assignment;
B, set up tc root qdisc formation;
C, foundation classification:
1) root is classified, minimum bandwidth and maximum bandwidth is set to actual total bandwidth respectively;
2) the IP subclassification of setting terminal is provided with minimum bandwidth and maximum bandwidth and is set to the bandwidth reserved and actual total bandwidth that this terminal is given in planned assignment respectively, and priority is highest;
3) other IP subclassification in the local area network (LAN) is provided with minimum bandwidth and maximum bandwidth and is set to 0 respectively and deducts the bandwidth reserved that this setting terminal is given in planned assignment with actual total bandwidth, and priority is the priority that is lower than setting terminal;
D, the sfq formation of setting up tc setting terminal IP subclassification are to guarantee the bandwidth of IP;
E, flag data bag use iptables that the packet of setting terminal IP address is carried out mark;
F, for setting terminal IP sets up the tc filter, the packet of mark is filtered.
2. the router of a method of quickening according to designated terminal in the local area network (LAN) of claim 1, it is characterized in that: described router comprises: realize that the tc among the iproute2 is provided with the device of rule; Tc among the described realization iproute2 is provided with in the regular device and comprises:
Obtain the IP address of actual total bandwidth, setting terminal and the device that the bandwidth reserved at this terminal is given in planned assignment;
Set up the device of tc root qdisc formation;
Set up the device of classification, in the device of described foundation classification, also comprise:,
Set up the root sort module with what minimum bandwidth and maximum bandwidth were set to actual total bandwidth respectively;
Minimum bandwidth and maximum bandwidth are set are set to the bandwidth reserved and actual total bandwidth that this terminal is given in planned assignment respectively, priority is the five-star module of setting up the IP subclassification of setting terminal;
Minimum bandwidth and maximum bandwidth are set are set to 0 respectively and deduct the bandwidth reserved that this setting terminal is given in planned assignment with actual total bandwidth, priority be lower than setting terminal priority set up other IP subclassification in the local area network (LAN);
Set up the sfq formation of tc setting terminal IP subclassification, with the device of the bandwidth that guarantees IP;
The flag data bag uses iptables the packet of setting terminal IP address to be carried out the device of mark;
For setting terminal IP sets up the tc filter, the device that the packet of mark is filtered.
CN201210309667.0A 2012-08-28 2012-08-28 A kind of method that in local area network (LAN), designated terminal accelerates and router Active CN102843296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210309667.0A CN102843296B (en) 2012-08-28 2012-08-28 A kind of method that in local area network (LAN), designated terminal accelerates and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210309667.0A CN102843296B (en) 2012-08-28 2012-08-28 A kind of method that in local area network (LAN), designated terminal accelerates and router

Publications (2)

Publication Number Publication Date
CN102843296A true CN102843296A (en) 2012-12-26
CN102843296B CN102843296B (en) 2015-08-26

Family

ID=47370369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210309667.0A Active CN102843296B (en) 2012-08-28 2012-08-28 A kind of method that in local area network (LAN), designated terminal accelerates and router

Country Status (1)

Country Link
CN (1) CN102843296B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245464A (en) * 2015-08-27 2016-01-13 北京华夏创新科技有限公司 Network acceleration method based on Android system
CN105915470A (en) * 2016-01-27 2016-08-31 无锡华云数据技术服务有限公司 Flexible bandwidth configuration method based on Linux flow control

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060133418A1 (en) * 2004-12-16 2006-06-22 International Business Machines Corporation System and method for connection capacity reassignment in a multi-tier data processing system network
CN1960342A (en) * 2006-11-29 2007-05-09 杭州华为三康技术有限公司 Method for putting apart a bandwidth in advance, and equipment for implementing bandwidth put apart in advance
CN101127721A (en) * 2007-09-13 2008-02-20 杭州华三通信技术有限公司 Bandwidth control method and bandwidth control device
CN101599908A (en) * 2009-07-15 2009-12-09 杭州华三通信技术有限公司 A kind of auto-allocation method of bandwidth and equipment
CN101656662A (en) * 2008-08-22 2010-02-24 中国电信股份有限公司 Method and system for allocating network resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060133418A1 (en) * 2004-12-16 2006-06-22 International Business Machines Corporation System and method for connection capacity reassignment in a multi-tier data processing system network
CN1960342A (en) * 2006-11-29 2007-05-09 杭州华为三康技术有限公司 Method for putting apart a bandwidth in advance, and equipment for implementing bandwidth put apart in advance
CN101127721A (en) * 2007-09-13 2008-02-20 杭州华三通信技术有限公司 Bandwidth control method and bandwidth control device
CN101656662A (en) * 2008-08-22 2010-02-24 中国电信股份有限公司 Method and system for allocating network resources
CN101599908A (en) * 2009-07-15 2009-12-09 杭州华三通信技术有限公司 A kind of auto-allocation method of bandwidth and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚伯威 等: "Linux2.4下的带宽(流量)控制功能", 《计算机应用》, vol. 21, no. 8, 31 August 2001 (2001-08-31) *
郭献力: "基于Linux系统TC框架的带宽控制研究与在校园网中的应用", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》, no. 4, 15 December 2004 (2004-12-15) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245464A (en) * 2015-08-27 2016-01-13 北京华夏创新科技有限公司 Network acceleration method based on Android system
CN105915470A (en) * 2016-01-27 2016-08-31 无锡华云数据技术服务有限公司 Flexible bandwidth configuration method based on Linux flow control
CN105915470B (en) * 2016-01-27 2019-05-21 无锡华云数据技术服务有限公司 A kind of elastic bandwidth configuration method based on Linux flow control

Also Published As

Publication number Publication date
CN102843296B (en) 2015-08-26

Similar Documents

Publication Publication Date Title
US9986563B2 (en) Dynamic allocation of network bandwidth
Gong et al. Fighting the bufferbloat: on the coexistence of AQM and low priority congestion control
US9294401B2 (en) Method and apparatus for data transfer in a peer-to-peer network
CN111770028A (en) Method and network device for computer network
US20080037567A1 (en) Method and apparatus for guaranteeing quality of service in a residential ethernet system
US10701582B2 (en) Dynamic application QoS profile provisioning
WO2018126692A1 (en) Method and apparatus for controlling data transmission
US20210194813A1 (en) Quality of service management system for a communication network
CN109981488B (en) Scheduling method and device
CN108738071A (en) A kind of method and device that resource is established
Chao et al. A brief review of multipath tcp for vehicular networks
US20150319092A1 (en) CONTENT AWARE WI-FI QoS
CN103634235A (en) Method for limiting speed of network interface of virtual machine
CN101064637A (en) Method for guaranteeing quality of service of operation maintenance data stream
CN103701713A (en) QoS (Quality of Service) scheduling method based on WIFI (Wireless Fidelity) password of AP (Access Point) router
CN105915468A (en) Service scheduling method and device
WO2022068244A1 (en) Network configuration sending method and apparatus, storage medium, and electronic device
CN102843296A (en) Method for acceleration of designated terminal in local area network (LAN) and router
WO2017063511A1 (en) Sdn-based residential cell network control system
JP4751804B2 (en) Communication relay device, communication relay control method, and communication relay control program
WO2006032609A1 (en) Quality of service provisioning across multiple networks
CN105916176B (en) Power service bearing mapping method based on LTE system
CN107113186A (en) The method and public service entity of data transfer in unified machine to machine system
CN102801603B (en) The flow-dividing control method and device that a kind of Network address translators accelerates
CN103973590B (en) A kind of QoS dispatching methods and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant