92e1 IP default policy - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old April 25th, 2012, 11:09
romeor romeor is offline
Junior Member
 
Join Date: Aug 2010
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default IP default policy

Hi,

Could someone mention, what was the IP protocol default QoS policy, please? Was it best-effort? What would happen if we had an FTP server running on 100/100 mbits/s bandwidth and about 5 clients downloading in the same time with 200/200 mbits/s each? Would the bandwidth shared equally by IP protocol among clients or first gets most of it? How could one share this FTP bandwidth among clients using PF dynamically (if there are no clients, the first takes all of it, if there are clients, bandwidth is shared equally. IP addresses of clients are dynamic)?

Last edited by DutchDaemon; April 25th, 2012 at 15:09.
Reply With Quote
  #2  
Old April 25th, 2012, 18:35
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

Quote:
Originally Posted by romeor View Post
Hi,

Could someone mention, what was the IP protocol default QoS policy, please?
Basically, there are three different QoS methods:
DiffServ - differentiated services, a per-hop behavior which relies on IP ToS information in packet header. That is, each Layer 3 device check information in this header (more specifically on outer header, as in MPLS networks, etc).
Integrated Services, which rely on pre-reservation of resources before any data is actually sent. E.g. RSVP.
Best Effort - no specific QoS method, as in FIFO.

While Internet is considered best effort, most services are implemented using DiffServ model as it is most scalable.

Quote:
Was it best-effort? What would happen if we had an FTP server running on 100/100 mbits/s bandwidth and about 5 clients downloading in the same time with 200/200 mbits/s each? Would the bandwidth shared equally by IP protocol among clients or first gets most of it?
FTP is TCP protocol, as such traffic using it would behave accordingly. TCP has its concepts such as window size, mss, etc which affect the way traffic is transfered. It also uses something called slow-start congestion avoidance protocol which in affect lowers or ups the speed if there is need to. Without any QoS method implemented and getting a saturation on a link in view, traffic would have zig-zag pattern as all connections would fight for bandwidth and then all suddenly lower throughput. In other words it is largely not deterministic.

Quote:
How could one share this FTP bandwidth among clients using PF dynamically (if there are no clients, the first takes all of it, if there are clients, bandwidth is shared equally. IP addresses of clients are dynamic)?
QoS is almost always implemented based on type of traffic, not IP address (although, giving low-latency queue to your boss IP can prove to be adventagious at times).
Things like VoIP, DNS, and TCP-ACK traffic should get priority over other bulk traffic such as FTP.

pf has its methods of implementing scheduling schemes.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is FreeBSD's patching policy for the Ports collection? Bapabooiee Installation and Maintenance of FreeBSD Ports or Packages 2 March 31st, 2011 23:34
Vim to use GTK2 by default graudeejs Off-Topic 14 October 14th, 2010 18:59
PF default block policy and NAT problem solved with 'TAG'. johnblue Firewalls 0 December 14th, 2009 06:45
bash default jrch2k10 KDE 5 November 13th, 2009 21:17


All times are GMT +1. The time now is 16:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0