User Tools

Site Tools


scenario-gargoyleforgamers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scenario-gargoyleforgamers [2015/04/27 03:06]
nworbnhoj [Assign Static IPs] formatting
scenario-gargoyleforgamers [2015/08/31 14:19]
nworbnhoj [Scenario] alternate approach
Line 1: Line 1:
 ==== Scenario ==== ==== Scenario ====
-A gamer, living with family who don't understand that every youtube video, every facebook refresh, every google search uses bandwidth and can cause you frustrating lag spikes.+A gamer, living with family who don't understand that every youtube video, every facebook refresh, every google search uses bandwidth and can cause you frustrating lag spikes. (([[http://www.gargoyle-router.com/phpbb/viewtopic.php?f=12&t=7261#p30122|alternate approach]]))
  
 ==== Objective ==== ==== Objective ====
Line 22: Line 22:
 | Sister-mobile | 192.168.1.71 | | Sister-mobile | 192.168.1.71 |
 | Sister-tablet | 192.168.1.72 | | Sister-tablet | 192.168.1.72 |
-Gamer-PC | 192.168.1.80 | +[[http://www.gargoyle-router.com/phpbb/memberlist.php?mode=viewprofile&u=6746|Lantis]]-PC | **192.168.1.80**((Awesome Gamer PC)) 
-Gamer-mobile | 192.168.1.81 |+[[http://www.gargoyle-router.com/phpbb/memberlist.php?mode=viewprofile&u=6746|Lantis]]-mobile | 192.168.1.81 |
  
  
Line 33: Line 33:
 Before giving examples of real-world settings, lets talk about how to calculate those settings. Before giving examples of real-world settings, lets talk about how to calculate those settings.
 A simple example we can begin with is Teamspeak 3, a Voice Chat client used by many gamers, and crucial to the success of the team. A simple example we can begin with is Teamspeak 3, a Voice Chat client used by many gamers, and crucial to the success of the team.
-Connect to the server you will be speaking on the majority of the time, and look at the connection address. What is the port that is being used by the server? Write this down. In my example the port is 9987. 
-Connect to the channel you will be speaking in the majority of the time. Check the properties of the channel, you want to find the information on "Codec Quality", the "Estimated Bitrate". If you will be speaking in multiple channels, use the number for the highest quality (highest number). In my case this is 9.23KiB/s. 
-The upload calculation is easy. When you speak, you transmit your own voice to the server, which then retransmits it to all the clients. So your upload is just 9.23KB/s x 8 = 73.84Kbps. Keep this for later. 
-The download calculation is a bit less simple. You need to know how many people you will be listening to at once. Lets say you are playing a team game, and there will be 4 others on your team. IF everyone speaks at once, then the maximum you will be listening to is 4 x 9.23KB/s x 8. During intense fights, it is not unlikely that everyone may be yelling at once, so it is usually best to estimate this at the maximum number. If you were in a channel where there were spectators, you might have your 4 team mates speaking at once and 2 spectators at the same time. Use your best judgement here. 
-In our example we will assume only our team mates will be speaking so 9.23KB/s x 4 x 8 = 295.36Kbps. 
  
-Gargoyle - Firewall - QoS (Upload)+Connect to the server you will be speaking on the majority of the time, and look at the connection address. What is the port that is being used by the server? Write this down. In this example the port is 9987. 
 +Connect to the channel you will be speaking in the majority of the time. Check the properties of the channel, you want to find the information on "Codec Quality", the "Estimated Bitrate". If you will be speaking in multiple channels, use the number for the highest quality (highest number). In this case this is 9.23KiB/s.
  
-☑ Enable Quality of Service (Upload Direction)+The upload calculation is easy. When you speak, you transmit your own voice to the server, which then retransmits it to all the clients. So your upload is just 9.23KB/s x 8 = 73.84Kbps. Keep this for later.
  
-QoS (Upload) – Service Classes +The download calculation is a bit less simple. You need to know how many people you will be listening to at onceLets say you are playing a team game, and there will be 4 others on your team. IF everyone speaks at once, then the maximum you will be listening to is 4 x 9.23KB/s x 8During intense fights, it is not unlikely that everyone may be yelling at once, so it is usually best to estimate this at the maximum number. If you were in a channel where there were spectators, you might have your 4 team mates speaking at once and 2 spectators at the same time. Use your best judgement here. 
-Service Class Name: TS3 +In this example we will assume only our team mates will be speaking so 9.23KB/s x 4 x 8 = 295.36Kbps.
-Percent Bandwidth at Capacity: = 73.84/Total Upload Bandwidth +
-Bandwidth minimum: 73.84 +
-Bandwidth maximum: No+
  
-QoS (Upload) – Classification Rules +NoteCreate the new Service Class before the Classification Rule.
-Source IP192.168.1.80 +
-Destination Port(s): 9987 +
-Transport Protocol: UDP +
-Set Service Class To: TS3+
  
-Gargoyle - Firewall - QoS (Download) +=== Gargoyle - Firewall - QoS (Upload===
-☑ Enable Quality of Service (Download Direction)+
  
-QoS (Download) – Service Classes +^QoS (Upload) -- Classification Rules ^^ 
-Service Class Name: TS3 +|☑ Enable Quality of Service (Upload Direction)|| 
-Percent Bandwidth at Capacity: = 295.36/Total Download Bandwidth +|Source IP: \\ Destination Port(s): \\ Transport Protocol: \\ Set Service Class To: | 192.168.1.80 \\ 9987 \\ UDP \\ TS3 | 
-Bandwidth minimum: 295.36 +^QoS (Upload) – Service Classes ^^ 
-Bandwidth maximum: No +|Service Class Name: \\ Percent Bandwidth at Capacity: \\ Bandwidth minimum: \\ Bandwidth maximum: | TS3 \\ 73.84/Total Upload Bandwidth \\ 73.84 \\ No |
-Minimize Round Trip Times (RTT): Minimize RTT (ping times) when active+
  
-QoS (Download) – Classification Rules 
-Source Port(s): 9987 
-Destination IP: 192.168.1.80 
-Transport Protocol: UDP 
-Set Service Class To: TS3 
  
- +=== Gargoyle - Firewall - QoS (Download) === 
-QoS (Download) – Active Congestion Control +^QoS (Download) – Classification Rules ^^ 
-☑ Enable active congestion control (Download Direction)+| ☑ Enable Quality of Service (Download Direction) || 
 +| Source Port(s): \\ Destination IP: \\ Transport Protocol: \\ Set Service Class To: | 9987 \\ 192.168.1.80 \\ UDP \\ TS3 | 
 +^ QoS (Download) – Service Classes ^^ 
 +| Service Class Name: \\ Percent Bandwidth at Capacity: \\ Bandwidth minimum: \\ Bandwidth maximum: \\ Minimize Round Trip Times (RTT): | TS3 \\ 295.36/Total Download Bandwidth \\ 295.36 \\ No \\ Minimize RTT (ping times) when active | 
 +QoS (Download) – Active Congestion Control ^^ 
 +|☑ Enable active congestion control (Download Direction) ||
  
  
 Apply these settings, and check that your data is being classed as TS3 in the Status - QOS Distribution pie graphs. Apply these settings, and check that your data is being classed as TS3 in the Status - QOS Distribution pie graphs.
- 
  
  
Line 83: Line 69:
  
 Do some research on what your game requires to upload and download. You can estimate this by playing a full game, dividing your total download by the length of the game. If you have plenty of bandwidth, you can be a bit liberal with your estimations (rather go over than under). If the bandwidth is a bit tight, then try to estimate accurately, but give yourself a small amount of headroom. Do some research on what your game requires to upload and download. You can estimate this by playing a full game, dividing your total download by the length of the game. If you have plenty of bandwidth, you can be a bit liberal with your estimations (rather go over than under). If the bandwidth is a bit tight, then try to estimate accurately, but give yourself a small amount of headroom.
-For DOTA 2, i have over estimated the download at 1024kbps (it approaches this number if everyone is using in game voice chat, but its rarely this large). I have over estiamted the upload at 240kbps. 
-Once you have setup all the rules, you can monitor the "Load" values and see if you can lower the numbers. 
-We also need to know what Ports our game uses. Dota uses 27005 (like a lot of steam games). 
  
-Using these assumptionslets create some service classes and rules.+For DOTA 2an over estimated of the download is 1024kbps (it approaches this number if everyone is using in game voice chat, but its rarely this large). An over estimated of the upload at 240kbps.
  
-Gargoyle - Firewall - QoS (Upload)+Once you have setup all the rules, you can monitor the "Load" values and see if you can lower the numbers.
  
-☑ Enable Quality of Service (Upload Direction) +We also need to know what Ports our game uses. Dota uses 27005 (like a lot of steam games).
- +
-QoS (Upload) – Service Classes +
-Service Class Name: Games +
-Percent Bandwidth at Capacity: = 240/Total Upload Bandwidth +
-Bandwidth minimum: 240 +
-Bandwidth maximum: No +
- +
-QoS (Upload) – Classification Rules +
-Source IP: 192.168.1.80 +
-Source Port(s): 27005 +
-Transport Protocol: UDP +
-Set Service Class To: Games+
  
-Gargoyle - Firewall - QoS (Download) +Using these assumptions, lets create some service classes (firstand rules (second).
-☑ Enable Quality of Service (Download Direction)+
  
-QoS (Download– Service Classes +=== Gargoyle - Firewall - QoS (Upload) ===
-Service Class Name: Games +
-Percent Bandwidth at Capacity: 1024/Total Download Bandwidth +
-Bandwidth minimum: 1024 +
-Bandwidth maximum: No +
-Minimize Round Trip Times (RTT): Minimize RTT (ping times) when active+
  
-QoS (Download) – Classification Rules 
-Destination Port(s): 27005 
-Destination IP: 192.168.1.80 
-Transport Protocol: UDP 
-Set Service Class To: Games 
  
 +^QoS (Upload) -- Classification Rules ^^
 +|☑ Enable Quality of Service (Upload Direction)||
 +|Source IP: \\ Destination Port(s): \\ Transport Protocol: \\ Set Service Class To: | 192.168.1.80 \\ 27005 \\ UDP \\ Games |
 +^QoS (Upload) – Service Classes ^^
 +|Service Class Name: \\ Percent Bandwidth at Capacity: \\ Bandwidth minimum: \\ Bandwidth maximum: | Games \\ 240/Total Upload Bandwidth \\ 240 \\ No |
  
-QoS (Download) – Active Congestion Control 
-☑ Enable active congestion control (Download Direction) 
  
 +=== Gargoyle - Firewall - QoS (Download) ===
 +^QoS (Download) – Classification Rules ^^
 +| ☑ Enable Quality of Service (Download Direction) ||
 +| Source Port(s): \\ Destination IP: \\ Transport Protocol: \\ Set Service Class To: | 27005 \\ 192.168.1.80 \\ UDP \\ Games |
 +^ QoS (Download) – Service Classes ^^
 +| Service Class Name: \\ Percent Bandwidth at Capacity: \\ Bandwidth minimum: \\ Bandwidth maximum: \\ Minimize Round Trip Times (RTT): | Games \\ 1024/Total Download Bandwidth \\ 1024 \\ No \\ Minimize RTT (ping times) when active |
 +^ QoS (Download) – Active Congestion Control ^^
 +|☑ Enable active congestion control (Download Direction) ||
  
 Launch up a game of dota and see if your traffic is put into the "Games" class. If it is, then you are up to testing it under real world scenarios. Open a few youtube videos to saturate your connection and see if your ping stays REASONABLE. When the system is working well, you will get a small spike, but then it will activate and act to bring your ping down to a reasonable level. Launch up a game of dota and see if your traffic is put into the "Games" class. If it is, then you are up to testing it under real world scenarios. Open a few youtube videos to saturate your connection and see if your ping stays REASONABLE. When the system is working well, you will get a small spike, but then it will activate and act to bring your ping down to a reasonable level.
scenario-gargoyleforgamers.txt · Last modified: 2015/08/31 14:19 by nworbnhoj