Table Of Contents
Telephony Gateway Registration Protocol on Cisco IOS Gateways
Prerequisites for TGREP on Cisco IOS Gateways
Restrictions for TGREP on Cisco IOS Gateways
Information About TGREP on Cisco IOS Gateways
Destination Pattern Conversion
How to Configure TGREP on Cisco IOS Gateways
Configuring a Local ITAD and TRIP Neighbor Connections
Configuring the Global Carrier ID
Configuring a POTS Dial Peer for TGREP
Configuring Voice Call Parameters
Verifying the TGREP Configuration on Cisco IOS Gateways
Clear and Reset TGREP Attributes
Configuration Example for TGREP on IOS Gateways
capacity update interval (dial peer)
capacity update interval (trunk group)
voice call capacity timer interval
voice call csr recording interval
voice call csr reporting interval
voice call trigger percent-change
Telephony Gateway Registration Protocol on Cisco IOS Gateways
The Telephony Gateway Registration Protocol (TGREP) on Cisco IOS Gateways feature allows gateways to send routing information to call-control agents, such as Cisco SIP Proxy Servers.TGREP is an auxiliary protocol for Telephony Routing over IP (TRIP), which is a protocol for interdomain exchange of telephone routing information.
Feature Specifications for the Telephone Routing over IP for Cisco IOS Gateways
Feature History Release Modification12.3(1)
This feature was introduced.
Supported PlatformsFor platforms supported in Cisco IOS Release 12.3.(1), consult Cisco Feature Navigator.
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for TGREP on Cisco IOS Gateways
•
Restrictions for TGREP on Cisco IOS Gateways
•
Information About TGREP on Cisco IOS Gateways
•
How to Configure TGREP on Cisco IOS Gateways
•
Configuration Example for TGREP on IOS Gateways
Prerequisites for TGREP on Cisco IOS Gateways
•
Your gateway must have a voice image that is configurable for SIP.
•
Establish a working IP network.
For more information about configuring IP, refer to the Cisco IOS IP Configuration Guide.
•
Configure VoIP.
For more information about configuring VoIP, refer to the Cisco IOS Voice, Video, and Fax Configuration Guide.
Restrictions for TGREP on Cisco IOS Gateways
TGREP can be used to advertise reachable routes on SIP networks only.
Information About TGREP on Cisco IOS Gateways
To configure TGREP on Cisco IOS gateways, you must understand the following concepts:
•
Destination Pattern Conversion
TRIP and TGREP
Telephony Routing over IP (TRIP) is a protocol for interdomain exchange of telephone routing information. TRIP can be used for the discovery of reachable routes and gateway capabilities from gateways in a Voice over IP (VoIP) network. With TRIP, gateways can provide dynamic routing information to associated call-control agents, such as gatekeepers, routing servers, or proxy servers. On these call-control agents, the element that communicates TRIP information is the location server. TRIP allows the gateway to export routes to the location server and also to provide resource information so the location server can perform load balancing.
Location servers exchange routing information to build a graph of the IP Telephony Administrative Domain (ITAD). The ITAD consists of gateways, location servers, and other network elements under the control of a single administrative authority. TRIP works between elements of the ITAD, with the location servers exchanging information between each other to prevent routing loops, exchange attributes necessary to enforce policies, and select routes based on path or gateway characteristics. A sample topology is shown in Figure 1.
Figure 1 Sample TRIP Topology
TRIP is modeled after Border Gateway Protocol 4 (BGP-4) and enhanced with some link state features, as in Open Shortest Path First (OSPF) protocol, Intermediate System-to-Intermediate System (IS-IS), and Server Cache Synchronization Protocol (SCSP). TRIP uses BGP's interdomain transport mechanism, BGP's peer communication, BGP's finite state machine, and formats and attributes similar to those of BGP. Unlike BGP, TRIP permits generic intradomain location server topologies, which simplifies configuration and increases scalability in contrast to BGP's full mesh requirement of internal BGP speakers. TRIP uses an intradomain flooding mechanism similar to that used in OSPF, IS-IS, and SCSP. Intradomain flooding keeps the telephony routing information synchronized between TRIP devices.
TRIP Operation
A TRIP database exchange begins when two peer location servers form a transport protocol connection between one another. They exchange messages to open and confirm the connection parameters, and negotiate the capabilities of each location server as well as the type of information to be advertised over this connection.
Keep-alive messages are sent periodically to ensure that adjacent peers are operational. Notification messages are sent in response to errors or special conditions. If a connection encounters an error condition, a Notification message is sent and the connection is closed.
Once the peer connection has been established, the initial data flow is a dump of all routes relevant to the new peer. Incremental updates are sent as the TRIP routing tables change. TRIP does not require periodic refresh of the routes. Therefore, a location server must retain the current version of all routing entries.
If a particular ITAD has multiple location servers and is providing transit service for other ITADs, then care must be taken to ensure a consistent view of routing within the ITAD. When synchronized, the TRIP routing tables of all internal peers are identical.
TRIP routes are advertised between a pair of location servers in UPDATE messages. The destination addresses and other attributes such as path or egress gateway are included in the UPDATE message.
TGREP in the TRIP Network
TGREP on Cisco IOS gateways works with TRIP and has similar procedures for session establishment. TGREP shares the same format for messages and a subset of attributes with TRIP. TGREP allows the gateway to convey a set of telephone routes to a location server, which resides on a Cisco SIP proxy server. The gateway only sends information because it is only interested in advertising its reachability and is not interested in learning about the reachability of other gateways and other domains.The telephone routes are represented by telephone number prefixes along with attributes that can express resource availability. With TGREP, the routing tables are exchanged once and only change when updates are sent.
TGREP Operation
The TGREP gateway establishes a peer session with a location server within its ITAD. Once the peer session has been established, the gateway sends update messages to the TRIP location server with the gateway's reachability. The gateway also sends any attributes associated with the routes. If the gateway's reachability changes at any point in time, the gateway generates update messages with the change.
Keep-alive messages are periodically exchanged over the peer session between the TGREP gateway and the TRIP location server.
For simple intradomain calls, the gateway sends the route information to the Cisco SIP proxy server. The Cisco SIP Proxy Server performs functions such as address expansion and translation. The Cisco SIP Proxy Server finds an appropriate path and passes the call to the egress gateway, as shown in Figure 2.
Figure 2 Intradomain Calls Using TGREP on IOS Gateways
Calls can also be routed between call-control agents within a domain, as shown in Figure 3. TRIP location servers can dynamically exchange routes.
Figure 3 Calls Routed Between Call-Control Agents Using TGREP on IOS Gateways
Address Family Hierarchy
In typical telephony environments, the E.164 address family is used to process a call. With TRIP, additional addressing is performed with carrier and trunk groups. This level of granularity provides additional flexibility in managing gateway resources, reduces potential update traffic between the gateway and the call control agent, and provides a framework for a scalable architecture. Voice over IP gateways using TGREP can interconnect with network facilities from different carriers and can advertise the carrier information in addition to the telephony destinations, to the call control agent. The address families can be ordered into a hierarchy, as follows:
•
The prefixes used in E.164 addressing point to specific telephony destinations.
•
Trunk groups can terminate calls to several telephony destinations, the information for which is provisioned on the gateway.
•
Trunks of the same carrier may be grouped based on geographical considerations or on the basis of different grades of service that are offered by the carrier to its customers.
Advertisement, reporting, and capacity can be performed on each level of this hierarchy. An illustration of the address family hierarchy is shown in Figure 4.
Figure 4 Address Family Hierarchy
The E. 164 address family is used if the telephony network is a public telephony network. Decimal and pentadecimal options can be used to advertise private dial plans. For example if a company wants to use TRIP in within their enterprise telephony network using 5-digit extensions, then the gateway would advertise the beginning digits of their private numbers as a decimal address family. These calls cannot be sent out of the company's private telephony network because they are not E.164-compliant.
E.164 addresses cannot be more than 15 digits long and can be any of the following types of numbers:
•
A geographic number, where the country code is 1 to 3 digits and the national number is 15-n (where n is 1 to 3). Individual countries can partition the national number into a subscriber number and a an area code subject to the 15-n total length maximum.
•
A global number with a 3 digit country code for global services, and a global subscriber number with up to 12 digits.
•
An international public telecommunication number with a country code of 3 digit, an ID code of 1 to 4 digits, and a subscriber number of 12-x digits (where x=1 to 4).
Trunk Group Resources
Using trunk groups simplifies the task of configuring dial peers and also enables the dynamic selection of interfaces as needed in the gateway. If you have trunk groups configured under the dial peer, all trunk group resources are aggregated for the total circuits (TC) and available circuits (AC) attributes. If the trunk group is shut down and multiple trunk groups are configured, the TC and AC attributes are adjusted.
Destination Pattern Conversion
When the destination pattern is configured on the dial peer, TGREP converts the destination pattern to a TRIP prefix. The TRIP prefix contains only E.164 digits. If symbol or alphabetic characters are used, there is information loss when the conversion happens.
For example, a destination pattern "123..." means that any 6 digits starting with "123" can be terminated by this dial peer. However, TGREP advertises the prefix as "123", so the information about the three additional wildcards is lost. Similarly, if destination pattern is "123T", then TGREP advertises the prefix "123" only. In this case, the information about terminating calls starting with "123" but with any length is lost. When using a location server, the server routes the call to this gateway as long as the DNIS of the call starts with "123", the length of the DNIS does not matter.
Some destination patterns may not qualify as TRIP prefixes and cannot be advertised. Table 1 shows some examples.
How to Configure TGREP on Cisco IOS Gateways
This section contains the following procedures. Each procedure is identified as either required or optional.
•
Configuring a Local ITAD and TRIP Neighbor Connections (Required)
•
Configuring the Global Carrier ID (Optional)
•
Configuring the Trunk Groups (Required)
•
Configuring a POTS Dial Peer for TGREP (Required)
•
Configuring Voice Call Parameters (Optional)
•
Verifying the TGREP Configuration on Cisco IOS Gateways (Optional)
•
DETAILED STEPSTroubleshooting TGREP Configuration on Cisco IOS Gateways (Optional)
Configuring a Local ITAD and TRIP Neighbor Connections
Configure the TRIP connections to start the TRIP processes, configure neighbors in the Internet Telephony Administrative Domain (ITAD), and specify address families.
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
tgrep local-itad string
4.
neighbor ip-address
5.
advertise {e164 | decimal | penta-decimal | trunk-group | carrier}[csr][ac][tc][trunk-group | carrier]
6.
address-family {e164 | decimal | penta-decimal}
7.
exit
8.
end
DETAILED STEPS
What to Do Next
Proceed to the "Configuring the Global Carrier ID" section.
Configuring the Global Carrier ID
The carrier ID for the trunk groups can be set at the global level. Carrier IDs configured locally on the trunk group supersede this global setting.
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
carrier-id string [cic]
4.
end
DETAILED STEPS
What to Do Next
Proceed to the "Configuring the Trunk Groups" section.
Configuring the Trunk Groups
For complete information about trunk group configuration, see the "Configuring Network Side ISDN PRI Signaling, Trunking, and Switching" chapter in the Cisco IOS Dial Technologies Configuration Guide:
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
trunk group group-number
4.
tgrep advertise {trunk-group | carrier} [csr] [ac] [tc] [prefix] [disable]
5.
carrier-id string [cic]
6.
capacity update interval seconds
7.
exit
8.
end
DETAILED STEPS
Command or Action PurposeStep 1
enable
Example:Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure terminal
Example:Router# configure terminal
Enters global configuration mode.
Step 3
trunk group group-number
Example:Router(config)# trunk group 10
Defines the trunk group globally.
•
group-number—A value from 0 to 23 that identifies the trunk group.
Step 4
tgrep advertise {trunk-group | carrier} [csr] [ac] [tc] [disable]
Example:Router(config-trunkgroup)# tgrep advertise trunk-group csr ac tc
Turns on the advertisement of this trunk group.
•
trunk-group—Specifies advertisement for the trunk group family.
•
carrier—Specifies advertisement for the carrier defined under this trunk group.
•
csr—Call success rate.
•
ac—Available circuits.
•
tc—Total circuits.
•
disable—Disables advertisement on the trunk group.
Note
Use tgrep advertise disable to turn off advertisement for this trunk group. When the no tgrep advertise command is used, the global setting takes effect.
•
When only tgrep advertise is entered, the trunk group is advertised without any other attribute. This command sets the attributes to be advertised for the trunk group or carrier or to disable advertisement of the this trunk group or carrier.
Note
This command overrides the attributes set for advertisement using the global advertise (tgrep) command.
Step 5
carrier-id string [cic]
Example:Router(config-trunkgroup)# carrier-id 101 cic
(Optional) The carrier ID can be set locally for the trunk group. Carrier IDs configured locally on the trunk group supersede the global setting.
•
string—Identifier for the carrier ID. Must be 4-digit numeric carrier identification code to be advertised as a TRIP carrier family but can be alphanumeric if used otherwise.
•
cic—Specifies that the carrier ID is a circuit identification code. To advertise the carrier as a TRIP carrier family, the cic keyword must be used. When cic is used, only numeric values can be accepted for the string value. If cic is not used, the string value can be alphanumeric but is not advertised to TRIP location servers.
Step 6
capacity update interval seconds
Example:Router(config-trunkgroup)# capacity update interval 50
(Optional) Changes the capacity update for this trunk group.
•
seconds—Interval, in seconds, between the sending of periodic capacity updates. This can be a number in the range 10 to 1000. The default value is 25 seconds.
Step 7
exit
Example:Router(config-trunkgroup)# exit
Exits trunk group configuration mode.
Step 8
end
Example:Router(config)# end
Exits to privileged EXEC mode.
What to Do Next
Proceed to the "Configuring a POTS Dial Peer for TGREP" section.
Configuring a POTS Dial Peer for TGREP
To configure a POTS dial peer for TGREP, you must do the following:
•
Identify the dial peer by assigning it a unique tag number.
•
Define its destination telephone number or range of telephone numbers.
•
Associate it with a voice port or trunk group through which calls are established.
Under most circumstances, the default values for the remaining dial peer configuration commands are sufficient to establish connections.
For complete information about configuring dial peers, see the "Configuring Dial Plans, Dial Peers, and Digit Manipulation" chapter in the Cisco IOS Voice, Video, and Fax Configuration Guide.
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
dial-peer voice number pots
4.
destination-pattern string [T]
5.
port location
6.
tgrep address family {e164 | decimal | penta-decimal}
7.
tgrep advertise [csr] [ac] [tc] [carrier | trunk-group] [disable]
8.
capacity update interval seconds
9.
exit
10.
end
DETAILED STEPS
Command or Action PurposeStep 1
enable
Example:Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure terminal
Example:Router# configure terminal
Enters global configuration mode.
Step 3
dial-peer voice number pots
Example:Router(config)# dial-peer voice 10 pots
Enters dial-peer configuration mode and defines a local dial peer that connects to a POTS.
•
interface.number—Digits that define a particular dial peer. Valid entries are from 1 to 2147483647.
Step 4
destination-pattern string
Example:Router(config-dial-peer)# destination-pattern 408555....Matches dialed digits to a telephony device.
•
string—A series of digits that specify the E.164 or private dialing plan telephone number. Valid entries are the numbers 0 through 9 and the letters A through D.
See the"Destination Pattern Conversion" section for more information about valid destination pattern entries for TGREP.
Step 5
port location
Example:Router(config-dial-peer)# port 1/0/0
Maps the dial peer to a specific logical interface.
•
The port command syntax is platform-specific. For more information about the syntax of this command, see the chapter "Configuring Voice Ports" in the Cisco IOS Voice, Video, and Fax Configuration Guide.
Step 6
tgrep address family {e164 | decimal | penta-decimal}
Example:Router(config-dial-peer)# tgrep address family e164
Sets the address family to be used by the dial peer.
•
Configuring the address family on this dial peer overrides the global address family configuration:
•
e164—E.164 address family.
•
decimal—Digital address family
•
penta-decimal—Pentadecimal address family
Step 7
tgrep advertise [csr] [ac] [tc] [carrier | trunk-group] [disable]
Example:Router(config-dial-peer)# tgrep advertise csr ac tc carrier
Turns on the prefix advertisement or any particular attribute of this dial peer.
•
csr—Call success rate.
•
ac—Available circuits.
•
tc—Total circuits.
•
trunk-group—Specifies advertisement for the trunk group address family attributes.
•
carrier—Specifies advertisement for the carrier address family attributes.
•
disable—Disables advertisement on the trunk group.
Note
Use tgrep advertise disable to turn off advertisement for this dial peer. When the no tgrep advertise command is used, the global setting takes effect.
•
When only tgrep advertise is entered, the dial peer is advertised without any other attribute. This command sets the attributes to be advertised for the trunk group or carrier or to disable advertisement of the this trunk group or carrier.
Note
This command overrides the attributes set for advertisement using the global advertise (tgrep) command.
Step 8
capacity update interval seconds
Example:Router(config-dial-peer)# capacity update interval 50
(Optional) Changes the capacity update for prefixes related to this dial peer.
•
seconds—Interval, in seconds, between the sending of periodic capacity updates. This can be a number in the range 10 to 1000. The default value is 25 seconds.
Step 9
exit
Example:Router(config-dial-peer)# exit
Exits dial peer configuration mode.
Step 10
end
Example:Router(config)# end
Exits to privileged EXEC mode.
What to Do Next
Proceed to the "Configuring Voice Call Parameters" section.
Configuring Voice Call Parameters
Different options for configuring voice call parameters can be used depending on what kind of data is to be sent.
Because the available circuit (AC) attribute of a destination is very dynamic, reporting of this attribute should be handled carefully. AC should be reported as frequently as possible so that the location server has current information about the resources. However, the location server should not be overwhelmed with too many updates.
A smoothing algorithm is applied to the quantity of AC reports. The algorithm eliminates reporting of noise. The degree of smoothing can be configured with the voice call capacity mir stw command. This command sets the smoothing transition time for weight (STW). STW is the time it takes for the current smoothed value of AC to come halfway between the current smoothed value and the current instantaneous value of AC. Lower STW values speed the smoothed value of AC as it approaches the instantaneous value of AC. When STW is set to 0, the smoothed value is always equal to the instantaneous value of AC.
Instantaneous and smoothed values of AC are shown in Figure 5. Note that the instantaneous values, which are a sample at a particular moment in time, can spike, while the smoothed value takes the sample averaged over time.
Figure 5 Instantaneous and Smoothed Values for AC
For the reporting interval, a periodic timer called the capacity update timer handles periodic updates of AC and can be configured using the voice call capacity timer interval command. For example, if AC has changed since the last reporting, the AC is again reported when the capacity update timer expires. In addition, AC is reported when any of the following events happens:
•
Absolute percent change is above a threshold. This can be configured with the voice call trigger hwm percent-change command.
•
Value of AC falls below a threshold, called the low water mark. This can be configured with the voice call trigger hwm lwm command.
•
Value of AC goes above a threshold, called the high water mark. This can be configured with the voice call trigger hwm hwm command.
•
The smoothed curve of AC has a maximum or a minimum. This represents a change in the direction of the call rate. This can be configured with the voice call capacity reporting maxima command. This reporting is off by default.
•
The smoothed curve of AC has an inflection point. This represents the rate of call rate has changed sign.This can be configured with the voice call capacity reporting inflection command. This reporting is off by default.
Maximum, minimum and inflection points are illustrated in Figure 6.
Figure 6 Maximum, Minimum, and Inflection Points for Available Capacity
All of the AC reporting, called the interesting point of AC, will be done if the specified event happens within the minimum interval between reporting (mir) time since last reporting. The mir parameter, configured in the voice call capacity mir mir command, sets the amount of time used for the interval to control the number of interesting points that are reported so not to overwhelm the location server with too many AC updates.
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
voice call {carrier | trunkgroup | prefix} capacity {mir | stw} value
4.
voice call {carrier | trunkgroup | prefix} capacity reporting {maxima | inflection}
5.
voice call {carrier | trunkgroup | prefix} capacity timer interval value
6.
voice call {carrier | trunkgroup | prefix} csr data-points value
7.
voice call {carrier | trunkgroup | prefix} csr recording interval value
8.
voice call {carrier | trunkgroup | prefix} csr reporting interval value
9.
voice call {carrier | trunkgroup | prefix} trigger {percent-change | lwm | hwm} value
10.
end
DETAILED STEPS
What to Do Next
If, after you have performed the preceding tasks, the output from the optional show commands does not appear to be accurate, proceed to the "DETAILED STEPSTroubleshooting TGREP Configuration on Cisco IOS Gateways" task.
Verifying the TGREP Configuration on Cisco IOS Gateways
To verify that the TGREP on Cisco IOS Gateways feature is working, perform the following optional steps:
•
Clear and Reset TGREP Attributes
Monitor TGREP Status
To display information about TGREP, perform these tasks:
SUMMARY STEPS
1.
enable
2.
show tgrep neighbors {* |ip_address}
3.
show voice eddri prefix [prefix_number]
DETAILED STEPS
The following example displays all neighbors:
Router# show tgrep neighbors *There are 1 nbrs configured------------------ NBR:16.1.1.202----------------------TIMERS:Keepalive : Timer StoppedHold Timer : Timer StoppedConnect Retry : Running, time remaining in ms, 20698SYNC IN PROGRESSSTATE: TRIPS_IDLEQUEUES:writeQ : 0sec_writeQ : 0readQ : 0SOCKET FDs:prim socket -1, sec socket -1tgrep_update_version : 0LAST RESET: USER_INITIATEDRouter#Router#!!!! Trip Connection is setup here...------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------Step 1
The following example displays applicable prefixes:
Router# show voice eddri prefix 4prefix 4 address family decimaladvertise flag 0x27 ac 24 tc 24 capacity timer 25 secAC_avg 24, FD_avg 0, SD_avg 0succ_curr 0 tot_curr 0succ_report 0 tot_report 0changed 0 replacement position 0trunk group castg2dial peer tag 1001Clear and Reset TGREP Attributes
To clear TGREP attributes, use the following commands:
SUMMARY STEPS
1.
enable
2.
clear tgrep counters [csr | ac] [{dial-peer | trunk-group | carrier} {value | *}] [*]
3.
clear tgrep neighbor {ip_address | *}
DETAILED STEPS
Troubleshooting TGREP Configuration on Cisco IOS Gateways
To debug TGREP activity, events, and operations, use these commands in privileged EXEC mode. Use the no version of each command to turn off debugging:
SUMMARY STEPS
1.
enable
2.
configure {terminal | memory | network}
3.
debug tgrep error
4.
debug tgrep events
5.
debug tgrep fsm
6.
debug tgrep io
7.
debug tgrep msgdump
8.
debug tgrep msgs
9.
debug tgrep timer-event
10.
debug tgrep timers
11.
debug tgrep tripr
12.
debug voip eddri {event | timers | prefix | all}
DETAILED STEPS
The following example shows any errors in functioning:
Router# debug tgrep errorsErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work on------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------We already have connection with such itad/tripid combo in progressNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onError: Active connection to the nbr failed NBR:16.1.1.203Errors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onThe following example shows main events occurring throughout the subsystem:
Router# debug tgrep eventstgrep-gw-1-02#Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeThe following example shows FSM activity:
Router# debug tgrep fsmGeneric routes combined : 0x61FA38B4, 13 bytes++++++++++++++++++++++++++++++++++++++0x0 0x2 0x0 0x9 0x00x5 0x0 0x0 0x0 0x30x6D 0x63 0x69-----------------------------------+++++++++++++++++++++++++++++++++++++NEXT HOP SERVER : 0x61FA38C1, 10 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x0-----------------------------------+++++++++++++++++++++++++++++++++++++AD RD PATH : 0x61FA38CB, 10 bytes++++++++++++++++++++Getting a major event 4 on I/OReceived a TRIP_IO_WRITEQ_BOOLEAN event 313The peer connection check for fd 1 is successWriting some pending stuff first NBR:14.1.1.210Moving ahead with more reading rc = 4-->Starting regular write for nbr NBR:14.1.1.210The queuesize before we start is 1Selected primary socket for NBR:14.1.1.210The peer connection check for fd 1 is successDequeued 1 message (left 0) for NBR:14.1.1.210 for writing to socketA socket has gulped all that we fed it NBR:14.1.1.210 -- 92 bytesDequeued 0 message (left 0) for NBR:14.1.1.210 for writing to socketWrote out the whole socket buffer or Q in 2 attempts NBR:14.1.1.210 rc 4 wasNBR:14.1.1.210 Starting keepalive timer after writing somethingGetting a major event 512 on I/OReceived an event on a socket for some nbrReceived Mask event of 0x1 for fd 1Looking for fd match on nbr NBR:14.1.1.210Recieved READ_EVENT for for nbr NBR:14.1.1.210Read 3 bytes from that network for nbr NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++This is what we READ : 0x63E79090, 3 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x4-----------------------------------NBR:14.1.1.210 Re-starting hold timer after a message is readtmsg malloc total memory allocated is 95Allocated another buffer for TRIP messageTRIP Messages Read so far 1+++++++++++++++++++++++++++++++++++++Enqueing this tmsg : 0x691D09DC, 3 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x4-----------------------------------Enqueuing a message into the ReadQ of nbr: NBR:14.1.1.210Read -1 bytes from that network for nbr NBR++++++++++++++++++0x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD2-----------------------------------+++++++++++++++++++++++++++++++++++++AD RD PATH : 0x61FA38D5, 10 bytes++++++++++++++++++++++++++++++++++++++0x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD2-----------------------------------+++++++++++++++++++++++++++++++++++++LOCAL PREF : 0x61FA38DF, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0x7 0x0 0x4 0x00x0 0x0 0x5-----------------------------------+++++++++++++++++++++++++++++++++++++Available Ckts : 0x61FA38E7, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0xF 0x0 0x4 0x00x0 0x0 0x17-----------------------------------+++++++++++++++++++++++++++++++++++++TOTAL CIRCUITS : 0x61FA38EF, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0x10 0x0 0x4 0x00x0 0x0 0x17-----------------------------------+++++++++++++++++++++++++++++++++++++CALL SUCCESS RATE : 0x61FA38F7, 12 bytes++++++++++++++++++++++++++++++++++++++0x0 0x11 0x0tgrep-gw-1-02#tgrep-gw-1-02#und al:14.1.1.210Getting a major event 512 on I/OErrors : Process socket event has an invalid fd to work onl 0x8 0x00x0 0x0 0x78 0x0 0x00x0 0x7F-----------------------------------+++++++++++++++++++++++++++++++++++++PREFIX_ATTRIBUTE : 0x61FA3903, 64 bytes++++++++++++++++++++++++++++++++++++++0x0 0x12 0x0 0x3C 0x00x4 0x31 0x31 0x32 0x380x0 0x4 0x31 0x31 0x320x37 0x0 0x4 0x31 0x310x32 0x36 0x0 0x4 0x310x31 0x32 0x35 0x0 0x40x31 0x31 0x32 0x34 0x00x4 0x31 0x31 0x32 0x330x0 0x4 0x31 0x31 0x320x32 0x0 0x5 0x39 0x390x39 0x39 0x39 0x0 0x90x31 0x32 0x33 0x34 0x350x36The following example shows detailed socket level activities:
Router# debug tgrep ioDispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.202Dispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.203A socket has gulped all that we fed it NBR:16.1.1.202 -- 5 bytesClosing all the fds for NBR:16.1.1.202NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetA Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetGoing to initiate a connect to 16.1.1.202Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.202 fd 1Received Mask event of 0x1 for fd 1Recieved WRITE_EVENT for for nbr NBR:16.1.1.202Only Active Open SucceededPost connect succeded for the nbr NBR:16.1.1.202, fd 1A socket has gulped all that we fed it NBR:16.1.1.202 -- 29 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Received Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 29 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work on------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------Doing fd reassignment for nbr NBR:16.1.1.202Moving ahead with more reading rc = 4A socket has gulped all that we fed it NBR:16.1.1.202 -- 3 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Moving ahead with more reading rc = 4A socket has gulped all that we fed it NBR:16.1.1.202 -- 598 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 15 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onRouter#Router#clear trip nei *Router#Dispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.202Dispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.203A socket has gulped all that we fed it NBR:16.1.1.202 -- 5 bytesClosing all the fds for NBR:16.1.1.202NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetA Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetThe following example shows the dump of the details of TGREP messages:
Router# debug tgrep msgdumptgrep-gw-1-02#Received an KEEPALIVE NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x69188648, 150 bytes++++++++++++++++++++++++++++++++++++++0x0 0xFFFFFF96 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00x9 0x0 0x5 0x0 0x00x0 0x3 0x6D 0x63 0x690x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x00x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x7 0x0 0x4 0x00x0 0x0 0x5 0x0 0xF0x0 0x4 0x0 0x0 0x00x16 0x0 0x10 0x0 0x40x0 0x0 0x0 0x17 0x00x11 0x0 0x8 0x0 0x00x0 0x74 0x0 0x0 0x00x7B 0x0 0x12 0x0 0x3C0x0 0x4 0x31 0x31 0x320x38 0x0 0x4 0x31 0x310x32 0x37 0x0 0x4 0x310x31 0x32 0x36 0x0 0x40x31 0x31 0x32 0x35 0x00x4 0x31 0x31 0x32 0x340x0 0x4 0x31 0x31 0x320x33 0x0 0x4 0x31 0x310x32 0x32 0x0 0x5 0x390x39 0x39 0x39 0x39 0x00x9 0x31 0x32 0x33 0x340x35 0x36 0x37 0x38 0x39-----------------------------------Received an KEEPALIVE NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x691B0CA0, 92 bytes++++++++++++++++++++++++++++++++++++++0x0 0x5C 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00xF 0x0 0x3 0x0 0x00x0 0x9 0x31 0x32 0x330x34 0x35 0x36 0x37 0x380x39 0x0 0x3 0x0 0x60x0 0x0 0x4 0xFFFFFFD2 0x00x0 0x0 0x4 0x0 0x60x2 0x1 0x0 0x0 0x40xFFFFFFD2 0x0 0x5 0x0 0x60x2 0x1 0x0 0x0 0x40xFFFFFFD2 0x0 0x7 0x0 0x40x0 0x0 0x0 0x5 0x00xF 0x0 0x4 0x0 0x00x0 0x17 0x0 0x10 0x00x4 0x0 0x0 0x0 0x170x0 0x11 0x0 0x8 0x00x0 0x0 0x75 0x0 0x00x0 0x78-----------------------------------+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x691885EC, 150 bytes++++++++++++++++++++++++++++++++++++++0x0 0xFFFFFF96 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00x9 0x0 0x5 0x0 0x00x0 0x3 0x6D 0x63 0x690x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x00x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x7 0x0 0x4 0x00x0 0x0 0x5 0x0 0xF0x0 0x4 0x0 0x0 0x00x16 0x0 0x10 0x0 0x40x0 0x0 0x0 0x17 0x00x11 0x0 0x8 0x0 0x00x0 0x75 0x0 0x0 0x00x7C 0x0 0x12 0x0 0x3C0x0 0x4 0x31 0x31 0x320x38 0x0 0x4 0x31 0x310x32 0x37 0x0 0x4 0x310x31 0x32 0x36 0x0 0x40x31 0x31 0x32 0x35 0x00x4 0x31 0x31 0x32 0x340x0 0x4 0x31 0x31 0x320x33 0x0 0x4 0x31 0x310x32 0x32 0x0 0x5 0x390x39 0x39 0x39 0x39 0x00x9 0x31 0x32 0x33 0x340x35 0x36 0x37 0x38 0x39-----------------------------------Received an KEEPALIVE NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210The following example shows the movement of TGREP messages:
Router# debug tgrep messagestgrep-gw(config-tgrep)#Received an OPEN NBR:14.1.1.210------------------------ OPEN DUMP BEGINS ------------------------0x1 0x0 0x0 0xFFFFFFB4 0x00x0 0x0 0x19 0x0 0x00x45 0x67 0x0 0x0Version :1Hold Time :180My ITAD :25TRIP ID :17767No optional parameters -- hence all route types supported.Send-Recv capability in effect------------------------ OPEN DUMP ENDS ------------------------Enqueued a Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210The following example shows events that are related to the timer:
Router# debug tgrep timer-eventsReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryEntering trip_reset_nbr_timers to reset timersStarting the CONNECT timer for nbr NBR:16.1.1.202 for value of 30 secondsStopping hold timer and keepalive timer while resetting NBR:16.1.1.202Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryRouter#clear trip nei *Router#Entering trip_reset_nbr_timers to reset timersStarting the CONNECT timer for nbr NBR:16.1.1.202 for value of 30 secondsStopping hold timer and keepalive timer while resetting NBR:16.1.1.202Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryIO_CONNECT TIMER for nbr NBR:16.1.1.202 has expiredNBR:16.1.1.202 -Restarting the connect timerNBR:16.1.1.202 starting the holder timer after post connect with large value------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------NBR:16.1.1.202 Starting keepalive timer after writing somethingNBR:16.1.1.202 Re-starting hold timer after a message is readReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPNBR:16.1.1.202 Starting keepalive timer after writing somethingNBR:16.1.1.202 Re-starting hold timer after a message is readD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIIO_CONNECT TIMER for nbr NBR:16.1.1.202 has expiredNBR:16.1.1.202 -Stopping the connect timer, no need anynoreMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryNBR:16.1.1.202 Re-starting hold timer after a message is readReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryNBR:16.1.1.202 Received a Keepalive timer time outNBR:16.1.1.202 Starting keepalive timer after writing somethingNBR:16.1.1.202 Re-starting hold timer after a message is readReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryclear trip nei *Router#Entering trip_reset_nbr_timers to reset timersStarting the CONNECT timer for nbr NBR:16.1.1.202 for value of 30 secondsStopping hold timer and keepalive timer while resetting NBR:16.1.1.202Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryThe following example shows timer activity:
Router# debug tgrep timerstgrep-gw-1-02#Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryclReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expirytgrep-gw-1-02#Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expirytgrep-gw-1-02#und aReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryThe following example enables debugs from the TRIP Reporter:
Router# debug tgrep tripr20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x2prefix 1128 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 0 total 020:51:11:20:51:11: --------------------------------20:51:11: attrib 0x400220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 112820:51:11: ac: 2220:51:11:20:51:11: =======================================20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x27prefix 123456789 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 117 total 12020:51:11: tg mci cc mci20:51:11: tripr_build_triprtr_prefix_destination_ev tg mci cic 0 carrier mci20:51:11:20:51:11: --------------------------------20:51:11: attrib 0x1C00220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 12345678920:51:11: csr: tot 120 succ 11720:51:11: ac: 22tc: 2320:51:11:20:51:11: =======================================20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x27prefix 99999 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 0 total 020:51:11: tg mci cc mci20:51:11: tripr_build_triprtr_prefix_destination_ev tg mci cic 0 carrier mci20:51:11:20:51:11: --------------------------------20:51:11: attrib 0x1C00220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 9999920:51:11: csr: tot 0 succ 020:51:11: ac: 22tc: 2320:51:11:20:51:11: =======================================The following example enables debugs from the EDDRI:
Router# debug voip eddri all21:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:53: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:53: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:53: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:53: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:53: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:53: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:53: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:53: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:53: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:53: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:53: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:54: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:54: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:54: eddri_interesting_ac_pt: percent trigger diff 421:00:54: eddri_interesting_ac_pt: Interesting Point21:00:54: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:54: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:54: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:54: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:54: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:54: eddri_interesting_ac_pt: percent trigger diff 421:00:54: eddri_interesting_ac_pt: Interesting Point21:00:54: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:54: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:54: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:54: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:54: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:54: eddri_interesting_ac_pt: percent trigger diff 421:00:54: eddri_interesting_ac_pt: Interesting Point21:00:54: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:54: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:54: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:54: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:54: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:54: eddri_interesting_ac_pt: percent trigger diff 421:00:54: eddri_interesting_ac_pt: Interesting Point21:00:54: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 121:00:54: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:58: eddri_send_crm_or_tg_event_to_clients : reason 0x8 subsys 321:00:58: eddri_send_crm_or_tg_event_to_clients : reason 0x8 subsys 121:00:58: eddri_send_crm_or_tg_event_to_clients attr 0x7F ev_id 2 qid 0x64209230 reason 0x8eddri_dequeue_event : dequeue eventConfiguration Example for TGREP on IOS Gateways
This configuration example shows TGREP enabled on a Cisco AS5300 gateway:
version 12.2no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryptionservice internal!hostname Router!!username allspe 2/0 2/23firmware location feature_card_flash!!resource-pool disableclock timezone GMT 0!ip subnet-zeroip host CALLGEN-SECURITY-V2 10.96.8.90 10.78.0.0ip host dirt 192.168.254.254!
Note
The global carrier ID is set here. Carrier IDs configured locally on the trunk group supersede this global setting.
carrier-id 33!!
Note
The trunk groups are defined here. These trunk groups are defined as TGREP carriers and are advertised to TRIP location servers, as the cic keyword is used in each trunk group. Note that in the trunk group att, the capacity update interval for that particular carrier ID has been set.
trunk group attcarrier-id 444 ciccapacity carrier update interval 90!!trunk group mcicarrier-id 16 cic!!trunk group 404carrier-id 2 cic!!trunk group 101capacity trunk-group update interval 90!isdn switch-type primary-ni!!
Note
The capacity timer interval has been set globally for trunk groups.
voice call trunkgroup capacity timer interval 100!voice service pots!!!no voice hpi capture bufferno voice hpi capture destination!fax interface-type modemmta receive maximum-recipients 0!controller E1 0clock source line primarypri-group timeslots 1-31!controller E1 1ds0-group 1 timeslots 1-2 type e&m-fgb dtmf dnisds0-group 2 timeslots 3-5 type e&m-fgb dtmf dnisds0-group 3 timeslots 6-10 type e&m-fgb dtmf dniscas-custom 1trunk-group attcas-custom 2trunk-group mcicas-custom 3!controller E1 2pri-group timeslots 1-24!controller E1 3shutdownclock source line secondary 3ds0-group 0 timeslots 1-15,17-24 type e&m-immediate-startcas-custom 0!gw-accounting h323gw-accounting h323 vsagw-accounting voip!!interface Ethernet0ip address 10.8.56.13 255.255.0.0ip directed-broadcastno ip route-cacheno ip mroute-cachefair-queue 64 256 32ip rsvp bandwidth 1000 1000!interface Serial0:15no ip addresstrunk-group 101isdn switch-type primary-niisdn incoming-voice modemno cdp enable!interface Serial2:15no ip addressshutdownisdn switch-type primary-niisdn protocol-emulate networkno isdn T309-enableno cdp enable!interface FastEthernet0ip address 172.16.140.117 255.255.0.0no ip route-cacheno ip mroute-cacheduplex autospeed auto!ip classlessip route 0.0.0.0 0.0.0.0 1.8.0.1ip route 172.16.0.0 255.0.0.0 172.16.140.1no ip http serverip pim bidir-enable!!dialer-list 1 protocol ip permitdialer-list 1 protocol ipx permit!!radius-server host 10.7.157.1 auth-port 1645 acct-port 1646radius-server retransmit 1radius-server key ciscoradius-server authorization permit missing Service-Typeradius-server vsa send accountingradius-server vsa send authenticationcall rsvp-sync!voice-port 0:D!voice-port 1:1compand-type a-law!voice-port 1:2compand-type a-law!voice-port 1:3compand-type a-law!voice-port 2:D!voice-port 3:0compand-type a-law!!mgcp profile default!
Note
The local ITAD is configured in the following steps. Note that each type of address family is defined using separate advertise commands. If an address family is not defined, it is not advertised.
tgrep local-itad 1neighbor 2.3.4.5nexthop 1.1.1 advertise e164 csr ac tc trunk-groupadvertise decimal csr ac tc carrieradvertise penta-decimal csr ac tc carrieradvertise trunk-group ac tcadvertise carrier csr tcaddress-family e164!tgrep 1!dial-peer cor custom!!!dial-peer voice 1 voipdestination-pattern Tsession target ipv4:1.8.56.12!
Note
The POTS dial peers are configured here. Note that for dial peers 101 and 105, the address families are defined and override the global setting.
dial-peer voice 101 potstrunkgroup 101trunkgroup mcishutdowntgrep address-family decimaldestination-pattern 510888....no digit-stripdirect-inward-dialforward-digits all!dial-peer voice 102 potstrunk-group-label source 101direct-inward-dial!dial-peer voice 103 potstrunkgroup 101trunkgroup mcishutdowndestination-pattern 567!dial-peer voice 104 potstrunkgroup 404shutdowndestination-pattern 76[5-7]!dial-peer voice 105 potstrunkgroup 101tgrep address-family penta-decimaldestination-pattern 766!!line con 0exec-timeout 0 0logging synchronousline 1 24no flush-at-activationmodem Hostno modem ibcline aux 0line vty 0 4password lab!scheduler interval 1000endWhere to Go Next
If you now want to further configure TRIP on Cisco IOS gateways, refer to Cisco.com and choose the following path: Cisco > Service & Support > Technical Assistance Center > Technologies > ??
Additional References
For additional information related to TGREP on Cisco IOS gateways, refer to the following references:
Related Documents
Related Topic Document TitleVoIP configuration tasks
Cisco IOS Voice, Video, and Fax Configuration Guide, Cisco IOS Release 12.2
Additional VoIP commands: complete command syntax, command mode, defaults, usage guidelines, and examples
Cisco IOS Voice, Video, and Fax Command Reference, Cisco IOS Release 12.2
Cisco SIP Proxy Server configuration and administration tasks
Standards
Standards1 TitleIETF draft
Usage of TRIP in Gateways for Exporting Phone Routes
1 Not all supported standards are listed.
MIBs
MIBs1 MIBs LinkNo new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature.
To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
1 Not all supported MIBs are listed.
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
http://tools.cisco.com/ITDIT/MIBS/servlet/index
If Cisco MIB Locator does not support the MIB information that you need, you can also obtain a list of supported MIBs and download MIBs from the Cisco MIBs page at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
To access Cisco MIB Locator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions found at this URL:
RFCs
Technical Assistance
Command Reference
This section documents new commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3(1) command reference publications.
•
capacity update interval (dial peer)
•
capacity update interval (trunk group)
•
tgrep advertise (trunk group)
•
voice call capacity reporting
•
voice call capacity timer interval
•
voice call csr recording interval
•
voice call csr reporting interval
•
voice call trigger percent-change
address-family
To set the global address family to be used on all dial peers, use the address-family command in TGREP configuration mode. To change back to the default address family, use the no form of this command.
address family {e164 | decimal | penta-decimal}
no address family {e164 | decimal | penta-decimal}
Syntax Description
Defaults
E.164 address family
Command Modes
TGREP configuration
Command History
Usage Guidelines
The E. 164 address family is used if the telephony network is a public telephony network. Decimal and pentadecimal options can be used to advertise private dial plans. For example if a company wants to use TRIP in within their enterprise telephony network using 5-digit extensions, then the gateway would advertise the beginning digits of their private numbers as a decimal address family. These calls cannot be sent out of the company's private telephony network because they are not E.164-compliant.
The pentadecimal family allows numbers 0 through 9 and alphabetic characters A through E and can be used in countries where letters are also carried in the called number.
Examples
The following example shows that the address family for ITAD 1234 is set for E.164 addresses:
Router(config)# tgrep local-itad 1234Router(config-tgrep)# address family e164Related Commands
advertise (tgrep)
To turn on reporting for a specified address family, use the advertise command in TGREP configuration mode. To turn off reporting for a specified address family, use the no form of this command.
advertise {e164 | decimal | penta-decimal }[csr][ac][tc][trunk-group | carrier]
advertise {trunk-group | carrier}[csr][ac][tc]
no advertise {e164 | decimal | penta-decimal | trunk-group | carrier}
Syntax Description
Defaults
No attributes for address families are advertised.
Command Modes
TGREP configuration
Command History
Usage Guidelines
If you specify e164, decimal or penta-decimal for the address family, you can stipulate whether the related carrier or trunk-group parameters are advertised. If you stipulate carrier or trunk-group for the address family, you can stipulate that the related address family prefix is advertised. If you stipulate carrier or trunk-group for the address family, you cannot stipulate carrier or trunk-group attributes for advertising.
When the no version of this command is used, it turns off the advertisement of that particular address family altogether.
Examples
The following example shows that the E.164 address family with call success rate, available circuits, total circuits, and trunk group attributes is being advertised for ITAD 1234:
Router(config)# tgrep local-itad 1234Router(config-tgrep)# advertise e164 csr ac tc trunk-groupRelated Commands
capacity update interval (dial peer)
To change the capacity update for prefixes associated with this dial peer, use the capacity update interval command in dial peer configuration mode. To return to the default, use the no form of this command.
capacity update interval seconds
no capacity update interval seconds
Syntax Description
seconds
Interval, in seconds, between the sending of periodic capacity updates. This can be a number in the range 10 to 1000. The default value is 25 seconds.
Defaults
25 seconds
Command Modes
Dial peer configuration
Command History
Usage Guidelines
The update interval should be set depending on the number of updates that are sent. Updates are sent more often when more calls are coming in, which can lead to data getting out of sync. If the interval is too short for the amount of updates, the location server can be overwhelmed. If this dial peer gets too much traffic, set the seconds argument to a higher value.
Examples
The following example shows that POTS dial peer 10 is having the capacity update occur every 35 seconds:
Router(config)# dial-peer voice 10 potsRouter(config-dial-peer)# capacity update interval 35Related Commands
Command DescriptionEnters dial-peer configuration mode and specifies the method of voice-related encapsulation.
capacity update interval (trunk group)
To change the capacity update for carriers or trunk groups, use the capacity update interval command in trunk group configuration mode. To return to the default, use the no form of this command.
capacity {carrier | trunk-group} update interval seconds
no capacity {carrier | trunk-group} update interval seconds
Syntax Description
Defaults
25 seconds
Command Modes
Trunk group configuration
Command History
Usage Guidelines
The update interval should be set depending on the number of updates that are sent. Updates are sent more often when more calls are coming in, which can lead to data getting out of sync. If the interval is too short for the amount of updates, the location server can be overwhelmed. If this trunk group or carrier group gets too much traffic, set the seconds argument to a higher value.
Examples
The following example sets the capacity update for trunk group 101 to occur every 45 seconds:
Router(config)# trunk group 101Router(config-trunkgroup)# capacity trunk-group update interval 45Related Commands
carrier-id (global)
To set the carrier ID for trunk groups when a local carrier ID is not configured, use the carrier-id command in global configuration mode. To disable the carrier ID, use the no form of this command.
carrier-id name [cic]
no carrier-id name[cic]
Syntax Description
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Usage Guidelines
To advertise the carrier as a TRIP carrier family, the cic keyword must be used. When cic is used, only numeric values can be accepted for the name value. If cic is not used, the name value can be alphanumeric but is not advertised to TRIP location servers.
Examples
The following example shows a carrier ID using the circuit identification code:
Router(config)# carrier-id 1234 cicRelated Commands
carrier-id (trunk group)
To specify the carrier associated with a trunk group, use the carrier-id command in trunk group configuration mode. To delete the source carrier ID, use the no form of this command.
carrier-id name [cic]
no carrier-id name [cic]
Syntax Description
Defaults
No default behavior or values
Command Modes
Trunk group configuration
Command History
Usage Guidelines
In a network, calls are routed over incoming trunk groups and outgoing trunk groups. The name arguments identifies the carrier that handles the calls for a specific trunk group. In some cases, the same trunk group may be used to carry both incoming calls and outgoing calls.
The carrier ID configured locally on the trunk group supersedes the globally configured carrier ID.
To advertise the carrier as a TRIP carrier family, the cic keyword must be used. When cic is used, only numeric values can be accepted for the name value. If cic is not used, the name value can be alphanumeric but is not advertised to TRIP location servers.
Examples
The following example indicates that carrier "alpha1" carries calls for trunk group 5:
Router(config)# trunk group 5Router(config-trunk-group)# carrier-id alpha1The following example shows that the carrier with circuit identification code 1234 carries calls for trunk group 101. This trunk group can carry TRIP advertisements:
Router(config)# trunk group 101Router(config-trunk-group)# carrier-id 1234 cicRelated Commands
debug tgrep error
To turn on debugging for any TGREP errors, use the debug tgrep error command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep error
no debug tgrep error
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
The "We already have connection with such itad/tripid combo in progress" message appears when an error occurs where two location servers with the same ITAD and TripID initiate a TRIP connection to the gateway. When the second OPEN message arrives at the gateway, the debug trip error command displays the message.
Examples
The following example shows output from the debug tgrep error command:
Errors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onAfter the errors are reported, the open dump begins. The ITAD is identified in the dump.
------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------The "We already have connection with such itad/tripid combo in progress" message appears when an error occurs where two location servers with the same ITAD and TripID initiate a TRIP connection to the gateway.
We already have connection with such itad/tripid combo in progressNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onError: Active connection to the nbr failed NBR:16.1.1.203Errors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onErrors : Process socket event has an invalid fd to work onNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onRelated Commands
debug tgrep events
To turn on debugging for main events occurring throughout the subsystem, use the debug tgrep events command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep events
no debug tgrep events
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep events command:
tgrep-gw-1-02#Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeTable 2 describes the significant fields shown in the display.
Related Commands
debug tgrep fsm
To turn on debugging for Finite State Machine (FSM) events, use the debug tgrep fsm command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep fsm
no debug tgrep fsm
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep fsm command:
Generic routes combined : 0x61FA38B4, 13 bytes++++++++++++++++++++++++++++++++++++++0x0 0x2 0x0 0x9 0x00x5 0x0 0x0 0x0 0x30x6D 0x63 0x69-----------------------------------+++++++++++++++++++++++++++++++++++++NEXT HOP SERVER : 0x61FA38C1, 10 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x0-----------------------------------+++++++++++++++++++++++++++++++++++++AD RD PATH : 0x61FA38CB, 10 bytes++++++++++++++++++++Getting a major event 4 on I/OHere, a write event occurs. Note how the finite state machine details each step of the writing process.
Received a TRIP_IO_WRITEQ_BOOLEAN event 313The peer connection check for fd 1 is successWriting some pending stuff first NBR:14.1.1.210Moving ahead with more reading rc = 4-->Starting regular write for nbr NBR:14.1.1.210The queuesize before we start is 1Selected primary socket for NBR:14.1.1.210The peer connection check for fd 1 is successDequeued 1 message (left 0) for NBR:14.1.1.210 for writing to socketA socket has gulped all that we fed it NBR:14.1.1.210 -- 92 bytesDequeued 0 message (left 0) for NBR:14.1.1.210 for writing to socketWrote out the whole socket buffer or Q in 2 attempts NBR:14.1.1.210 rc 4 wasNBR:14.1.1.210 Starting keepalive timer after writing somethingGetting a major event 512 on I/OReceived an event on a socket for some nbrReceived Mask event of 0x1 for fd 1Looking for fd match on nbr NBR:14.1.1.210Now a read event occurs. After this event, the total number of TRIP messages read is displayed.
Recieved READ_EVENT for for nbr NBR:14.1.1.210Read 3 bytes from that network for nbr NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++This is what we READ : 0x63E79090, 3 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x4-----------------------------------NBR:14.1.1.210 Re-starting hold timer after a message is readtmsg malloc total memory allocated is 95Allocated another buffer for TRIP messageTRIP Messages Read so far 1+++++++++++++++++++++++++++++++++++++Enqueing this tmsg : 0x691D09DC, 3 bytes++++++++++++++++++++++++++++++++++++++0x0 0x3 0x4-----------------------------------Enqueuing a message into the ReadQ of nbr: NBR:14.1.1.210Read -1 bytes from that network for nbr NBR++++++++++++++++++0x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD2-----------------------------------Statistics for available circuits, total circuits, and call success rate are displayed.
+++++++++++++++++++++++++++++++++++++AD RD PATH : 0x61FA38D5, 10 bytes++++++++++++++++++++++++++++++++++++++0x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD2-----------------------------------+++++++++++++++++++++++++++++++++++++LOCAL PREF : 0x61FA38DF, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0x7 0x0 0x4 0x00x0 0x0 0x5-----------------------------------+++++++++++++++++++++++++++++++++++++Available Ckts : 0x61FA38E7, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0xF 0x0 0x4 0x00x0 0x0 0x17-----------------------------------+++++++++++++++++++++++++++++++++++++TOTAL CIRCUITS : 0x61FA38EF, 8 bytes++++++++++++++++++++++++++++++++++++++0x0 0x10 0x0 0x4 0x00x0 0x0 0x17-----------------------------------+++++++++++++++++++++++++++++++++++++CALL SUCCESS RATE : 0x61FA38F7, 12 bytes++++++++++++++++++++++++++++++++++++++0x0 0x11 0x0tgrep-gw-1-02#tgrep-gw-1-02#und al:14.1.1.210Getting a major event 512 on I/OErrors : Process socket event has an invalid fd to work onl 0x8 0x00x0 0x0 0x78 0x0 0x00x0 0x7F-----------------------------------+++++++++++++++++++++++++++++++++++++PREFIX_ATTRIBUTE : 0x61FA3903, 64 bytes++++++++++++++++++++++++++++++++++++++The prefix is shown here in hex format.
0x0 0x12 0x0 0x3C 0x00x4 0x31 0x31 0x32 0x380x0 0x4 0x31 0x31 0x320x37 0x0 0x4 0x31 0x310x32 0x36 0x0 0x4 0x310x31 0x32 0x35 0x0 0x40x31 0x31 0x32 0x34 0x00x4 0x31 0x31 0x32 0x330x0 0x4 0x31 0x31 0x320x32 0x0 0x5 0x39 0x390x39 0x39 0x39 0x0 0x90x31 0x32 0x33 0x34 0x350x36Related Commands
debug tgrep io
To turn on debugging for detailed socket-level activities, use the debug tgrep io command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep io
no debug tgrep io
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep io command:
Dispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.202Dispatching a TRIP_EV_NBR_IO_ASYNC_RESET to I/O for NBR:16.1.1.203A socket has gulped all that we fed it NBR:16.1.1.202 -- 5 bytesClosing all the fds for NBR:16.1.1.202NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetA Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203NBR:16.1.1.202 is not eligible to write, no non(-1) fd yetNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetAt this point, the connection is initiated.
Going to initiate a connect to 16.1.1.202Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.202 fd 1Received Mask event of 0x1 for fd 1Recieved WRITE_EVENT for for nbr NBR:16.1.1.202Only Active Open SucceededPost connect succeded for the nbr NBR:16.1.1.202, fd 1A socket has gulped all that we fed it NBR:16.1.1.202 -- 29 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Received Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors begin to appear here.
Errors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 29 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onAfter the errors are detected, a dump occurs. The ITAD and TRIP ID are displayed.
------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------Doing fd reassignment for nbr NBR:16.1.1.202Moving ahead with more reading rc = 4A socket has gulped all that we fed it NBR:16.1.1.202 -- 3 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Moving ahead with more reading rc = 4A socket has gulped all that we fed it NBR:16.1.1.202 -- 598 bytesWrote out the whole socket buffer or Q in 2 attempts NBR:16.1.1.202 rc 4 wasNBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 15 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Errors continue to occur. Note that the router still attempts to write, but the connection is not active.
Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onReceived Mask event of 0x1 for fd 1Recieved READ_EVENT for for nbr NBR:16.1.1.202Read 3 bytes from that network for nbr NBR:16.1.1.202Read -1 bytes from that network for nbr NBR:16.1.1.202Errors : Process socket event has an invalid fd to work onGoing to initiate a connect to 16.1.1.203Called a socket_connect with errno 11, confirmation laterInitiated a Async connect call for nbr NBR:16.1.1.203 fd 2Received Mask event of 0x1 for fd 2Recieved WRITE_EVENT for for nbr NBR:16.1.1.203The Active connect never succeded, no passive yet, resetting NBR:16.1.1.203Error: Active connection to the nbr failed NBR:16.1.1.203A Socket error has caused a write failure NBR:16.1.1.203 errno 13Closing all the fds for NBR:16.1.1.203Post connect succeded for the nbr NBR:16.1.1.203, fd -1Moving ahead with more reading rc = 4NBR:16.1.1.203 is not eligible to write, no non(-1) fd yetErrors : Process socket event has an invalid fd to work onRelated Commands
debug tgrep messages
To turn on debugging for movement of TGREP messages, use the debug tgrep messages command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep messages
no debug tgrep messages
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep messages command:
tgrep-gw(config-tgrep)#Received an OPEN NBR:14.1.1.210------------------------ OPEN DUMP BEGINS ------------------------0x1 0x0 0x0 0xFFFFFFB4 0x00x0 0x0 0x19 0x0 0x00x45 0x67 0x0 0x0Version :1Hold Time :180My ITAD :25TRIP ID :17767No optional parameters -- hence all route types supported.Send-Recv capability in effect------------------------ OPEN DUMP ENDS ------------------------After the dump occurs, the TRGREP messages are displayed. In this case, keepalive messages are being received by this gateway.
Enqueued a Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Received Keepalive for NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Related Commands
debug tgrep msgdump
To turn on debugging for the dump of the details of TGREP messages, use the debug tgrep msgdump command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep msgdump
no debug tgrep msgdump
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep msgdump command:
tgrep-gw-1-02#Received an KEEPALIVE NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x69188648, 150 bytes++++++++++++++++++++++++++++++++++++++0x0 0xFFFFFF96 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00x9 0x0 0x5 0x0 0x00x0 0x3 0x6D 0x63 0x690x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x00x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x7 0x0 0x4 0x00x0 0x0 0x5 0x0 0xF0x0 0x4 0x0 0x0 0x00x16 0x0 0x10 0x0 0x40x0 0x0 0x0 0x17 0x00x11 0x0 0x8 0x0 0x00x0 0x74 0x0 0x0 0x00x7B 0x0 0x12 0x0 0x3C0x0 0x4 0x31 0x31 0x320x38 0x0 0x4 0x31 0x310x32 0x37 0x0 0x4 0x310x31 0x32 0x36 0x0 0x40x31 0x31 0x32 0x35 0x00x4 0x31 0x31 0x32 0x340x0 0x4 0x31 0x31 0x320x33 0x0 0x4 0x31 0x310x32 0x32 0x0 0x5 0x390x39 0x39 0x39 0x39 0x00x9 0x31 0x32 0x33 0x340x35 0x36 0x37 0x38 0x39After each event occurs, a dump of the message appears. The entire dump of each keepalive is being displayed.
-----------------------------------Received an KEEPALIVE NBR:14.1.1.210+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x691B0CA0, 92 bytes++++++++++++++++++++++++++++++++++++++0x0 0x5C 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00xF 0x0 0x3 0x0 0x00x0 0x9 0x31 0x32 0x330x34 0x35 0x36 0x37 0x380x39 0x0 0x3 0x0 0x60x0 0x0 0x4 0xFFFFFFD2 0x00x0 0x0 0x4 0x0 0x60x2 0x1 0x0 0x0 0x40xFFFFFFD2 0x0 0x5 0x0 0x60x2 0x1 0x0 0x0 0x40xFFFFFFD2 0x0 0x7 0x0 0x40x0 0x0 0x0 0x5 0x00xF 0x0 0x4 0x0 0x00x0 0x17 0x0 0x10 0x00x4 0x0 0x0 0x0 0x170x0 0x11 0x0 0x8 0x00x0 0x0 0x75 0x0 0x00x0 0x78-----------------------------------+++++++++++++++++++++++++++++++++++++TMSG datagramstart : 0x691885EC, 150 bytes++++++++++++++++++++++++++++++++++++++0x0 0xFFFFFF96 0x2 0x0 0x10x0 0x0 0x0 0x2 0x00x9 0x0 0x5 0x0 0x00x0 0x3 0x6D 0x63 0x690x0 0x3 0x0 0x6 0x00x0 0x4 0xFFFFFFD2 0x0 0x00x0 0x4 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x5 0x0 0x6 0x20x1 0x0 0x0 0x4 0xFFFFFFD20x0 0x7 0x0 0x4 0x00x0 0x0 0x5 0x0 0xF0x0 0x4 0x0 0x0 0x00x16 0x0 0x10 0x0 0x40x0 0x0 0x0 0x17 0x00x11 0x0 0x8 0x0 0x00x0 0x75 0x0 0x0 0x00x7C 0x0 0x12 0x0 0x3C0x0 0x4 0x31 0x31 0x320x38 0x0 0x4 0x31 0x310x32 0x37 0x0 0x4 0x310x31 0x32 0x36 0x0 0x40x31 0x31 0x32 0x35 0x00x4 0x31 0x31 0x32 0x340x0 0x4 0x31 0x31 0x320x33 0x0 0x4 0x31 0x310x32 0x32 0x0 0x5 0x390x39 0x39 0x39 0x39 0x00x9 0x31 0x32 0x33 0x340x35 0x36 0x37 0x38 0x39-----------------------------------Received an KEEPALIVE NBR:14.1.1.210Received an KEEPALIVE NBR:14.1.1.210Related Commands
debug tgrep timer-event
To turn on debugging for events that are related to the timer, use the debug tgrep timer-event command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep timer-event
no debug tgrep timer-event
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep timer-event command:
Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryThe TRIP timer registers timeouts until the next event occurs. Here, the timers are reset.
Entering trip_reset_nbr_timers to reset timersStarting the CONNECT timer for nbr NBR:16.1.1.202 for value of 30 secondsStopping hold timer and keepalive timer while resetting NBR:16.1.1.202Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryTimeouts are again reported until the next event.
Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryHere, the TRIP neighbor is cleared, which causes the timer to reset.
Router#clear trip nei *Router#Entering trip_reset_nbr_timers to reset timersStarting the CONNECT timer for nbr NBR:16.1.1.202 for value of 30 secondsStopping hold timer and keepalive timer while resetting NBR:16.1.1.202Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 3 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryIO_CONNECT TIMER for nbr NBR:16.1.1.202 has expiredNBR:16.1.1.202 -Restarting the connect timerNBR:16.1.1.202 starting the holder timer after post connect with large value------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------NBR:16.1.1.202 Starting keepalive timer after writing somethingNBR:16.1.1.202 Re-starting hold timer after a message is readReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPNBR:16.1.1.202 Starting keepalive timer after writing somethingNBR:16.1.1.202 Re-starting hold timer after a message is readD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIIO_CONNECT TIMER for nbr NBR:16.1.1.202 has expiredNBR:16.1.1.202 -Stopping the connect timer, no need anynoreMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryNBR:16.1.1.202 Re-starting hold timer after a message is readReceived a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryRelated Commands
debug tgrep timers
To turn on debugging for detailed socket level activities, use the debug tgrep timers command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep timers
no debug tgrep timers
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
Examples
The following example shows output from the debug tgrep timers command:
tgrep-gw-1-02#Received a TGREP_UPD_TIMER timeoutThe bulkSyncQ size is 0 at this timeThe tgrepQ size is 0 at this timeRestarting the router UPD timer after expiryTable 4 describes the significant fields in the display.
Related Commands
debug tgrep tripr
To turn on debugging from the TRIP Reporter, use the debug tgrep tripr command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug tgrep tripr
no debug tgrep tripr
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
A watched queue is used to inform the TRIP Reporter (TRIPR) process about changes in any of the interesting attributes of dial peer that potentially could trigger TRIP update. A dial peer attribute change manifest into a prefix attribute change and is deposited into the watched queue of TRIPR by the Event Dispatcher. The trunk group system also does the same.
Examples
The following example shows output from the debug tgrep tripr command:
20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x2prefix 1128 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 0 total 020:51:11:20:51:11: --------------------------------20:51:11: attrib 0x400220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 112820:51:11: ac: 2220:51:11:20:51:11: =======================================20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x27prefix 123456789 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 117 total 12020:51:11: tg mci cc mci20:51:11: tripr_build_triprtr_prefix_destination_ev tg mci cic 0 carrier mci20:51:11:20:51:11: --------------------------------20:51:11: attrib 0x1C00220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 12345678920:51:11: csr: tot 120 succ 11720:51:11: ac: 22tc: 2320:51:11:20:51:11: =======================================20:51:11: tripr_build_triprtr_prefix_destination_ev : got the ev id 1 reason 64 num_prefix 1 advertise 0x27prefix 99999 addrFam 420:51:11: tripr_build_triprtr_prefix_destination_ev ac 22 tc 23 ac_avg 2220:51:11: tripr_build_triprtr_prefix_destination_ev csr success 0 total 020:51:11: tg mci cc mci20:51:11: tripr_build_triprtr_prefix_destination_ev tg mci cic 0 carrier mci20:51:11:20:51:11: --------------------------------20:51:11: attrib 0x1C00220:51:11: ******* REACHABLE ROUTE ******20:51:11: TRIP_AF_E164 9999920:51:11: csr: tot 0 succ 020:51:11: ac: 22tc: 2320:51:11:20:51:11: =======================================Table 4 describes the significant fields in the display.
Related Commands
debug voip eddri
To turn on debugging for the event dispatcher and data repository interface (EDDRI), use the debug voip eddri command in privileged EXEC mode. To turn off debugging, use the no form of this command.
debug voip eddri {event | timers | prefix | all}
no debug voip eddri {event | timers | prefix | all}
Syntax Description
event
Turns on debugging for EDDRI events.
timers
Turns on debugging for EDDRI timers.
prefix
Turns on debugging for the prefix database.
all
Turns on debugging all EDDRI activities.
Defaults
Debug is not enabled
Command Modes
Privileged EXEC
Command History
Usage Guidelines
There is always a performance penalty when using debug commands.
The event dispatcher and data repository interface (EDDRI) notifies TGREP when an attribute changes on some subsystems. EDDRI interacts with the dial peer subsystem, the trunk group subsystems, call control API (CCAPI) subsystem and the customer relationship management (CRM) subsystem to notify changes in particular attributes. EDDRI is responsible for creating the prefix database.
Examples
The following example shows output from the debug voip eddri command:
21:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 1With the send prefix event the available circuits value and the triggers for reporting are updated.
21:00:53: eddri_send_prefix_event_to_clients attr 0xFF ev_id 1 qid 0x64209230 reason 0x40eddri_dequeue_event : dequeue event21:00:53: eddri_interesting_ac_pt : tc 23 IAC 22 lwm 5 hwm 50 pct_trigger 2 oneMinusW 93321:00:53: eddri_interesting_ac_pt: old AC_curr 23 FD_curr 0 SD_curr 021:00:53: eddri_interesting_ac_pt: new AC_curr 22 FD_curr -5 SD_curr -521:00:53: eddri_interesting_ac_pt: percent trigger diff 421:00:53: eddri_interesting_ac_pt: Interesting Point21:00:53: eddri_send_prefix_event_to_clients : reason 0x40 num_prefix 1Related Commands
neighbor
To create a TGREP session with another device, use the neighbor command in TGREP configuration mode. To disable a TRIP connection, use the no form of this command.
neighbor ip_address
no neighbor ip_address
Syntax Description
Defaults
No neighboring devices are defined
Command Modes
TGREP configuration
Command History
Examples
The following example shows that the gateway with the IP address 192.116.56.10 is defined as a neighbor for ITAD 1234:
Router(config)# tgrep local-itad 1234Router(config-tgrep)# neighbor 192.116.56.10Related Commands
show tgrep neighbors
To show configured TGREP neighbors, use the show tgrep neighbors command in privileged EXEC mode.
show tgrep neighbors {* | ip_address}
Syntax Description
Defaults
No default behavior or values
Command Modes
Privileged EXEC
Command History
Examples
The following example shows output for the show tgrep neighbors command:
There are 1 nbrs configured------------------ NBR:16.1.1.202----------------------TIMERS:Keepalive : Timer StoppedHold Timer : Timer StoppedConnect Retry : Running, time remaining in ms, 20698SYNC IN PROGRESSSTATE: TRIPS_IDLEQUEUES:writeQ : 0sec_writeQ : 0readQ : 0SOCKET FDs:prim socket -1, sec socket -1tgrep_update_version : 0LAST RESET: USER_INITIATEDRouter#Router#!!!! Trip Connection is setup here...------------------------ OPEN DUMP BEGINS ------------------------0x1 0xFFFFFFFF 0x0 0xFFFFFFB4 0x00x0 0x4 0x58 0x6 0x70xFFFFFF98 0xFFFFFFA9 0x0 0xC 0x00x1 0x0 0x8 0x0 0x20x0 0x4 0x0 0x0 0x00x3Version :1Hold Time :180My ITAD :1112TRIP ID :101161129Option Paramater #1Param Type: CapabilityLength 8Cap Code :Send Receive CapabilityCap Len :4Send Rec Cap: RCV ONLY MODE-->All route types supported------------------------ OPEN DUMP ENDS ------------------------Related Commands
show voice eddri prefix
To show applicable prefixes for the event dispatcher and data repository interface (EDDRI), use the show voice eddri prefix command in privileged EXEC mode.
show voice eddri prefix [prefix_number]
Syntax Description
Defaults
No default behavior or values.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
If no prefix is specified, all configured prefixes appear.
The event dispatcher and data repository interface (EDDRI) notifies TGREP when an attribute changes on some subsystems. EDDRI interacts with the dial peer subsystem, the trunk group subsystems, call control API (CCAPI) subsystem and the customer relationship management (CRM) subsystem to notify changes in particular attributes. EDDRI is responsible for creating the prefix database.
Examples
The following example shows output for the show voice eddri prefix command:
prefix 4 address family decimaladvertise flag 0x27 ac 24 tc 24 capacity timer 25 secAC_avg 24, FD_avg 0, SD_avg 0succ_curr 0 tot_curr 0succ_report 0 tot_report 0changed 0 replacement position 0trunk group castg2dial peer tag 1001Related Commands
tgrep address-family
To set the address family to be used on a local dial peer, use the tgrep address-family command in dial peer configuration mode. To return to the global setting, use the no form of this command.
tgrep address family {e164 | decimal | penta-decimal}
no tgrep address family {e164 | decimal | penta-decimal}
Syntax Description
e164
E.164 address family.
decimal
Decimal address family
penta-decimal
Penta-decimal address family
Defaults
No default behavior or values.
Command Modes
Dial peer configuration
Command History
Usage Guidelines
The E. 164 address family is used if the telephony network is a public telephony network. Decimal and pentadecimal options can be used to advertise private dial plans. For example if a company wants to use TRIP in within their enterprise telephony network using 5-digit extensions, then the gateway would advertise the beginning digits of their private numbers as a decimal address family. These calls cannot be sent out of the company's private telephony network because they are not E.164-compliant.
The pentadecimal family allows numbers 0 through 9 and alphabetic characters A through E and can be used in countries where letters are also carried in the called number.
Examples
The following example shows that POTS dial peer 10 has the address family set for E.164 addresses:
Router(config)# dial-peer voice pots 10Router(config-dial-peer)# tgrep address family e164Related Commands
Command DescriptionEnters dial-peer configuration mode and specifies the method of voice-related encapsulation.
tgrep advertise (dial peer)
To set the attributes for advertisement of the prefix on this dial peer or to disable advertisement on this dial peer altogether, use the tgrep advertise command in dial peer configuration mode. To return to using the global setting, use the no form of this command.
tgrep advertise [csr] [ac] [tc] [carrier | trunk-group] [disable]
no tgrep advertise [csr] [ac] [tc] [carrier | trunk-group] [disable]
Syntax Description
csr
Call success rate
ac
Available circuits
tc
Total circuits
carrier
Carrier code address family
trunk-group
Trunk group address family
disable
Disables advertisement of this dial peer
Defaults
Prefix advertisement is not sent.
Command Modes
Dial peer configuration
Command History
Usage Guidelines
When only tgrep advertise is entered, the dial peer is advertised without any other attribute.
When no tgrep advertise is used on the dial peer, the dial peer inherits the attributes set in the global advertise command.
When the global no advertise command is used, it forbids advertisement of that particular address family altogether. The tgrep advertise command has no effect until the advertisement of the address family is enabled globally.
Examples
The following example shows a TGREP advertisement that sends call success rate, available circuits, total circuits, and carrier address family attribute information:
Router(config)# dial-peer voice pots 10Router(config-dial-peer)# tgrep advertise csr ac tc carrierRelated Commands
Command DescriptionEnters dial-peer configuration mode and specifies the method of voice-related encapsulation.
tgrep advertise (trunk group)
To turn on the advertisement of this trunk group for resource availability and other carrier information, use the tgrep advertise command in trunk group configuration mode. To turn off local trunk group advertisement and use the global setting, use the no form of this command.
tgrep advertise [csr] [ac] [tc] [disable]
no tgrep advertise [csr] [ac] [tc] [disable]
Syntax Description
csr
Call success rate.
ac
Available circuits.
tc
Total circuits.
disable
Disables advertisement on the trunk group.
Defaults
Trunk group advertisement is not sent
Command Modes
Trunk group configuration
Command History
Usage Guidelines
When only tgrep advertise is entered, the trunk group is advertised without any other attribute. When no tgrep advertise is used, the trunk group uses the global setting configured with the advertise command in TGREP configuration mode. To turn off advertisement of this trunk group, the disable keyword should be used.
There is a subtle difference between the no form of this command and the no form of the global advertise command. When no tgrep advertise is used on the trunk group, the trunk group inherits the attributes set in the global advertise command.
When the global no advertise command is used, it forbids advertisement of that particular address family altogether. The tgrep advertise command has no effect until the advertisement of the address family is enabled globally.
When the carrier keyword is used, the carrier defined under the trunk group assumes the configuration. Because multiple trunk groups can have the same carrier defined, the same configuration will show up under all trunk groups that have the same carrier defined. When the no tgrep advertise carrier command is used to revert to the global carrier configuration for the carrier under this trunk group, the same will happen to all the trunk groups who have the same carrier defined under them.
Note
This command overrides the attributes set for advertisement using the global advertise (tgrep) command.
Examples
The following example shows that trunk group 101 has been configured to send a TGREP advertisement that sends call success rate, available circuits, total circuits, and prefix attribute information:
Router(config)# trunk group 101Router(config-dial-peer)# tgrep advertise csr ac tc carrierRelated Commands
tgrep local-itad
To enable TGREP on the gateway and enter TGREP configuration mode, use the tgrep local-itad command in global configuration mode. To disable TRIP on the gateway, use the no form of this command.
tgrep local-itad itad_number
no tgrep local-itad itad_number
Syntax Description
Defaults
TGREP is not enabled on the gateway.
Command Modes
Global configuration
Command History
Examples
The following example shows TGREP being enabled for ITAD number 1234:
Router(config)# tgrep local-itad 1234Related Commands
Command DescriptionSets the global address family to be used on all dial peers.
Turns on reporting for a specified address family.
Creates a TGREP session with another device.
voice call capacity mir
To set the value for the minimum interval between reporting (MIR), use the voice call capacity mir command in global configuration mode. To turn off these attributes, use the no form of this command.
voice call {carrier | trunk-group | prefix} capacity mir seconds
no voice call {carrier | trunk-group | prefix} capacity mir
Syntax Description
Defaults
10 seconds.
Command Modes
Global configuration.
Command History
Usage Guidelines
Because the available circuit (AC) attribute of a destination is very dynamic, reporting of this attribute should be handled carefully. AC should be reported as frequently as possible so that the location server has better information about the resources. However, the location server should not be overwhelmed with too many updates.
All of the AC reporting, called the interesting point of AC, is performed when the specified event happens within the minimum interval between reporting (MIR) time since last reporting. This command sets the amount of time used for the interval to control the number of interesting points that are reported so not to overwhelm the location server with too many AC updates.
The seconds argument cannot be set higher than the time configured for the capacity update interval.
Examples
The following example shows the minimum interval between reporting for the carrier address family set to 25 seconds:
Router(config)# voice call carrier capacity mir 25Related Commands
Command DescriptionChanges the capacity update for prefixes associated with a dial peer.
Change the capacity update for carriers or trunk groups.
Set the value for STW.
voice call capacity stw
To set the value for smoothing transition time for weight (STW), use the voice call capacity stw command in global configuration mode. To turn off these attributes, use the no form of this command.
voice call {carrier | trunk-group | prefix} capacity stw seconds
no voice call {carrier | trunk-group | prefix} capacity stw
Syntax Description
carrier
Carrier code address family
trunk-group
Trunk group address family
prefix
E.164 prefix
seconds
Transitions time can be from 0 to 60 seconds with a default of 10.
Defaults
10 seconds.
Command Modes
Global configuration.
Command History
Usage Guidelines
Because the available circuit (AC) attribute of a destination is very dynamic, reporting of this attribute should be handled carefully. AC should be reported as frequently as possible so that the location server has better information about the resources. However, the location server should not be overwhelmed with too many updates.
A smoothing algorithm is applied to the quantity of AC being reported. This algorithm eliminates reporting of noise. The degree of smoothing can be configured with the voice call capacity stw command. This command sets the smoothing transition time for weight, which is the time it takes for current smoothed value of AC to come half way between the current smoothed value and the current instantaneous value of AC. Lower stw values speed the smoothed value of AC as it approaches the instantaneous value of AC. When stw is set to 0, the smoothed value is always equal to the instantaneous value of AC.
Examples
The following example shows the smoothing time for weight for the carrier address family set to 25 seconds:
Router(config)# voice call carrier capacity stw 25Related Commands







