SVI-STP SSME
Squire Technologies - Confidential Document
Page
22
of
57
<
SCCPMatch
cdpn.digits
=
"992"
>
<
SCCPMatch
cdpn.digits
=
"993"
>
<
SCCPMatch
cdpn.digits
=
"994"
>
:
:
:
:
:
:
<
SCCPMatch
cdpn.digits
=
"999"
>
</SCCPMatch>
</SCCPMatch>
</
Ep
>
Again the performance is improved dramatically:
Without nesting to find any number would require 1000 attempted matches for each message
With nesting to find any number would require only 30 attempted matches for each message
4.2.6
Ordering using First Match
The use of the first match attribute in the match elements is highly important. If the logic is that a
match within the routing has enough attributes to constitute the only possible match for an incoming
message then the first match should be set.
For example in the default MTP matches for a linkset or linksetProfile, if the dpc is the only value to
be matched on then all of the matches should have the first match attribute set. As the number of
matches can be large and if not nested all of the matches will be searched then a large number of
comparisons will be made before the best match is returned.
This value is vital to be set for MtpMatching and GTT Translations as these elements are likely to
contain to the most matches at a single nested level.
For large tables, it’s recommend to use nesting and firstMatch to provide the best performance.
4.2.6.1
Ordering
The ordering of matches when using the firstMatch attribute again will improve the throughput of the
system as adding the most popular route (excluding maybe a default route) as the large match then
all of the order possible matches will be check first. If the most popular match was added at the top
of the matching group with the firstMatch attribute set then only a single match would be required to
determine the routing of the message.
Example
<Ep name="mtp-routing-0">
<MTPMatch firstMatch=”true”/>
<MTPMatch dpc="1-44-30" pc_format="ansi888" route="1-44-30/24" />
<MTPMatch dpc="1-44-150" pc_format="ansi888" route="1-44-150/24" />
<MTPMatch dpc="1-44-170" pc_format="ansi888" route="1-44-170/24" />
<MTPMatch dpc="2-181-1" pc_format="ansi888" route="2-181-1/24" />
<MTPMatch dpc="2-181-2" pc_format="ansi888" route="2-181-2/24" />
<MTPMatch dpc="2-185-5" pc_format="ansi888" route="2-185-5/24" />