Difference between revisions of "LCR Logic"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
Here simple LCR (Least Cost Routing) e.g. by price is explained in example:
Here simple LCR (Least Cost Routing) is explained.


== Example ==
== Example ==


We have 2 providers A and B.
We have two providers, A and B.


Dialed destination is 921XXXXXXXXXX
The dialed destination is 921XXXXXXXXXX.


Provider A has such rates for prefixes(destinations):
Provider A has the following rate for the prefix (destination):


* 92 rate 0.1
* 92 rate 0.1


No other destination starts with 92
No other destination starts with 92.


Provider B has such rates for prefixes:
Provider B has the following rates for prefixes:


* 92 rate 0.05
* 92 rate 0.05
* 921 rate 0.2
* 921 rate 0.2


So LCR in MOR will group this providers in following order:
So LCR in MOR will group these providers in the following order:


* Provider A with rate 0.1 (92)
* Provider A with rate 0.1 (92)
* Provider B with rate 0.2 (921)
* Provider B with rate 0.2 (921)


It first dials through Provider A, if call fails, Provider B will be used to send the call.
MOR first dials through Provider A. If the call fails, Provider B will be used to send the call.


If call is ANSWERED, BUSY or there's NO ANSWER - then call ends. And Provider B is not used.
If the call is ANSWERED, BUSY or there's NO ANSWER, the call ends, and Provider B is not used.


It is used ONLY when call fails - CONGESTION.
Provider B is used ONLY when the call fails - CONGESTION.


In following schema LCR logic is presented in graphical way:
In the following diagram, LCR logic is presented graphically:


[[Image:lcr_logic.png]]
[[Image:lcr_logic.png]]

Revision as of 12:50, 15 May 2010

Here simple LCR (Least Cost Routing) is explained.

Example

We have two providers, A and B.

The dialed destination is 921XXXXXXXXXX.

Provider A has the following rate for the prefix (destination):

  • 92 rate 0.1

No other destination starts with 92.

Provider B has the following rates for prefixes:

  • 92 rate 0.05
  • 921 rate 0.2

So LCR in MOR will group these providers in the following order:

  • Provider A with rate 0.1 (92)
  • Provider B with rate 0.2 (921)

MOR first dials through Provider A. If the call fails, Provider B will be used to send the call.

If the call is ANSWERED, BUSY or there's NO ANSWER, the call ends, and Provider B is not used.

Provider B is used ONLY when the call fails - CONGESTION.

In the following diagram, LCR logic is presented graphically:

Lcr logic.png