Evgeny
|
64489fa194
|
Add comprehensive ETCP traffic flow debugging tests
Implemented multiple levels of ETCP traffic debugging tests:
1. test_etcp_minimal.c - Basic packet analysis and section parsing:
- Single section payload packets
- Multi-section packets (TIMESTAMP, ACK, PAYLOAD)
- Connection establishment packets (INIT_REQUEST, INIT_RESPONSE)
- Detailed section-by-section analysis with timing
2. test_etcp_simple_traffic.c - TUN-less traffic simulation:
- Direct packet injection and analysis
- Connection state simulation
- Traffic generation and processing
- Comprehensive packet capture and analysis
3. test_etcp_traffic_flow.c - Full instance simulation:
- Two-instance setup with traffic analysis
- Packet capture hooks in ETCP pipeline
- Traffic analyzer with detailed metrics
- Connection establishment debugging
Key debugging features added:
- Section-by-section packet parsing and validation
- Packet ID tracking and sequence analysis
- ACK processing with timestamp correlation
- Connection handshake simulation
- Retransmission request handling
- Multi-section packet composition analysis
- Traffic flow metrics and timing analysis
All tests use comprehensive DEBUG_* output for detailed traffic flow tracing:
- Packet type identification
- Section length validation
- Payload content analysis
- Connection state tracking
- Timing and sequence verification
This enables thorough debugging of ETCP protocol traffic flow, packet processing,
and connection establishment without requiring TUN devices or network setup.
|
2 months ago |