feat(core): the packet capture's table after Java's Lauscher, measured against Java's own tables

captureRows.ts builds Java's rows per frame (Lauscher.datenVorbereiten):
Ethernet; ARP, ICMP or IP; TCP or UDP; the data with Java's protocol
recognition; with addresses and ports or ports only. The comment stays
structured; captureCommentText says it with given words and numbers.

ScenarioNetwork writes Java's finished tables per card (Lauscher.getDaten,
German locale); all runtime runs are recorded again, NatRun has ttlOut.
expectSameCaptures compares both views for every frame. Fixed where the
engine differed: an ARP request's target MAC is the broadcast address,
an ICMP error's identifier and sequence number are 0 (RFC 792), and host
unreachable from a router carries the packet as forwarded. Not taken:
Java's lower-case broadcast address in a reply to 0.0.0.0, and the typo
'Exeeded'. RIP keeps its recordings: Java's staggered router start now
gives a different startup on this machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 15:11:05 +00:00
co-authored by Claude Opus 5.5
parent 0a34f3a4c4
commit 21a404693c
55 changed files with 37423 additions and 1321 deletions
@@ -2,7 +2,7 @@
"frames": {
"00000000-0000-0000-0000-000000000101": [
{
"time": 850,
"time": 854,
"source": "02:00:00:00:01:12",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
@@ -10,7 +10,7 @@
"targetIp": "192.168.0.10"
},
{
"time": 852,
"time": 855,
"source": "02:00:00:00:01:11",
"destination": "02:00:00:00:01:12",
"arp": 2,
@@ -18,13 +18,13 @@
"targetIp": "192.168.0.20"
},
{
"time": 1079,
"time": 1083,
"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": 52891,
"sourcePort": 52105,
"destinationPort": 80,
"payload": null,
"tcpFlags": "S",
@@ -32,28 +32,28 @@
"acknowledgement": 0
},
{
"time": 1081,
"time": 1085,
"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": 52891,
"destinationPort": 52105,
"payload": null,
"tcpFlags": "SA",
"sequence": 1000000,
"acknowledgement": 2000001
},
{
"time": 17582,
"time": 17585,
"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": 52891,
"destinationPort": 52105,
"payload": null,
"tcpFlags": "F",
"sequence": 1000001,
@@ -62,7 +62,7 @@
],
"00000000-0000-0000-0000-000000000102": [
{
"time": 728,
"time": 733,
"source": "02:00:00:00:01:12",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
@@ -70,7 +70,7 @@
"targetIp": "192.168.0.10"
},
{
"time": 963,
"time": 967,
"source": "02:00:00:00:01:11",
"destination": "02:00:00:00:01:12",
"arp": 2,
@@ -78,13 +78,13 @@
"targetIp": "192.168.0.20"
},
{
"time": 966,
"time": 969,
"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": 52891,
"sourcePort": 52105,
"destinationPort": 80,
"payload": null,
"tcpFlags": "S",
@@ -92,14 +92,14 @@
"acknowledgement": 0
},
{
"time": 17694,
"time": 17697,
"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": 52891,
"destinationPort": 52105,
"payload": null,
"tcpFlags": "F",
"sequence": 1000001,
@@ -108,7 +108,7 @@
],
"00000000-0000-0000-0000-000000000103": [
{
"time": 850,
"time": 854,
"source": "02:00:00:00:01:12",
"destination": "FF:FF:FF:FF:FF:FF",
"arp": 1,
@@ -116,14 +116,14 @@
"targetIp": "192.168.0.10"
},
{
"time": 17696,
"time": 17697,
"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": 52891,
"destinationPort": 52105,
"payload": null,
"tcpFlags": "F",
"sequence": 1000001,
@@ -131,9 +131,473 @@
}
]
},
"rows": {
"00000000-0000-0000-0000-000000000101": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x806"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"ARP",
"Vermittlung",
"MAC ist 02:00:00:00:01:11 [op=REPLY, sender=02:00:00:00:01:11|192.168.0.10, target=02:00:00:00:01:12|192.168.0.20]"
],
[
"3",
"02:00:00:00:01:12",
"02:00:00:00:01:11",
"",
"Netzzugang",
"0x800"
],
[
"3",
"192.168.0.20",
"192.168.0.10",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"3",
"192.168.0.20:52105",
"192.168.0.10:80",
"TCP",
"Transport",
"SYN, SEQ: 2.000.000"
],
[
"4",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"4",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"4",
"192.168.0.10:80",
"192.168.0.20:52105",
"TCP",
"Transport",
"SYN, SEQ: 1.000.000, ACK: 2.000.001"
],
[
"5",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"5",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"5",
"192.168.0.10:80",
"192.168.0.20:52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
],
"00000000-0000-0000-0000-000000000102": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x806"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"ARP",
"Vermittlung",
"MAC ist 02:00:00:00:01:11 [op=REPLY, sender=02:00:00:00:01:11|192.168.0.10, target=02:00:00:00:01:12|192.168.0.20]"
],
[
"3",
"02:00:00:00:01:12",
"02:00:00:00:01:11",
"",
"Netzzugang",
"0x800"
],
[
"3",
"192.168.0.20",
"192.168.0.10",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"3",
"192.168.0.20:52105",
"192.168.0.10:80",
"TCP",
"Transport",
"SYN, SEQ: 2.000.000"
],
[
"4",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"4",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"4",
"192.168.0.10:80",
"192.168.0.20:52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
],
"00000000-0000-0000-0000-000000000103": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"2",
"192.168.0.10:80",
"192.168.0.20:52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
]
},
"layeredRows": {
"00000000-0000-0000-0000-000000000101": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x806"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"ARP",
"Vermittlung",
"MAC ist 02:00:00:00:01:11 [op=REPLY, sender=02:00:00:00:01:11|192.168.0.10, target=02:00:00:00:01:12|192.168.0.20]"
],
[
"3",
"02:00:00:00:01:12",
"02:00:00:00:01:11",
"",
"Netzzugang",
"0x800"
],
[
"3",
"192.168.0.20",
"192.168.0.10",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"3",
"52105",
"80",
"TCP",
"Transport",
"SYN, SEQ: 2.000.000"
],
[
"4",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"4",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"4",
"80",
"52105",
"TCP",
"Transport",
"SYN, SEQ: 1.000.000, ACK: 2.000.001"
],
[
"5",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"5",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"5",
"80",
"52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
],
"00000000-0000-0000-0000-000000000102": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x806"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"ARP",
"Vermittlung",
"MAC ist 02:00:00:00:01:11 [op=REPLY, sender=02:00:00:00:01:11|192.168.0.10, target=02:00:00:00:01:12|192.168.0.20]"
],
[
"3",
"02:00:00:00:01:12",
"02:00:00:00:01:11",
"",
"Netzzugang",
"0x800"
],
[
"3",
"192.168.0.20",
"192.168.0.10",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"3",
"52105",
"80",
"TCP",
"Transport",
"SYN, SEQ: 2.000.000"
],
[
"4",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"4",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"4",
"80",
"52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
],
"00000000-0000-0000-0000-000000000103": [
[
"1",
"02:00:00:00:01:12",
"FF:FF:FF:FF:FF:FF",
"",
"Netzzugang",
"0x806"
],
[
"1",
"192.168.0.20",
"192.168.0.10",
"ARP",
"Vermittlung",
"Suche nach MAC für 192.168.0.10 [op=REQUEST, sender=02:00:00:00:01:12|192.168.0.20, target=FF:FF:FF:FF:FF:FF|192.168.0.10]"
],
[
"2",
"02:00:00:00:01:11",
"02:00:00:00:01:12",
"",
"Netzzugang",
"0x800"
],
[
"2",
"192.168.0.10",
"192.168.0.20",
"IP",
"Vermittlung",
"Protokoll: 6, TTL: 64"
],
[
"2",
"80",
"52105",
"TCP",
"Transport",
"FIN, SEQ: 1.000.001"
]
]
},
"events": [
[
213,
214,
"server oeffnen called"
],
[
@@ -141,48 +605,44 @@
"client verbinden called"
],
[
1081,
1085,
"lost SYN+ACK"
],
[
9019,
9020,
"client verbinden failed TimeOutException"
],
[
17626,
17628,
"server oeffnen returned"
]
],
"states": {
"server": [
[
215,
"CLOSED"
],
[
217,
216,
"LISTEN"
],
[
1081,
1086,
"SYN_RCVD"
],
[
17582,
17586,
"FIN_WAIT_1"
]
],
"client": [
[
713,
714,
"CLOSED"
],
[
724,
728,
"SYN_SENT"
],
[
8974,
8979,
"CLOSED"
]
]