Question

We want to design a packet format that contains a date in the form: day /...

We want to design a packet format that contains a date in the form: day / month / year. What should the packet look like? How many bits will really be (will be appropriate) needed to represent the individual parts of the packet?

Homework Answers

Answer #1

Packet format for Date

Date (1-31) Month (1-12) Year (4 digit integer)
5 bits 4 bits 10 bits

There are 31 different possible values for date. If we use 5 bits then we can generate 31 different values (31< 2^5 ). Hence, 5 bits are needed for date.

There are 12 different possible values for month. If we use 4 bits then we can generate 12 different values (12 < 2^4). Hence, 4 bits are needed for month.

Largest 4 digit number is 9999. 2^10 = 1024. 2^9 = 512. Hence, 10 bits are needed to represent a year.

Hence, total packet length will be 5+4+10=19 bits.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Create the following class in C++ Create a new class call Date. Date will contain the...
Create the following class in C++ Create a new class call Date. Date will contain the date stored as day of the month, month and the year. Provide appropriate set and get methods for the class. Use doxygen comments to document Date.h (Date specification). Think about how the class will be used. Modify the input data file to cater for dates. The date in the data file refers to when the mark for the unit was obtained. Unit test the...
Suppose we want to design a new study to assess the implications of childhood obesity on...
Suppose we want to design a new study to assess the implications of childhood obesity on poor health outcomes in adulthood. In the study we will consider total cholesterol at age 50 and incident cardiovascular disease by age 50 as the key outcomes. We will compare normal versus overweight/obese children. Assume that the standard deviation in total cholesterol is 35. a. How many normal and overweight/obese children are required to ensure that a 95% confidence interval estimate for the difference...
In a class C subnet, we know the IP address of one of the hosts and...
In a class C subnet, we know the IP address of one of the hosts and the subnet mask as given below: IP Address: 198.48.82.176 Subnet mask: 255.255.255.224 1) What is the first valid host address in the subnet? (in dotted decimal) 2) What is the last valid address in the subnet? (in dotted decimal) 3) What is the subnet network address? (in dotted decimal) 4) What is the subnet broadcast address? (in dotted decimal) 5) What is the number...
Answer the following questions about time and timers.    In computing, time scales usually store the...
Answer the following questions about time and timers.    In computing, time scales usually store the current time as the number of seconds that have elapsed since the beginning of some “epoch”, which is an arbitrary date that determines the starting time.   For example, in the Network Time Protocol (NTP) this is defined as midnight January 1st (GMT) 1900. The elapsed seconds since the epoch are stored in a 32-bit unsigned integer.   a. How many years can be represented in...
this is a thermodynamics class 4. We want to develop an intuition for what different amounts...
this is a thermodynamics class 4. We want to develop an intuition for what different amounts of energy look like in various forms. Calculate the energy in MegaJoules (MJ) present in the following systems. As a comment, many people will be surprised by some of the values, for example, a comparison of part e to parts a through c. a) 1 liter (approximately 1 quart) of octane, a primary component of gasoline. In this case, the chemical energy is released...
8.1 Radical Rewrite in AIDA format: Weak Persuasive Request Inviting Small Planet Speaker (Objs. 1, 2)...
8.1 Radical Rewrite in AIDA format: Weak Persuasive Request Inviting Small Planet Speaker (Objs. 1, 2) The following request from a program chair is intended to entice a prospective speaker, but it could be more much effective with a radical rewrite. Your Task. Analyze this poorly written request, and list at least five weaknesses. If your instructor directs, revise the letter implementing an effective persuasive strategy. Add appropriate information if needed. Current date Ms. Anna Lappé 418 North Jay Street...
1) You have decided that you want to buy a home in 6 years. You believe...
1) You have decided that you want to buy a home in 6 years. You believe you can afford a house that is $190,000. a) If you want to have 15% for a down payment, how much will you need to have for the down payment? Down payment = $. DO NOT TYPE COMMAS OR ANSWERS WILL BE MARKED INCORRECT. Round your answer to 2 decimal places as needed. b) You decide to start investing money now so that you...
You find yourself sitting in at a table in the “Ol‘ Living Scientist Cafe” and you...
You find yourself sitting in at a table in the “Ol‘ Living Scientist Cafe” and you overhear comments from conversations going on at nearby tables. Based on your molecular biology training, you think you can figure out who is talking. Ascribe the following comments to the scientist that would be their most likely progenitor. “We never dreamed that we might be the first two women to win a Nobel Prize in a single category, but I can’t deny that the...
Now we want to display which error was thrown in our voting program. ( BOTH QUESTIONS...
Now we want to display which error was thrown in our voting program. ( BOTH QUESTIONS ARE PYTHONS PROGRAMS) Add the appropriate code to the try/except statement so the exception is displayed. Run the program and, when prompted, enter the word 'old' so your output matches the output under Desired Output. # Set the variable age = input("What is your age?") # Insert a try/except statement # here when you convert the input # to a number using int() try:...
E-mail Message – ROUGH DRAFT DATE: March 28, 2019 TO: Jean Miller, President SUBJECT: (1) An...
E-mail Message – ROUGH DRAFT DATE: March 28, 2019 TO: Jean Miller, President SUBJECT: (1) An increase in workers’ compensation (WC) insurance premiums has been observed in our company over the past 12 months. (2) In addition, a higher number of sick days have been taken this year. (3) On March 1 you asked me to research some options to reduce WC claims and ameliorate the health of our employees. (4) As a result, I am reccomending that we introduce...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT