Commit Graph
37 Commits
Author SHA1 Message Date
evgeny e5244d9e5a Refresh pending retransmit timer when timestamp RTT changes 2026-10-24 17:26:59 +02:00
evgeny f3071d8ab7 Clarify timestamp RTT role in transport contracts 2026-10-24 17:26:59 +02:00
evgeny d8b05cd03e Exercise RTT changes through real ETCP and document RTO inputs 2026-10-24 17:26:59 +02:00
evgeny 0592753455 Verify RTT hold rounds and document filter timing 2026-10-24 17:26:59 +02:00
evgeny 6951faaabc Document ETCP receiver-clock bandwidth sampling 2026-10-24 17:26:59 +02:00
evgeny 37aa505888 Document absolute ACK scheduling and cross-path precedence 2026-10-24 14:43:03 +02:00
evgeny 262c6bfd56 Document send scanning, retry rounds, and fast stall recovery 2026-10-24 12:01:20 +02:00
evgeny 9d9f0c7088 Document retry wait policy and fault recovery measurements 2026-10-24 09:46:38 +02:00
evgeny b6293aae56 Check pacer reset callback against its actual contract 2026-10-24 02:54:41 +02:00
evgeny 2aafd6b457 Remove stale pacing and handshake descriptions from ETCP protocol specification 2026-10-24 00:32:42 +02:00
evgeny aca5b63afa Document compact attempt wire layout and epoch reuse protection 2026-10-23 19:25:20 +02:00
evgeny 633a169a01 Describe receiver-clock bandwidth bounds and ACK wire format 2026-10-23 16:44:07 +02:00
evgeny 4bfdd6e00e Document INIT liveness and response validation contracts 2026-10-23 14:16:28 +02:00
evgeny a7574ac8a1 Document reduced RTT multiplier and jitter margin for RTO 2026-10-23 12:52:59 +02:00
evgeny 6fb21a9f62 Describe OOM session interruption and normalizer ownership precisely 2026-10-23 12:42:05 +02:00
evgeny 70e490be91 Document per-path attempt ACKs, loss timers, pacing and memory bounds 2026-10-23 11:12:40 +02:00
evgeny 887c098fa2 Document agreed retransmission bounds and verified timer behavior 2026-10-23 02:21:43 +02:00
evgeny ddcdc849c2 Document BBR queue time policy and its physical delay limits 2026-10-23 01:03:27 +02:00
evgeny 0b4651feed Document DATA MSS and shared BBR transport window contracts 2026-10-23 00:45:09 +02:00
evgeny b3ad6d7029 Describe ACK handling and bounded DATA pacing in the ETCP protocol 2026-10-23 00:10:01 +02:00
evgeny d2f985af38 Document ETCP window ownership and completed connection fixes 2026-10-22 22:57:06 +02:00
evgeny 7e2051a94f docs: align ETCP handshake and epoch descriptions with code 2026-10-21 15:37:01 +02:00
evgeny 5813b8727c Measure owned endpoint mapping and inbound reachability separately 2026-10-12 00:01:40 +02:00
evgeny 92f9dc2bd6 Add randomized ETCP padding and isolate STCP CTR streams per connection 2026-10-07 10:45:42 +02:00
evgeny 0f35f3b996 Bound ETCP receive window and fix timestamp and allocator UB 2026-09-27 12:16:15 +03:00
evgeny 10562224d7 Fix ETCP session recovery and router lifecycle; confirm chat invites before publishing 2026-09-27 02:51:47 +03:00
evgeny 451021b292 stcp: ed25519 pubkey exchange in handshake, fix instance destroy segfault, fix chat_tcp_test
- u_async.c: process immediate_queue BEFORE epoll_wait in uasync_poll
- stcp_link.c: defensive NULL etcp_conn/etcp_link in stcp_link_close
- utun_instance.c: move stcp_server_list_destroy_all to Phase J (before ETCP),
  add deferred drain in both Phase J and L
- stcp.h/c: STCP_HS_ENC_CLIENT 6→38, STCP_HS_ENC_SERVER 7→39,
  exchange ed25519_pubkey in both handshake directions
- etcp_connections.c: copy peer_ed25519 from STCP to ETCP_CONN in
  etcp_link_enter_ready_tcp; guard link->etcp in tcp_link_close_cb
