Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Frage Berechnung in Ip-Datagramm

Empfohlene Antworten

Veröffentlicht

Hallo,

der Header des IP-Datagramm hat 20 Byte.

Jetzt arbeite ich gerade eine Aufgabe aus ner alten AP durch, wo man Daten in hexadezimaler Schreibweise einsetzen soll. Daraus ergibt sich, dass der IHL den Hex-Wert 5 erhält.

Eine Frage lautet: "Warum bleibt das Optionen-Feld leer."

Antwort: Da IHL auf 5 gesetzt (5x4 Byte = 20 Byte). SOmit beginnt die Nutzlast beim 21. Byte.

Warum 5 mal 4 Byte? Woher kommen die vier Byte?

5 zeilen a 32 bit (4 byte) = 106 bit (20 byte)

Da die Aufgabe sowie die "header length" angeben, das danach keine header informationen mehr angefügt sind folgt direkt die Nutzlast.

Also ab dem 107 bit (21 byte)

Sorry, kanns nicht besser erklären. Bin auch schon ein bischen wirr im Kopf vom lernen...

Hoffe aber Du verstehst es...

Viel Glück an alle die auch am Dienstag schreiben....

Das habe ich verstanden...

Aber warum 5x4 Byte? Warum zum Teufel vier Byte?

Habe auch mal die Gesamtlänge berechnet. Da steht nämlich in dem entsprechenden Abschnitt 00 28, was Dezimal 40 ist. Wenn ich das mal 4 Byte nehme, erhalte ich insgesamt 1280 Bit.

4 Byte sind 32 Bit.

5, weil ihl = 5

also 5x4Byte = 20 Byte

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.