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
:  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. You must manually calculate all parts of this problem. a.How many normal and overweight/obese children are required to ensure that a 95%...
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...
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...
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...
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...
You are tasked to design the ER diagram for the database for the 3S clothing store....
You are tasked to design the ER diagram for the database for the 3S clothing store. Data requirements are as given below. • Information about 3S employees includes a unique employee ID, and his/her name and position. • Each customer of 3S is identified by a customer ID, and has a name. • Information about the suppliers of 3S include a unique name, and a contact phone number. • Clothes stocked by 3S are described by a product code, size,...