# TDM & Hardware Statistics

This section covers monitoring for physical hardware adapters, TDM interfaces, H.248 gateways, SS7/M2UA signaling, and firewall statistics. These metrics are relevant for deployments with media gateway cards and TDM connectivity.

***

## Hardware Adapters

MaaS monitors all hardware units (media gateway cards) in your TMedia system.

### Adapter Metrics

| Statistic    | Type   | Description                         |
| ------------ | ------ | ----------------------------------- |
| **Status**   | Binary | Up (1) or Down (0)                  |
| **HA State** | Text   | High availability operational state |
| CPU 0 Usage  | %      | Core 0 utilization                  |
| CPU 1 Usage  | %      | Core 1 utilization                  |

### N+1 Backup Support

MaaS tracks adapter replacements for N+1 backup scenarios, maintaining the relationship between replaced and replacement units.

***

## TDM Interface Types

MaaS monitors three categories of TDM interfaces:

| Interface Type | Description                          |
| -------------- | ------------------------------------ |
| E1/T1/J1       | Standard telephony spans             |
| DS3            | High-capacity digital signal level 3 |
| OC3/STM-1      | SONET/SDH optical interfaces         |

***

## E1/T1/J1 Statistics

### Line State

| Statistic | Type | Description            |
| --------- | ---- | ---------------------- |
| **State** | Text | Line operational state |

### Call Statistics (Per Span)

| Statistic   | Units     | Description                     |
| ----------- | --------- | ------------------------------- |
| Accepted    | Calls     | Successfully accepted calls     |
| Answered    | Calls     | Connected calls                 |
| Alerted     | Calls     | Calls in alerting state         |
| In Progress | Calls     | Calls being set up              |
| Terminating | Calls     | Calls being torn down           |
| Media Only  | Calls     | Media-only (no signaling) calls |
| **Idle**    | Timeslots | Available timeslots             |

***

## DS3 Statistics

### Interface State

| Statistic | Type | Description                 |
| --------- | ---- | --------------------------- |
| State     | Text | Interface operational state |

### Call Statistics

Same metrics as E1/T1:

* Accepted, Answered, Alerted, In Progress, Terminating, Media Only, Idle

***

## OC3/STM-1 Statistics

### Interface State

| Statistic | Type | Description                          |
| --------- | ---- | ------------------------------------ |
| State     | Text | Primary interface state              |
| APS State | Text | Automatic Protection Switching state |

### Call Statistics

Same metrics as E1/T1:

* Accepted, Answered, Alerted, In Progress, Terminating, Media Only, Idle

***

## H.248/MEGACO Gateway Statistics

For systems with H.248 gateway functionality, MaaS monitors the gateway stack and MGC connections.

### H.248 Metrics

| Statistic             | Type  | Description                       |
| --------------------- | ----- | --------------------------------- |
| **Congestion**        | Text  | Gateway congestion status         |
| Fixed Term In-Service | Count | In-service fixed terminations     |
| Fixed Term OOS        | Count | Out-of-service fixed terminations |
| Media Only Calls      | Calls | Media-only call count             |

### MGC Status

MaaS monitors up to 4 Media Gateway Controllers:

| Statistic  | Description                  |
| ---------- | ---------------------------- |
| MGC1 State | Primary MGC connection state |
| MGC2 State | Secondary MGC state          |
| MGC3 State | Tertiary MGC state           |
| MGC4 State | Quaternary MGC state         |

***

## SS7/M2UA Signaling Statistics

For systems with SS7 signaling via M2UA, MaaS provides hierarchical monitoring:

```
Adapter
  └── M2UA SAP (Service Access Point)
        └── M2UA Cluster
              ├── M2UA Links
              └── M2UA Peers
```

### M2UA Link Statistics

| Statistic           | Type   | Description                |
| ------------------- | ------ | -------------------------- |
| **M2UA Link State** | Binary | Link up (1) or down (0)    |
| **MTP2 Link State** | Binary | Underlying MTP2 link state |

### M2UA Peer Statistics

| Statistic      | Type   | Description                     |
| -------------- | ------ | ------------------------------- |
| **Peer State** | Binary | Peer active (1) or inactive (0) |

***

## Firewall Statistics

When TBRouter firewall is enabled on a host, additional metrics are available:

| Statistic          | Description                  |
| ------------------ | ---------------------------- |
| DDoS Alarm         | DDoS detection status        |
| High CPU           | Firewall CPU alarm           |
| List Full          | Connection list capacity     |
| Reboot Required    | Firewall reboot pending      |
| Scheduling Problem | Firewall scheduling issues   |
| Threshold Alarm    | Threshold exceeded indicator |

Firewall statistics are automatically available when the firewall is enabled on a host.

***

## Alerts

### High Severity

| Alert              | Condition      | Description                         |
| ------------------ | -------------- | ----------------------------------- |
| Hardware Unit Down | Status = 0     | Physical media gateway card offline |
| M2UA Peer Down     | Peer State = 0 | SS7 signaling peer connection lost  |

### Average Severity

| Alert                       | Condition                  | Description                                     |
| --------------------------- | -------------------------- | ----------------------------------------------- |
| TDM Line Bouncing           | >4 state changes in 1 hour | TDM span is experiencing frequent state changes |
| Firewall DDoS Alarm         | DDoS alarm triggered       | Firewall has detected a potential DDoS attack   |
| Firewall Scheduling Problem | Scheduling issues detected | Firewall has scheduling problems                |

### Information Severity

| Alert            | Condition        | Description            |
| ---------------- | ---------------- | ---------------------- |
| TDM State Change | Any state change | TDM line state changed |

***

## Troubleshooting

{% stepper %}
{% step %}

#### Line Bouncing

Frequent state changes on TDM spans typically indicate physical layer issues (cabling, cross-connects), timing/clocking problems, or far-end equipment issues. The "Line Bouncing" alert triggers when a span changes state more than 4 times in an hour.
{% endstep %}

{% step %}

#### Idle Timeslot Monitoring

Monitoring idle timeslots helps identify capacity utilization per span, uneven load distribution across spans, and potential misconfiguration (timeslots never used).
{% endstep %}

{% step %}

#### Fixed Termination Health

For H.248 gateways, comparing in-service vs out-of-service fixed terminations indicates overall gateway health, TDM span issues affecting terminations, and configuration problems.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prosbcdocs.telcobridges.com/maas-documentation/monitored-statistics/tdm-adapter-statistics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
