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>
205 lines
4.6 KiB
JSON
205 lines
4.6 KiB
JSON
{
|
|
"frames": {
|
|
"00000000-0000-0000-0000-000000000101": [
|
|
{
|
|
"time": 855,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "192.168.0.20",
|
|
"targetIp": "192.168.0.10"
|
|
},
|
|
{
|
|
"time": 857,
|
|
"source": "02:00:00:00:01:11",
|
|
"destination": "02:00:00:00:01:12",
|
|
"arp": 2,
|
|
"senderIp": "192.168.0.10",
|
|
"targetIp": "192.168.0.20"
|
|
},
|
|
{
|
|
"time": 1086,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "02:00:00:00:01:11",
|
|
"sourceIp": "192.168.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 6,
|
|
"sourcePort": 63329,
|
|
"destinationPort": 80,
|
|
"payload": null,
|
|
"tcpFlags": "S",
|
|
"sequence": 2000000,
|
|
"acknowledgement": 0
|
|
},
|
|
{
|
|
"time": 1088,
|
|
"source": "02:00:00:00:01:11",
|
|
"destination": "02:00:00:00:01:12",
|
|
"sourceIp": "192.168.0.10",
|
|
"destinationIp": "192.168.0.20",
|
|
"protocol": 6,
|
|
"sourcePort": 80,
|
|
"destinationPort": 63329,
|
|
"payload": null,
|
|
"tcpFlags": "SA",
|
|
"sequence": 1000000,
|
|
"acknowledgement": 2000001
|
|
},
|
|
{
|
|
"time": 1311,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "02:00:00:00:01:11",
|
|
"sourceIp": "192.168.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 6,
|
|
"sourcePort": 63329,
|
|
"destinationPort": 80,
|
|
"payload": null,
|
|
"tcpFlags": "A",
|
|
"sequence": 2000001,
|
|
"acknowledgement": 1000001
|
|
}
|
|
],
|
|
"00000000-0000-0000-0000-000000000102": [
|
|
{
|
|
"time": 733,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "192.168.0.20",
|
|
"targetIp": "192.168.0.10"
|
|
},
|
|
{
|
|
"time": 969,
|
|
"source": "02:00:00:00:01:11",
|
|
"destination": "02:00:00:00:01:12",
|
|
"arp": 2,
|
|
"senderIp": "192.168.0.10",
|
|
"targetIp": "192.168.0.20"
|
|
},
|
|
{
|
|
"time": 972,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "02:00:00:00:01:11",
|
|
"sourceIp": "192.168.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 6,
|
|
"sourcePort": 63329,
|
|
"destinationPort": 80,
|
|
"payload": null,
|
|
"tcpFlags": "S",
|
|
"sequence": 2000000,
|
|
"acknowledgement": 0
|
|
},
|
|
{
|
|
"time": 1199,
|
|
"source": "02:00:00:00:01:11",
|
|
"destination": "02:00:00:00:01:12",
|
|
"sourceIp": "192.168.0.10",
|
|
"destinationIp": "192.168.0.20",
|
|
"protocol": 6,
|
|
"sourcePort": 80,
|
|
"destinationPort": 63329,
|
|
"payload": null,
|
|
"tcpFlags": "SA",
|
|
"sequence": 1000000,
|
|
"acknowledgement": 2000001
|
|
},
|
|
{
|
|
"time": 1200,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "02:00:00:00:01:11",
|
|
"sourceIp": "192.168.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 6,
|
|
"sourcePort": 63329,
|
|
"destinationPort": 80,
|
|
"payload": null,
|
|
"tcpFlags": "A",
|
|
"sequence": 2000001,
|
|
"acknowledgement": 1000001
|
|
},
|
|
{
|
|
"time": 1719,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "02:00:00:00:01:11",
|
|
"sourceIp": "192.168.0.20",
|
|
"destinationIp": "192.168.0.10",
|
|
"protocol": 6,
|
|
"sourcePort": 63329,
|
|
"destinationPort": 80,
|
|
"payload": null,
|
|
"tcpFlags": "F",
|
|
"sequence": 2000001,
|
|
"acknowledgement": 0
|
|
}
|
|
],
|
|
"00000000-0000-0000-0000-000000000103": [
|
|
{
|
|
"time": 855,
|
|
"source": "02:00:00:00:01:12",
|
|
"destination": "FF:FF:FF:FF:FF:FF",
|
|
"arp": 1,
|
|
"senderIp": "192.168.0.20",
|
|
"targetIp": "192.168.0.10"
|
|
}
|
|
]
|
|
},
|
|
"events": [
|
|
[
|
|
216,
|
|
"server oeffnen called"
|
|
],
|
|
[
|
|
718,
|
|
"client verbinden called"
|
|
],
|
|
[
|
|
1218,
|
|
"client verbinden returned"
|
|
],
|
|
[
|
|
1319,
|
|
"server oeffnen returned"
|
|
],
|
|
[
|
|
1719,
|
|
"client schliessen called"
|
|
],
|
|
[
|
|
1719,
|
|
"client schliessen returned"
|
|
],
|
|
[
|
|
1719,
|
|
"lost FIN"
|
|
]
|
|
],
|
|
"states": {
|
|
"client": [
|
|
[
|
|
717,
|
|
"CLOSED"
|
|
],
|
|
[
|
|
729,
|
|
"SYN_SENT"
|
|
],
|
|
[
|
|
1201,
|
|
"ESTABLISHED"
|
|
],
|
|
[
|
|
1719,
|
|
"FIN_WAIT_1"
|
|
]
|
|
],
|
|
"server": [
|
|
[
|
|
1319,
|
|
"ESTABLISHED"
|
|
]
|
|
]
|
|
}
|
|
}
|