Professional Web Applications Themes

dummynet problems - FreeBSD

Hi, all! Here I have a problem with dummynet. System is FreeBSD-5.3-STABLE month ago. we have very small bandwidth from LAN. rl0 is internal interface. ipfw rukes are (fwcmd=/sbin/ipfw): ${fwcmd} pipe 1 config bw 60Kbit/s ${fwcmd} add 778 pipe 1 tcp from any 25,43,53,80,110,119,123,143,953,5190 to 192.168.0.0/25 out via rl0 ${fwcmd} queue 1 config pipe 1 weight 100 mask dst-ip 0xffffffff queue 5 ${fwcmd} add 790 queue 1 log logamount 10 tcp from any to 192.168.0.99 out via rl0 ${fwcmd} queue 2 config pipe 1 weight 100 mask dst-ip 0x00000fff buckets 150 queue 10 ${fwcmd} queue 3 config pipe 1 weight ...

  1. #1

    Default dummynet problems

    Hi, all!
    Here I have a problem with dummynet. System is FreeBSD-5.3-STABLE month ago.
    we have very small bandwidth from LAN.
    rl0 is internal interface.

    ipfw rukes are (fwcmd=/sbin/ipfw):
    ${fwcmd} pipe 1 config bw 60Kbit/s
    ${fwcmd} add 778 pipe 1 tcp from any
    25,43,53,80,110,119,123,143,953,5190 to 192.168.0.0/25 out via rl0

    ${fwcmd} queue 1 config pipe 1 weight 100 mask dst-ip 0xffffffff queue 5
    ${fwcmd} add 790 queue 1 log logamount 10 tcp from any to 192.168.0.99
    out via rl0


    ${fwcmd} queue 2 config pipe 1 weight 100 mask dst-ip 0x00000fff
    buckets 150 queue 10
    ${fwcmd} queue 3 config pipe 1 weight 30 mask dst-ip 0x00000fff
    buckets 150 queue 10
    ${fwcmd} queue 4 config pipe 1 weight 70 mask dst-ip 0x00000fff
    buckets 150 queue 10
    ${fwcmd} add 791 queue 2 log logamount 10 tcp from any 5190 to
    192.168.0.0/25 out via rl0
    ${fwcmd} add 795 queue 3 log logamount 10 tcp from any 80,3128,21,20
    to 192.168.0.0/25 out via rl0
    ${fwcmd} add 792 queue 4 log logamount 10 tcp from any
    25,110,43,53,119,123,143,953 to 192.168.0.0/25 out via rl0

    Thanks a lot!

    S.
    Sergey Guest

  2. #2

    Default Re: dummynet problems

    Sergey Lapin <com> writes:
     


    I don't use dummynet myself, but surely it would be easier to help you
    if you described what the actual problem is?
    Lowell Guest

  3. #3

    Default Re: dummynet problems

    > I don't use dummynet myself, but surely it would be easier to help you 
    Well, actual problem description:
    FreeBSD-5.3 router;
    rl0 - internal interface
    rl1 - external.
    rl1 is connected to ADSL modem from provider;
    The link bandwidth is 64kbps.

    ${fwcmd} -f flush
    ${fwcmd} -f pipe flush
    ${fwcmd} pipe 1 config bw 64Kbit/s queue 10KBytes
    ${fwcmd} queue 4 config pipe 1 weight 1 mask dst-ip 0xffffffff buckets
    10 queue 9 gred 0.002/7/21/0.1
    ${fwcmd} add 780 queue 4 log logamount 10 tcp from any to
    192.168.0.30/32 out via rl0
    ${fwcmd} queue 10 config pipe 1 weight 100 mask dst-ip 0xffffffff
    queue 9 gred 0.002/7/21/0.1
    ${fwcmd} add 790 queue 10 log logamount 10 tcp from any to
    192.168.0.99/32 out via rl0
    ${fwcmd} queue 25 config pipe 1 weight 30 mask dst-ip 0xffffffff
    buckets 15 queue 10 gred 0.002/7/21/0.1
    ${fwcmd} queue 20 config pipe 1 weight 100 mask dst-ip 0xffffffff
    buckets 100 queue 9 gred 0.002/7/21/0.1
    ${fwcmd} queue 30 config pipe 1 weight 20 mask dst-ip 0xffffffff
    buckets 100 queue 9 gred 0.002/7/21/0.1
    ${fwcmd} queue 40 config pipe 1 weight 10 mask dst-ip 0xffffffff
    buckets 100 queue 9 gred 0.002/7/21/0.1
    ${fwcmd} add 891 queue 20 log logamount 10 tcp from any 5190 to
    192.168.0.1/25 out via rl0
    ${fwcmd} add 892 queue 25 log logamount 10 tcp from any to 192.168.0.6
    out via rl0
    ${fwcmd} add 893 queue 25 log logamount 10 tcp from any to
    192.168.0.29 out via rl0
    ${fwcmd} add 894 queue 25 log logamount 10 tcp from any to
    192.168.0.62 out via rl0
    ${fwcmd} add 895 queue 25 log logamount 10 tcp from any to
    192.168.0.27 out via rl0
    ${fwcmd} add 898 queue 30 log logamount 10 tcp from any
    25,110,43,53,119,123,143,953 to
    192.168.0.1/25{1-3,5,7-26,28,31-61,63-98,100} out via rl0
    ${fwcmd} add 897 queue 40 log logamount 10 tcp from any
    80,443,3128,21,20 to 192.168.0.1/25{1-3,5,7-26,28,31-61,63-98,100}
    out via rl0

    ipfw pipe show:

    00001: 99.000 Kbit/s 0 ms 10 KB 0 queues (1 buckets) droptail
    mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
    q00004: weight 1 pipe 1 9 sl. 1 queues (10 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    2 ip 0.0.0.0/0 192.168.0.30/0 2198 1821083 0 0 43
    q00010: weight 100 pipe 1 9 sl. 1 queues (64 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    51 ip 0.0.0.0/0 192.168.0.99/0 9 813 0 0 0
    q00020: weight 100 pipe 1 9 sl. 13 queues (100 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    2 ip 0.0.0.0/0 192.168.0.30/0 42 6662 0 0 0
    5 ip 0.0.0.0/0 192.168.0.1/0 36 6054 0 0 0
    13 ip 0.0.0.0/0 192.168.0.9/0 37 5021 0 0 0
    15 ip 0.0.0.0/0 192.168.0.11/0 61 16333 0 0 0
    25 ip 0.0.0.0/0 192.168.0.53/0 23 3463 0 0 0
    29 ip 0.0.0.0/0 192.168.0.85/0 201 23807 0 0 0
    33 ip 0.0.0.0/0 192.168.0.61/0 65 6704 0 0 0
    34 ip 0.0.0.0/0 192.168.0.62/0 166 39971 0 0 0
    38 ip 0.0.0.0/0 192.168.0.94/0 36 7726 0 0 0
    39 ip 0.0.0.0/0 192.168.0.35/0 151 62681 0 0 0
    47 ip 0.0.0.0/0 192.168.0.71/0 207 17475 0 0 0
    88 ip 0.0.0.0/0 192.168.0.16/0 25 4751 0 0 0
    98 ip 0.0.0.0/0 192.168.0.26/0 44 8235 0 0 0
    q00025: weight 30 pipe 1 10 sl. 2 queues (15 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    5 ip 0.0.0.0/0 192.168.0.6/0 1093 518028 0 0 51
    14 ip 0.0.0.0/0 192.168.0.62/0 3604 2254945 4 3098 50
    q00030: weight 20 pipe 1 9 sl. 8 queues (100 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    15 ip 0.0.0.0/0 192.168.0.11/0 20 1081 0 0 0
    33 ip 0.0.0.0/0 192.168.0.61/0 142 24203 0 0 0
    38 ip 0.0.0.0/0 192.168.0.94/0 21 1008 0 0 0
    39 ip 0.0.0.0/0 192.168.0.35/0 21 3090 0 0 0
    53 ip 0.0.0.0/0 192.168.0.77/0 848 38982 0 0 0
    90 ip 0.0.0.0/0 192.168.0.18/0 233 149963 0 0 0
    97 ip 0.0.0.0/0 192.168.0.25/0 262 40407 0 0 0
    98 ip 0.0.0.0/0 192.168.0.26/0 15 4205 0 0 0
    q00040: weight 10 pipe 1 9 sl. 14 queues (100 buckets)
    GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991
    mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000
    BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
    15 ip 0.0.0.0/0 192.168.0.11/0 1395 1158072 0 0 17
    18 ip 0.0.0.0/0 192.168.0.14/0 453 53758 0 0 9
    26 ip 0.0.0.0/0 192.168.0.82/0 106 127901 0 0 0
    29 ip 0.0.0.0/0 192.168.0.85/0 107 82636 0 0 0
    33 ip 0.0.0.0/0 192.168.0.61/0 561 577903 0 0 0
    35 ip 0.0.0.0/0 192.168.0.91/0 567 635678 0 0 0
    38 ip 0.0.0.0/0 192.168.0.94/0 68 56742 0 0 1
    39 ip 0.0.0.0/0 192.168.0.35/0 365 314405 0 0 28
    43 ip 0.0.0.0/0 192.168.0.39/0 4951 2412776 0 0 122
    45 ip 0.0.0.0/0 192.168.0.69/0 920 128301 0 0 0
    47 ip 0.0.0.0/0 192.168.0.71/0 1034 334595 0 0 5
    53 ip 0.0.0.0/0 192.168.0.77/0 352 288702 0 0 0
    90 ip 0.0.0.0/0 192.168.0.18/0 5951 4674530 0 0 317
    98 ip 0.0.0.0/0 192.168.0.26/0 766 676891 0 0 0



    And with these settings flows that have higher weights get lower
    bandwidth sometimes... And become very angry...
    Could anyone please get simplest configuration appropriate for this environment?
    Thanks a lot!
    Sergey Guest

Similar Threads

  1. dummynet problem, kernel options checked
    By Lucas in forum FreeBSD
    Replies: 2
    Last Post: March 8th, 01:39 AM
  2. Replies: 0
    Last Post: September 22nd, 02:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139