so my questions are :
1. right now can i have 5gb throughput from my brocade switch to mikrotik ccr 1016 ?
You have configured your bonding mode=802.3ad. This means that "LACP balances outgoing traffic across the active ports based on hashed protocol header information and accepts incoming traffic from any active port. The hash includes the Ethernet source and destination address and if available, the VLAN tag, and the IPv4/IPv6 source and destination address. How this is calculated depends on transmit-hash-policy parameter. "
https://wiki.mikrotik.com/wiki/Manual:I ... ng#802.3ad
As you have configured transmit-hash-policy=layer-2, every time a packet sends outgoing traffic across your bond interface, RouterOS will compute a HASH based on MAC-Address of source and destination. This number will be divided between 5(number of interfaces) and the result will be a number between 0 and 4, and an interface of the bonding will be selected.
If all the traffic goes from one SOURCE MAC to only one DESTINATION MAC, the hash will be always the same, so all the traffic will go through one interface. The result: 1 Gbps.
If there are multiples MAC addresses (source/destination), the hash will be equally distributed (more or less) and the traffic will use all the interfaces, achieving a MAX of 5Gbps.
If you want to be very near to 5Gbps, you can choose transmit-hash-policy=balance-rr. This way, first packet will go through the first interface, second will choose the second, and so on... the 6th packet will start again with the 1st interface. This is the way of achieving near 5Gbps. For this to work fine, all the interfaces should be the same speed and the transit time of the packets through every interface should be the same, so TCP packets are not received mis-ordered.
I think that, if your BROCADE is near your CCR, this is the best way to achieve your goal.
2. whats difference between transmit-hash-policy layer 2 AND layer2-layer3 and which one is better i choose it?
If in one side of your bonding you have one computer (this means, 1 MAC address only and 1 IP address only), and at the other side of the bonding you have one computer (1 MAC and 1 IP), the result of Layer 2 HASH will be the same ALWAYS, so bonding is for nothing, as the traffic will choose always the same interface.
If you choose Layer 2 and 3, the result will be the same: the traffic will choose always the same interface. No sum of speed.
If instead of having a computer at each side you have a Router, the traffic will have the same MAC (origin or destination) BUT different IPs (addresses of the traffic that the router is forwarding). In this case, HASH of Layer 2 will give always the same result (only one MAC as destination and one as source). But, HASH of Layer 2 and 3 will give different results, so the traffic will go through all the interfaces.
3. when i read
https://wiki.mikrotik.com/wiki/Manual:L ... _balancing in "Problem" section i see in some cases we may be limit to 1gbps speed, but i do not understand it well, can anybody explain it better for me?
In the example, origin MAC is SERVER A mac address, and destination MAC is SERVER B. Hash policy Layer 2 will not result in 2Gbps, because the traffic will choose one interface (1 Gbps), and always the same.