- chat_sync.c: fix lk->conn NULL dereference for TCP links
- test_stcp.c: update stcp_server_create/stcp_client_connect callsites
- tools/chat_tcp_test: change transport udp→tcp
2026-08-07 00:48:27 +03:00
evgeny 4405bc5b9e refactor: STCP connections as ETCP links (is_tcp)
- Add is_tcp, tcp_link, tcp_reconnect_* fields to ETCP_LINK
- Remove transport_link from ETCP_CONN, add tcp_link_count
- stcp_link: replace embedded etcp_conn with pointer; add etcp_link backpointer
- stcp_link: link_rx_cb routes ETCP data to etcp_conn_input
- stcp_link: call on_close_cb in close
- New TCP functions: etcp_link_enter_ready_tcp, etcp_tcp_link_start_connect,
  etcp_tcp_link_start_reconnect, tcp_link_close_cb, etcp_tcp_send
- etcp_link_new: handle NULL conn for TCP links; skip enter_init for TCP
- etcp_link_close: close stcp_link for TCP
- etcp_encrypt_send: redirect TCP to etcp_tcp_send (skips AES-CCM)
- tcp_server_on_link: create ETCP_LINK(is_tcp=1) + enter_ready_tcp
- etcp_connect: TCP addrs -> etcp_tcp_link_start_connect
- Remove ctx->tcp_link/tcp_ready
- test_stcp_traffic: find stcp_link via links->is_tcp instead of transport_link
- 66/68 tests pass; 2 STCP tests expected to fail (integration not complete)
2026-08-06 22:14:32 +03:00
Evgeny efefe8ffaa add CFG_SERVER_TYPE_LOCAL (type=local) and UNKNOWN semantics: PRIVATE/LOCAL hidden from nodeinfo, PRIVATE blocks incoming INIT, LOCAL accepts; UNKNOWN treated as PUBLIC; self-detection of PUBLIC IP on incoming INIT; filter LOCAL from NAT checks and connectivity 2026-07-02 19:30:08 +03:00
Evgeny 27b22e16dc update documentation 2026-04-25 18:42:20 +03:00
jeka 785b739d69 config 2026-03-04 01:53:17 +03:00
jeka 6c98943446 1 2026-02-17 00:53:27 +03:00
Evgeny a36cf652ff Backup before fixing test_routing_mesh segfault 2026-02-16 22:02:57 +03:00
Evgeny 8cf8129103 Backup before adding NAT IP:port tracking to ETCP handshake 2026-02-14 11:02:20 +03:00
Evgeny 511250a8c7 Add local_link_id exchange in ETCP handshake (0x02-0x05)
- Add etcp_find_free_local_link_id() function to allocate unique link IDs
- Modify etcp_link_new() to auto-assign local_link_id, fail if none available
- Update INIT_REQUEST (0x02/0x04) to send local_link_id after keepalive
- Update INIT_RESPONSE (0x03/0x05) to include local_link_id
- Parse remote_link_id from incoming handshake packets
- Update protocol documentation in doc/etcp_protocol.txt
- Add comprehensive unit test test_etcp_link_id.c

New packet format:
INIT_REQUEST:  [code][node_id(8)][mtu(2)][keepalive(2)][link_id(1)][pubkey(64)]
INIT_RESPONSE: [code][node_id(8)][mtu(2)][link_id(1)]
2026-02-04 14:21:20 +03:00
Evgeny 26fc933d94 Fix: Resolved double free in timeout_heap_pop() and test_etcp_simple_traffic bind conflict
- Fixed incorrect init_connections() call in test_etcp_simple_traffic.c (was calling server_instance instead of client_instance)
- Fixed double free in timeout_heap_pop() when handling deleted elements
- Enhanced NULL pointer safety in uasync_print_resources() by removing complex heap manipulation
- Added debug logging to timeout_heap_pop() for better error tracking

Test results: test_etcp_simple_traffic now passes without double free errors
2026-01-25 10:47:02 +03:00
Evgeny ec5625b7b7 Fix: ETCP module compilation errors and build system issues
- Added missing structure members to ETCP_CONN (ack_packets_count, last_rx_ack_id, rtt_history, rtt_history_idx, total_packets_sent)
- Added missing bandwidth member to ETCP_LINK structure
- Fixed include path for ll_queue.h header
- Added math library linking (-lm) to build system
- Added etcp_loadbalancer.c to build sources
- Fixed forward declarations and function calls in ETCP modules
- Updated test dependencies to include loadbalancer object files

All simple compilation errors resolved, project builds successfully and tests pass (except TUN permission test which is expected in container).
2026-01-23 00:43:48 +03:00