segunda-feira, 29 de maio de 2017

Mikrotik - Using OSPF to create full duplex behaviour for wireless links

fonte: Using OSPF to create full duplex behaviour for wireless links

One reality that all WISPs face is that all radio communications are half-duplex.  When one end of a link is “speaking”, the other end must be “listening”.  For many applications, this is sufficient for our purpose.  When a link becomes busy, however, some types of communications are negatively impacted by the delays caused by this behaviour.  Mikrotik RouterOS offers some options to help you alleviate this congestion without breaking the bank. In this article, I will discuss the details for how to configure Mikrotik RouterOS and OSPF to provide a simulated full-duplex link with the added benefit of failover to half-duplex in the event of a single link failure.
This idea is taken from an article I wrote on my main website back in November of 2006.

Some of the advantages with this method include:
  1. It is full duplex (simulated)
  2. It will offer automatic failover in the event of a link failure (only one link – and losing this link will lose the full duplex “feel” of the link)
  3. It is VERY scalable
Use the following diagram as a reference:
The first scenario will be exactly as pictured. The four bridge radios can be ANY type of bridge device. They could be Mikrotik RB600 or RB411 with a single radio and configured as WDS bridged links or they could be 2 sets of Trango Tlink10s. For the purpose of this discussion, the bridges must be there, but what the specific equipment will only determine just how much bandwidth you will or will not have.  It is VERY IMPORTANT that the bridges pictured are true layer 2 bridges.
The basic idea is to create the links, then using OSPF path cost, cause the traffic from one side of the link to use link A and the traffic going the other way to use link B. If either link fails, the traffic will automatically failover and use the working link. I won’t discuss the configuration of the bridge devices, but they must be true bridges. (MT with WDS will work just fine).
Once you have the links in place, you will plug Link A into Router A on ether1, Link B into Router A on ether2 and the LAN side of Router A will be on ether3. The other side (Router B) will be done the same way. To understand how to set up OSPF, refer to Mikrotik’s documentation. You will add the following configurations to the indicated router:
Both routers:
/routing ospf network
add network= area=backbone
add network= area=backbone
Router A:
/routing ospf interface add interface=ether1 cost=100
Router B:
/routing ospf interface add interface=ether2 cost=100

This config will cause traffic from Router A lan side to use Link B (lower cost on ether2). Traffic from Router B will use Link A (lower cost on ether1). If either link fails, OSPF will automatically begin to use the working link.
If you wish, you can configure the same network using an RB600 (or other routerboard) with 2 wireless cards for Router A. The config is basically the same, except that what is shown as Bridge A and Bridge B would become wlan1 and wlan2. The configuration above would be changed appropriately (wlan1 = ether1).
An alternative method to accomplish a full duplex wireless link with Mikrotik is to use NStreme-dual.

0 comentários: