Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7843345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:31:42+00:00 2026-06-02T16:31:42+00:00

I was practicing questions for this topic and I came across this question: Look

  • 0

I was practicing questions for this topic and I came across this question:

Look at the 40byte dump of an IP packet containing a TCP segment below (in hexadecimal).

45 20 03 c5 78 06 00 00 34 06 ca 1f d1 55 ad 71 c0 a8 01 7e
00 50 9a 03 3e 64 e5 58 df d0 08 b3 80 18 00 de 00 02 00 00

Identify all the fields of the IP and TCP header.

Source: Q1 of http://www.eng.utah.edu/~cs5480/homeworks/hw3_soln.pdf

Now I do have the datagram format layout of IPv4 in front of me. The thing I don’t understand is that in the solution it says that header length is 20bytes but according to the format the bits 4-7 correspond to header length which is 0x03c5 = 965 bytes. However, in the solution 965bytes is the total datagram length.

Can someone explain this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:31:44+00:00Added an answer on June 2, 2026 at 4:31 pm

    digits != bits.

    Assuming zero-based counting, 0x03c5 is hex digits 4-7 in your data.

    Bits 4-7 would be the hex 5 appearing earlier. This header value represents the number of 32-bit words in the header, so you have to multiply by 4 to get 20 as the number of bytes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was practicing SRM Problems in Topcoder.I came across this problem Problem Statement: Today
Firstly this is not a homework question. I am practicing my knowledge on java.
I've been practicing certain techniques in XNA and lately came across an issue that's
Being new to c++ I've been practicing with questions. One program I wrote includes
I've been practicing for an upcoming programming competition and I have stumbled across a
I'm practicing Jquery and I've written this simple Jquery statement: var someText = $(table
I know this is a stupid question, but I've looked for 45 mins now
I'm practicing some simple 2D game programming, and came up with a theory that
I know there are duplicates of this question, and the answer was to refactor
In attempt to learn Hadoop, I am practicing unsolved programming questions from the book

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.