--- title: "twamp-gen" slug: "cli-as-twamp-gen" tags: ["Assurance Sensor CLI"] updated: 2025-07-02T08:54:00Z published: 2025-09-04T19:22:30Z canonical: "docs.crossworkassurance.cisco.com/cli-as-twamp-gen" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # twamp-gen ## twamp-gen add twamp-gen add - Create a TWAMP session. **Description:** Create a TWAMP session. **Note:** One-way delay measurements require time synchronization using NTP/PTP on units at each probe end. **Syntax:** ``` twamp-gen add { {name } | {state {enable | disable}} | {interval } | {reference-period } | {pkt-loss-threshold <0-100>} | {continuity-check } | {tw-avg-delay-thrs } | {tw-avg-dv-thrs } | {tw-max-delay-thrs } | {tw-max-dv-thrs } | {tw-max-delay } | {tw-max-dv } | {ow-near-end-avg-delay-thrs } | {ow-near-end-avg-dv-thrs } | {ow-near-end-max-delay-thrs } | {ow-near-end-max-dv-thrs } | {ow-near-end-max-delay } | {ow-near-end-max-dv } | {ow-far-end-avg-delay-thrs } | {ow-far-end-avg-dv-thrs } | {ow-far-end-max-delay-thrs } | {ow-far-end-max-dv-thrs } | {ow-far-end-max-delay } | {ow-far-end-max-dv } | {dscp <0-63>} | {ecn <0-3>} | {pkt-size <14-1472>} | {vlan1-priority <0-7>} | {src-port } | {dst-port } {dst-ip }}+ ``` **Parameters:** | Parameter | Description | | --- | --- | | name | A name assigned to reference this instance. | | state | Enable or disable generating TWAMP packets. | | interval | Interval in milliseconds at which TWAMP packets should be sent. | | reference-period | Reference period in minutes. | | pkt-loss-threshold | Threshold (in %) at which an Excessive Packet Loss (EPL) alarm is declared. | | continuity-check | Maximum number of consecutive lost packets allowed. | | tw-max-delay | Maximum two-way delay allowed. | | tw-max-dv | Maximum two-way delay variation allowed. | | tw-max-delay-thrs | Maximum consecutive two-way delay samples allowed greater than tw-max-delay. | | tw-max-dv-thrs | Maximum consecutive two-way delay samples allowed greater than tw-max-dv. | | tw-avg-delay-thrs | Maximum two-way average delay. | | tw-avg-dv-thrs | Maximum two-way average delay variation. | | ow-near-end-max-delay | Maximum one-way near-end delay allowed. | | ow-near-end-max-dv | Maximum one-way near-end delay variation allowed. | | ow-near-end-max-delay-thrs | Maximum consecutive one-way near-end delay samples allowed greater than ow-near-end-max-delay. | | ow-near-end-max-dv-thrs | Maximum consecutive one-way near-end delay samples allowed greater than ow-near-end-max-dv. | | ow-near-end-avg-delay-thrs | Maximum one-way near-end average delay. | | ow-near-end-avg-dv-thrs | Maximum one-way near-end average delay variation. | | ow-far-end-max-delay | Maximum one-way far-end delay allowed. | | ow-far-end-max-dv | Maximum one-way far-end delay variation allowed. | | ow-far-end-max-delay-thrs | Maximum consecutive one-way far-end delay samples allowed greater than ow-far-end-max-delay. | | ow-far-end-max-dv-thrs | Maximum consecutive one-way far-end delay samples allowed greater than ow-far-end-max-dv. | | ow-far-end-avg-delay-thrs | Maximum one-way far-end average delay. | | ow-far-end-avg-dv-thrs | Maximum one-way far-end average delay variation. | | dscp | The Diff-Serv CodePoint value. | | ecn | The Explicit Congestion Notification value. | | vlan1-priority | First VLAN priority bits. This applies only if the outgoing interface is encapsulated in a VLAN. | | dst-ip | The peer IPv4 or IPv6 destination address. | | dst-port | Specifies destination UDP port (default 862, valid ports: 1024-65535). | | src-port | Specifies source UDP port (default 10000, valid ports: 1024-65535). | | pkt-size | Packet size. Does not include the headers (UDP, IP, Ethernet) and the FCS bytes. | ## twamp-gen delete twamp-gen delete - Delete a TWAMP session. **Description:** Delete a TWAMP session. **Syntax:** ``` twamp-gen delete = ``` **Parameters:** | Parameter | Description | | --- | --- | | index | Specifies the TWAMP instance. | ## twamp-gen edit twamp-gen edit - Edit a TWAMP session. **Description:** Edit a TWAMP session. **Note:** One-way delay measurements require time synchronization using NTP/PTP on units at each probe end. **Syntax:** ``` twamp-gen edit {{name } | {state {enable | disable}} | {interval } | {reference-period } | {pkt-loss-threshold <0-100>} | {continuity-check } | {tw-avg-delay-thrs } | {tw-avg-dv-thrs } | {tw-max-delay-thrs } | {tw-max-dv-thrs } | {tw-max-delay } | {tw-max-dv } | {ow-near-end-avg-delay-thrs } | {ow-near-end-avg-dv-thrs } | {ow-near-end-max-delay-thrs } | {ow-near-end-max-dv-thrs } | {ow-near-end-max-delay } | {ow-near-end-max-dv } | {ow-far-end-avg-delay-thrs } | {ow-far-end-avg-dv-thrs } | {ow-far-end-max-delay-thrs } | {ow-far-end-max-dv-thrs } | {ow-far-end-max-delay } | {ow-far-end-max-dv } | {dscp <0-63>} | {ecn <0-3>} | {pkt-size <14-1472>} | {vlan1-priority <0-7>} | {src-port } | {dst-port } {dst-ip }}+ = ``` **Parameters:** | Parameter | Description | | --- | --- | | name | A name assigned to reference this instance. | | state | Enable or disable generating TWAMP packets. | | interval | Interval in milliseconds at which TWAMP packets should be sent. | | reference-period | Reference period in minutes. | | pkt-loss-threshold | Threshold (in %) at which an Excessive Packet Loss (EPL) alarm is declared. | | continuity-check | Maximum number of consecutive lost packets allowed. | | tw-max-delay | Maximum two-way delay allowed. | | tw-max-dv | Maximum two-way delay variation allowed. | | tw-max-delay-thrs | Maximum consecutive two-way delay samples allowed greater than tw-max-delay. | | tw-max-dv-thrs | Maximum consecutive two-way delay samples allowed greater than tw-max-dv. | | tw-avg-delay-thrs | Maximum two-way average delay. | | tw-avg-dv-thrs | Maximum two-way average delay variation. | | ow-near-end-max-delay | Maximum one-way near-end delay allowed. | | ow-near-end-max-dv | Maximum one-way near-end delay variation allowed. | | ow-near-end-max-delay-thrs | Maximum consecutive one-way near-end delay samples allowed greater than ow-near-end-max-delay. | | ow-near-end-max-dv-thrs | Maximum consecutive one-way near-end delay samples allowed greater than ow-near-end-max-dv. | | ow-near-end-avg-delay-thrs | Maximum one-way near-end average delay. | | ow-near-end-avg-dv-thrs | Maximum one-way near-end average delay variation. | | ow-far-end-max-delay | Maximum one-way far-end delay allowed. | | ow-far-end-max-dv | Maximum one-way far-end delay variation allowed. | | ow-far-end-max-delay-thrs | Maximum consecutive one-way far-end delay samples allowed greater than ow-far-end-max-delay. | | ow-far-end-max-dv-thrs | Maximum consecutive one-way far-end delay samples allowed greater than ow-far-end-max-dv. | | ow-far-end-avg-delay-thrs | Maximum one-way far-end average delay. | | ow-far-end-avg-dv-thrs | Maximum one-way far-end average delay variation. | | dscp | The Diff-Serv CodePoint value. | | ecn | The Explicit Congestion Notification value. | | vlan1-priority | First VLAN priority bits. This applies only if the outgoing interface is encapsulated in a VLAN. | | dst-ip | The peer IPv4 or IPv6 destination address. | | dst-port | Specifies destination UDP port (default 862, valid ports: 1024-65535). | | src-port | Specifies source UDP port (default 10000, valid ports: 1024-65535). | | pkt-size | Packet size. Does not include the headers (UDP, IP, Ethernet) and the FCS bytes. | ## twamp-gen show configuration twamp-gen show configuration - Show TWAMP session's configuration **Description:** Display a summary of the configured TWAMP instances. When an instance index is specified, a detailed configuration report is displayed. **Syntax:** ``` twamp-gen show configuration [] - ``` **Parameters:** | Parameter | Description | | --- | --- | | index | Specifies the TWAMP instance. | ## twamp-gen show results twamp-gen show results - Show TWAMP session's results **Description:** Display TWAMP session measurements and status. **Syntax:** ``` twamp-gen show results [] { { type {historic}} | { buckets <0-16>} | { period }}+ - - ``` **Parameters:** | Parameter | Description | | --- | --- | | index | Specifies the TWAMP instance. | | period-id | Specifies the period id. | | type | Type of results to display: historic: History buckets results. If the number of buckets is not specified, the last 4 buckets will be displayed, starting from the specified period. If no period is specified, the last 4 buckets will be displayed. | | buckets | Number of TWAMP buckets to display. | | period | Reference period for the TWAMP history buckets. Zero for the most recent period available. | ## twamp-gen show status twamp-gen show status - Show TWAMP session's status **Description:** Display TWAMP sessions's status. **Syntax:** ``` twamp-gen show status [] - ``` **Parameters:** | Parameter | Description | | --- | --- | | index | Specifies the TWAMP instance. | **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)