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?

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.

#### Earn Coins

Coins can be redeemed for fabulous gifts.

##### Need Online Homework Help?

Most questions answered within 1 hours.

##### Active Questions
• Manufacturing companies strive to maintain production​ consistency, but it is often difficult for outsiders to tell...
• There is a difference between statistical probability and theoretical probability. The theoretical probability of rolling a...
• In a small struggling technology company, the employees are aware that processes and structures must change...
• On June 30, 2018, Blue, Inc. leased a machine from Large Leasing Corporation. The lease agreement...
• You are on a mountain and see three other mountain tops that create a polygonal valley....
• Congressional Ethics: Identify one (1) member of Congress who has been charged with ethics violations in...