TWAMP error codes as defined in RFC 4656 (OWAMP) and used in RFC 5357 (TWAMP).
| Code | Name | Description |
|---|---|---|
| 0 | OK | Success - No error occurred |
| 1 | Failure | Failure, reason unspecified (catch-all) |
| 2 | Internal Error | Internal error occurred in the implementation |
| 3 | Not Supported | Some aspect of the request is not supported |
| 4 | Permanent Resource Limitation | Cannot perform request due to permanent resource limitations |
| 5 | Temporary Resource Limitation | Cannot perform request due to temporary resource limitations |
Meaning: The operation completed successfully.
Action: None required. This indicates normal operation.
Example scenarios:
- Connection established successfully
- Test session started successfully
- All packets transmitted and received
Meaning: A general failure occurred, but the specific reason is not identified or does not fit other categories.
Possible causes:
- Network connectivity issues
- Unexpected protocol violations
- General communication errors
Troubleshooting:
- Check network connectivity between endpoints
- Verify firewall rules allow TWAMP traffic
- Check logs for specific error messages
- Verify both endpoints are using compatible TWAMP versions
Meaning: An internal error occurred within the TWAMP implementation.
Possible causes:
- Software bug
- Memory allocation failure
- System resource exhaustion
- Unexpected exception
Troubleshooting:
- Check system logs for errors
- Verify sufficient system resources (memory, CPU)
- Try restarting the TWAMP process
- Report bug if reproducible
Meaning: The requested feature or parameter is not supported by this implementation.
Possible causes:
- Requesting authenticated mode (not implemented in twampy)
- Requesting encrypted mode (not implemented)
- Using unsupported protocol features
- Incompatible protocol version
Troubleshooting:
- Verify you're using unauthenticated mode
- Check that both endpoints support the requested features
- Review RFC 5357 for optional vs required features
- Use compatible protocol parameters
twampy specific limitations:
- Only unauthenticated mode is supported
- Authenticated and encrypted modes return this error
- Some RFC 5938 and RFC 6038 features not supported
Meaning: The request cannot be performed due to permanent resource constraints.
Possible causes:
- Maximum number of concurrent sessions reached
- Insufficient port range available
- Hardware limitations
- License restrictions (commercial implementations)
Troubleshooting:
- Reduce number of concurrent sessions
- Check system configuration limits
- Verify no port conflicts exist
- Review system resource allocation
Meaning: The request cannot be performed right now due to temporary resource constraints, but may succeed if retried later.
Possible causes:
- Temporary memory shortage
- CPU overload
- Network buffer exhaustion
- Rate limiting
Troubleshooting:
- Wait and retry the operation
- Reduce packet rate or session count
- Check system load (CPU, memory, network)
- Implement exponential backoff for retries
- Check error code: Identify the specific error code returned
- Review logs: Enable verbose or debug logging for details
- Verify configuration: Ensure parameters are within supported ranges
- Test connectivity: Verify network path to remote endpoint
- Retry appropriately: For code 5, retry after a delay
- Log error details: Include error code and context in logs
- Provide meaningful messages: Translate error codes to user-friendly text
- Implement retries: Automatically retry on code 5 errors
- Validate inputs: Check parameters before sending requests
- Handle gracefully: Don't crash on protocol errors
$ twampy controller 192.168.1.100
Error: Connection refused (Code 1)Cause: No TWAMP server listening on the target
Solution:
# Verify server is running
netstat -ulnp | grep 862
# Start responder if needed
twampy responder :862$ twampy controller 192.168.1.100
Error: Authenticated mode not supported (Code 3)Cause: Server requires authentication, but twampy only supports unauthenticated mode
Solution: Configure server for unauthenticated mode or use a different client
$ twampy controller 192.168.1.100
Error: Maximum sessions reached (Code 4)Cause: Server has reached its session limit
Solution: Wait for existing sessions to complete or increase server session limit
$ twampy sender 192.168.1.100
Error: Temporary resource limitation (Code 5)Cause: Server is temporarily overloaded
Solution: Retry after a brief delay
- RFC 4656 - OWAMP Protocol - Error code definitions
- RFC 5357 - TWAMP Protocol - TWAMP-specific usage
- Usage Guide - Practical usage examples
- Configuration Guide - Parameter reference