nth load balancing more odd than even

I am doing nth load balancing on a MK450G. I have a DSL + Cable internet connection both with dynamic ip.
The load balace is workng but I see much more odd than even connections. As a result I have more traffic on one interface and very little on the other.

Please give me some advise.

/ip firewall export

mar/09/2011 20:58:24 by RouterOS 4.17

/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s tcp-close-wait-timeout=10s tcp-established-timeout=1d tcp-fin-wait-timeout=10s
tcp-last-ack-timeout=10s tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no tcp-time-wait-timeout=10s udp-stream-timeout=3m
udp-timeout=10s

/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes

/ip firewall mangle
add action=mark-connection chain=prerouting comment="" disabled=no in-interface=bridge1 new-connection-mark=odd passthrough=yes src-address-list=odd

add action=mark-routing chain=prerouting comment="" disabled=no in-interface=bridge1 new-routing-mark=odd passthrough=no src-address-list=odd

add action=mark-connection chain=prerouting comment="" disabled=no in-interface=bridge1 new-connection-mark=even passthrough=yes src-address-list=even

add action=mark-routing chain=prerouting comment="" disabled=no in-interface=bridge1 new-routing-mark=even passthrough=no src-address-list=even

add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=bridge1 new-connection-mark=odd nth=2,1 passthrough=yes

add action=add-src-to-address-list address-list=odd address-list-timeout=1d chain=prerouting comment="" connection-mark=odd disabled=no in-interface=bridge1

add action=mark-routing chain=prerouting comment="" connection-mark=odd disabled=no in-interface=bridge1 new-routing-mark=odd passthrough=no

add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=bridge1 new-connection-mark=even nth=2,2 passthrough=
yes

add action=add-src-to-address-list address-list=even address-list-timeout=1d chain=prerouting comment="" connection-mark=even disabled=no in-interface=
bridge1

add action=mark-routing chain=prerouting comment="" connection-mark=even disabled=no in-interface=bridge1 new-routing-mark=even passthrough=no

/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=ether1
add action=dst-nat chain=dstnat comment="" disabled=no dst-port=5900 in-interface=ether1 protocol=tcp to-addresses=10.0.0.245 to-ports=5900
add action=dst-nat chain=dstnat comment="" disabled=no dst-port=5900 in-interface=pppoe1 protocol=tcp to-addresses=10.0.0.245 to-ports=5900
/ip firewall service-port
set ftp disabled=no ports=21
set tftp disabled=no ports=69
set irc disabled=no ports=6667
set h323 disabled=no
set sip disabled=no ports=5060,5061
set pptp disabled=no

I’m a bit rusty at this, but it seems that you have rules that add the src-address to each address list (odd and even). It appears that as each client makes a new request, the src-address (client ip) is added to each address list depending on the packet order.

So one client (src-address) should quickly end up in both lists. True? If so, then your first rules evaluate address-list=odd first, so most traffic will go out odd.

Or am I wrong? You might want to check “/ip firewall address-list” to verify that.

list is empty

[admin@AISLECOMMK] /ip firewall address-list> /ip firewall address-list export

mar/15/2011 19:56:14 by RouterOS 4.17

software id = 9PDF-DJW8

Export doesn’t show dynamic entries. Use “/ip firewall address-list print”.

See the list below. I notice that my gateway address is showing up in the list (10.0.0.138).

[admin@AISLECOMMK] > /ip firewall address-list print
Flags: X - disabled, D - dynamic

LIST ADDRESS

