replace ascii encapsulation diagrams: tcp, ip, ethernet, router re-hop

This commit is contained in:
2026-04-20 11:10:47 +02:00
parent 76f7ff3a46
commit 777e0ffddb
9 changed files with 338 additions and 48 deletions

View File

@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Ethernet-Frame</title>
<style>
html, body { margin: 0; padding: 0; background: #fff; font-family: system-ui, sans-serif; }
body { padding: 30px; display: inline-block; }
.wrap {
border: 2px solid #c2410c;
border-radius: 6px;
overflow: hidden;
min-width: 680px;
}
.eth-header, .fcs {
background: #fed7aa;
padding: 12px 16px;
}
.eth-header { border-bottom: 2px solid #c2410c; }
.fcs { border-top: 2px solid #c2410c; color: #7c2d12; font-weight: 600; font-size: 0.9rem; }
.header-title {
font-weight: 700;
color: #7c2d12;
margin-bottom: 8px;
font-size: 1.05rem;
}
.fields {
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid #c2410c;
border-radius: 4px;
overflow: hidden;
background: #fff;
}
.field {
padding: 8px 12px;
border-right: 1px solid #c2410c;
font-size: 0.85rem;
}
.field:last-child { border-right: 0; }
.field-label { color: #7c2d12; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field-value { font-family: ui-monospace, monospace; color: #0f172a; margin-top: 2px; }
.nested {
background: #dcfce7;
border: 2px solid #15803d;
border-radius: 4px;
margin: 12px 16px;
padding: 12px 16px;
}
.nested-title { color: #14532d; font-weight: 700; font-size: 0.95rem; }
.nested-note { color: #14532d; font-size: 0.85rem; font-style: italic; }
</style>
</head>
<body>
<div class="wrap">
<div class="eth-header">
<div class="header-title">Ethernet-Header</div>
<div class="fields">
<div class="field">
<div class="field-label">Source MAC</div>
<div class="field-value">aa:bb:cc:dd:ee:ff</div>
</div>
<div class="field">
<div class="field-label">Dest MAC (Router!)</div>
<div class="field-value">11:22:33:44:55:66</div>
</div>
</div>
</div>
<div class="nested">
<div class="nested-title">IP-Paket</div>
<div class="nested-note">unverändert gekapselt</div>
</div>
<div class="fcs">FCS — Frame Check Sequence (Prüfsumme)</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -0,0 +1,99 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Ethernet nach Router-Hop</title>
<style>
html, body { margin: 0; padding: 0; background: #fff; font-family: system-ui, sans-serif; }
body { padding: 30px; display: inline-block; }
.wrap {
border: 2px solid #c2410c;
border-radius: 6px;
overflow: hidden;
min-width: 680px;
}
.eth-header {
background: #fed7aa;
padding: 12px 16px;
border-bottom: 2px solid #c2410c;
}
.header-title {
font-weight: 700;
color: #7c2d12;
margin-bottom: 8px;
font-size: 1.05rem;
}
.badge {
display: inline-block;
background: #c2410c;
color: #fff;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-left: 8px;
vertical-align: middle;
}
.fields {
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid #c2410c;
border-radius: 4px;
overflow: hidden;
background: #fff;
}
.field {
padding: 8px 12px;
border-right: 1px solid #c2410c;
font-size: 0.85rem;
}
.field:last-child { border-right: 0; }
.field-label { color: #7c2d12; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field-value { font-family: ui-monospace, monospace; color: #0f172a; margin-top: 2px; }
.nested {
background: #dcfce7;
border: 2px solid #15803d;
border-radius: 4px;
margin: 12px 16px;
padding: 12px 16px;
}
.nested-title { color: #14532d; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.nested-line { color: #14532d; font-size: 0.85rem; font-family: ui-monospace, monospace; }
.nested-badge {
display: inline-block;
background: #15803d;
color: #fff;
padding: 2px 8px;
border-radius: 3px;
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-left: 6px;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="wrap">
<div class="eth-header">
<div class="header-title">Ethernet-Header<span class="badge">neu</span></div>
<div class="fields">
<div class="field">
<div class="field-label">Source MAC</div>
<div class="field-value">Router-MAC</div>
</div>
<div class="field">
<div class="field-label">Dest MAC</div>
<div class="field-value">Nächster-Router</div>
</div>
</div>
</div>
<div class="nested">
<div class="nested-title">IP-Paket<span class="nested-badge">unverändert</span></div>
<div class="nested-line">Source: 141.62.xxx.xxx</div>
<div class="nested-line">Dest: 212.132.79.37</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>IP-Paket</title>
<style>
html, body { margin: 0; padding: 0; background: #fff; font-family: system-ui, sans-serif; }
body { padding: 30px; display: inline-block; }
.wrap {
border: 2px solid #15803d;
border-radius: 6px;
overflow: hidden;
min-width: 660px;
}
.ip-header {
background: #dcfce7;
padding: 12px 16px;
border-bottom: 2px solid #15803d;
}
.header-title {
font-weight: 700;
margin-bottom: 8px;
font-size: 1.05rem;
}
.ip-header .header-title { color: #14532d; }
.fields {
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid #15803d;
border-radius: 4px;
overflow: hidden;
background: #fff;
}
.field {
padding: 8px 12px;
border-right: 1px solid #15803d;
font-size: 0.85rem;
}
.field:last-child { border-right: 0; }
.field-label { color: #14532d; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field-value { font-family: ui-monospace, monospace; color: #0f172a; margin-top: 2px; }
.nested {
background: #dbeafe;
padding: 12px 16px;
border: 2px solid #1e40af;
border-radius: 4px;
margin: 12px 16px;
}
.nested-title { color: #1e3a8a; font-weight: 700; font-size: 0.95rem; }
.nested-note { color: #1e3a8a; font-size: 0.85rem; font-style: italic; }
</style>
</head>
<body>
<div class="wrap">
<div class="ip-header">
<div class="header-title">IP-Header</div>
<div class="fields">
<div class="field">
<div class="field-label">Source IP</div>
<div class="field-value">141.62.xxx.xxx</div>
</div>
<div class="field">
<div class="field-label">Destination IP</div>
<div class="field-value">212.132.79.37</div>
</div>
</div>
</div>
<div class="nested">
<div class="nested-title">TCP-Segment</div>
<div class="nested-note">unverändert gekapselt</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>TCP-Segment</title>
<style>
html, body { margin: 0; padding: 0; background: #fff; font-family: system-ui, sans-serif; }
body { padding: 30px; display: inline-block; }
.frame {
border: 2px solid #1e40af;
border-radius: 6px;
overflow: hidden;
min-width: 640px;
}
.header {
background: #dbeafe;
padding: 12px 16px;
border-bottom: 2px solid #1e40af;
}
.header-title {
font-weight: 700;
color: #1e3a8a;
margin-bottom: 8px;
font-size: 1.05rem;
}
.fields {
display: grid;
grid-template-columns: 1fr 1fr 1.3fr;
gap: 0;
border: 1px solid #1e40af;
border-radius: 4px;
overflow: hidden;
background: #fff;
}
.field {
padding: 8px 12px;
border-right: 1px solid #1e40af;
font-size: 0.85rem;
}
.field:last-child { border-right: 0; }
.field-label { color: #1e3a8a; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.field-value { font-family: ui-monospace, monospace; color: #0f172a; margin-top: 2px; }
.payload {
background: #f3f4f6;
padding: 14px 16px;
color: #374151;
}
.payload-label {
font-weight: 700;
color: #1f2937;
font-size: 0.9rem;
margin-bottom: 4px;
}
.payload-value {
font-family: ui-monospace, monospace;
font-size: 0.95rem;
}
</style>
</head>
<body>
<div class="frame">
<div class="header">
<div class="header-title">TCP-Header</div>
<div class="fields">
<div class="field">
<div class="field-label">Source Port</div>
<div class="field-value">52431</div>
</div>
<div class="field">
<div class="field-label">Dest Port</div>
<div class="field-value">443</div>
</div>
<div class="field">
<div class="field-label">Sequence Nr</div>
<div class="field-value">1001</div>
</div>
</div>
</div>
<div class="payload">
<div class="payload-label">Payload</div>
<div class="payload-value">GET / HTTP/1.1 ...</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB