Files
mdg-filius/packages/core/test/scenarios/tcp-java-closedPort.java.json
T
julian.kiedaischandClaude Opus 5.5 088b62469f feat(core): packet capture per card after Java's Lauscher, measured card by card
The engine keeps Java's packet capture (capture.ts): per network card
every frame it sent (when it leaves on the cable) or received (also one
for another card), once, with time and number; switches log nothing;
frames the packet loss dropped are kept apart; the capture outlives a
stop and a new start, as in Java, until clearCapture. Per port instead
of per MAC, at most 10,000 frames a card.

expectSameCaptures compares each card's capture with Java's list of that
card in the ARP, WLAN, DNS, TCP, NAT, RIP and single-client DHCP runs.
It found that ScenarioNetwork ignored a switch's learning time (Java ran
300 s, the core the scenarios' 5 s); the oracle sets it now, and the TCP
and DHCP runs are recorded again. A core test found that a new start
numbers frames from 1 again and the capture took them as seen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 08:53:37 +00:00

105 lines
2.3 KiB
JSON

{
"frames": {
"00000000-0000-0000-0000-000000000101": [
{
"time": 853,
"source": "02:00:00:00:01:13",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
"senderIp": "192.168.0.30",
"targetIp": "192.168.0.10"
},
{
"time": 854,
"source": "02:00:00:00:01:11",
"destination": "02:00:00:00:01:13",
"arp": 2,
"senderIp": "192.168.0.10",
"targetIp": "192.168.0.30"
},
{
"time": 1083,
"source": "02:00:00:00:01:13",
"destination": "02:00:00:00:01:11",
"sourceIp": "192.168.0.30",
"destinationIp": "192.168.0.10",
"protocol": 6,
"sourcePort": 50448,
"destinationPort": 81,
"payload": null,
"tcpFlags": "S",
"sequence": 1000000,
"acknowledgement": 0
}
],
"00000000-0000-0000-0000-000000000102": [
{
"time": 853,
"source": "02:00:00:00:01:13",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
"senderIp": "192.168.0.30",
"targetIp": "192.168.0.10"
}
],
"00000000-0000-0000-0000-000000000103": [
{
"time": 731,
"source": "02:00:00:00:01:13",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
"senderIp": "192.168.0.30",
"targetIp": "192.168.0.10"
},
{
"time": 966,
"source": "02:00:00:00:01:11",
"destination": "02:00:00:00:01:13",
"arp": 2,
"senderIp": "192.168.0.10",
"targetIp": "192.168.0.30"
},
{
"time": 968,
"source": "02:00:00:00:01:13",
"destination": "02:00:00:00:01:11",
"sourceIp": "192.168.0.30",
"destinationIp": "192.168.0.10",
"protocol": 6,
"sourcePort": 50448,
"destinationPort": 81,
"payload": null,
"tcpFlags": "S",
"sequence": 1000000,
"acknowledgement": 0
}
]
},
"events": [
[
715,
"client verbinden called"
],
[
9020,
"client verbinden failed TimeOutException"
]
],
"states": {
"client": [
[
714,
"CLOSED"
],
[
728,
"SYN_SENT"
],
[
8978,
"CLOSED"
]
]
}
}