0 D odd 10.0.0.45
1 D odd 10.0.0.2
2 D even 10.0.0.28
3 D odd 10.0.0.164
4 D odd 10.0.0.55
5 D even 10.0.0.61
6 D odd 10.0.0.111
7 D odd 10.0.0.18
8 D even 10.0.0.41
9 D odd 10.0.0.51
10 D odd 10.0.0.37
11 D even 10.0.0.82
12 D odd 10.0.0.133
13 D odd 10.0.0.48
14 D even 10.0.0.130
15 D odd 10.0.0.131
16 D even 10.0.0.113
17 D odd 10.0.0.236
18 D odd 10.0.0.148
19 D odd 10.0.0.239
20 D odd 10.0.0.247
21 D odd 10.0.0.198
22 D odd 10.0.0.245
23 D odd 10.0.0.157
24 D even 10.0.0.138
25 D even 10.0.0.172
26 D odd 10.0.0.229
27 D even 10.0.0.177
28 D odd 0.0.0.0
29 D odd 10.0.0.30
30 D even 10.0.0.86
31 D odd 10.0.0.49
32 D odd 10.0.0.92
33 D even 10.0.0.79
34 D odd 10.0.0.24
35 D odd 10.0.0.43
36 D even 10.0.0.103
37 D odd 10.0.0.104
38 D odd 10.0.0.20
39 D even 10.0.0.16
40 D odd 10.0.0.122
41 D odd 10.0.0.9
42 D even 10.0.0.83
43 D odd 10.0.0.12
44 D odd 10.0.0.214
45 D odd 10.0.0.226
46 D odd 10.0.0.109
47 D even 10.0.0.128
48 D odd 10.0.0.101
49 D odd 10.0.0.189
50 D odd 10.0.0.60
51 D even 10.0.0.162
52 D even 10.0.0.7
53 D odd 10.0.0.117
54 D odd 10.0.0.75
55 D even 10.0.0.161
56 D odd 10.0.0.31
57 D odd 10.0.0.88
58 D even 10.0.0.136
59 D odd 192.168.1.19
60 D odd 10.0.0.56
61 D odd 10.0.0.116
62 D even 10.0.0.216
63 D odd 10.0.0.230
64 D odd 10.0.0.39
65 D even 10.0.0.120
66 D odd 10.0.0.42
67 D odd 10.0.0.50
68 D even 10.0.0.5
69 D odd 10.0.0.76
70 D odd 192.168.0.239
71 D even 10.0.0.132
72 D odd 10.0.0.59
73 D odd 10.0.0.232
74 D odd 10.0.0.193
75 D even 10.0.0.123
76 D odd 10.0.0.126
77 D odd 10.0.0.10
78 D even 10.0.0.71
79 D odd 10.0.0.26
80 D odd 10.0.0.8
81 D odd 10.0.0.220
82 D even 10.0.0.145
83 D odd 10.0.0.223
84 D odd 10.0.0.142
85 D even 10.0.0.218
86 D odd 10.0.0.72
87 D odd 10.0.0.78
88 D even 10.0.0.125
89 D odd 10.0.0.124
90 D odd 10.0.0.118
91 D even 10.0.0.127
92 D odd 10.0.0.119
93 D odd 10.0.0.15
94 D even 10.0.0.234
95 D odd 10.0.0.23
96 D odd 10.0.0.115
97 D even 10.0.0.14
98 D even 10.0.0.129
99 D odd 10.0.0.114
100 D odd 10.0.0.110 >
101 D even 10.0.0.112 >
102 D odd 10.0.0.108 >
103 D odd 10.0.0.140 >
104 D even 10.0.0.106 >
105 D odd 10.0.0.135 >
106 D odd 10.0.0.196 >
107 D odd 10.0.0.97 >
108 D odd 10.0.0.105 >
109 D odd 10.0.0.150 >
110 D even 10.0.0.3 >
111 D odd 10.0.0.91 >
112 D odd 10.0.0.149 >
113 D even 10.0.0.144 >
114 D odd 10.0.0.203 >
115 D odd 10.0.0.240 >
116 D odd 10.0.0.241 >
117 D even 10.0.0.36 >
118 D odd 10.0.0.121 >
119 D odd 10.0.0.143 >
120 D odd 10.0.0.215 >
121 D even 10.0.0.40 >
122 D odd 10.0.0.64 >
123 D odd 10.0.0.141 >
124 D even 10.0.0.34 >
125 D odd 10.0.0.187 >
126 D odd 10.0.0.52 >
127 D even 10.0.0.147 >
128 D odd 10.0.0.146 >
129 D odd 10.0.0.6 >
130 D odd 10.0.0.35 >
131 D odd 10.0.0.47 >
132 D even 10.0.0.57 >
133 D odd 10.0.0.96 >
134 D odd 10.0.0.77 >
135 D even 10.0.0.94 >
116 D odd 10.0.0.241 >
117 D even 10.0.0.36 >
118 D odd 10.0.0.121 >
119 D odd 10.0.0.143 >
120 D odd 10.0.0.215 >
121 D even 10.0.0.40 >
122 D odd 10.0.0.64 >
123 D odd 10.0.0.141 >
124 D even 10.0.0.34 >
125 D odd 10.0.0.187 >
126 D odd 10.0.0.52 >
127 D even 10.0.0.147 >
128 D odd 10.0.0.146 >
129 D odd 10.0.0.6 >
130 D odd 10.0.0.35 >
131 D odd 10.0.0.47 >
132 D even 10.0.0.57 >
133 D odd 10.0.0.96 >
134 D odd 10.0.0.77 >
135 D even 10.0.0.94 >
136 D odd 10.0.0.90 >
137 D odd 10.0.0.70 >
138 D odd 10.0.0.66 >
139 D even 10.0.0.102 >
140 D odd 10.0.0.93 >
141 D odd 10.0.0.11 >
142 D even 10.0.0.67 >
143 D odd 10.0.0.65 >
144 D odd 10.0.0.85 >
145 D even 10.0.0.4 >
146 D odd 10.0.0.44 >
147 D odd 10.0.0.54 >
148 D even 10.0.0.29 >
149 D odd 10.0.0.95 >
150 D odd 10.0.0.73 >
151 D even 10.0.0.227 >
152 D odd 10.0.0.58 >
153 D odd 10.0.0.137 >
154 D even 10.0.0.89 >
155 D odd 10.0.0.80 >
156 D odd 10.0.0.38 >
157 D even 10.0.0.134 >
158 D odd 10.0.0.74 >
-- [Q quit|D dump|right|up]

[quote=“aislecom”]See the list below. I notice that my gateway address is showing up in the list (10.0.0.138).

Did you find any solution to your problem?

I am facing the same thing.

Nikos