Answered! The following is a dump of the initial bytes of a DATA chunk in hexadecimal format. Note that not all bytes are shown….

The following is a dump of the initial bytes of a DATA chunk in hexadecimal format. Note that not all bytes are shown.

00070017 00000005 0003000A 00000000 48656C6C 6F000000 …………

Is this the first, the last, the middle fragment or a complete message? Why?

How many bytes of padding are carried by the chunk?

** Please do not copy information from the internet, either answer this question or leave it. I need to compare my answers and make sure I have them correct. Thanks.

Expert Answer

 First of all you should understand what data chunk is and padding, in actual data chunk has different type and format. Each chunk type has 4 byte value and every 5th bit of the 1st byte is used to indicate whether the chunk type is public ( 5th bit=0) or private (5th bit= 1) and remaining byte is reserved.

The following lists the chunk types available in 32-bit big-endian format:

SAMP

Byte number   0  1  2  3
            +--+--+--+--+
Hex values  | data name |
            +--+--+--+--+

This data chunk contains a 4-byte name associated with the trace and if the name is less than 4 byte then applied right padding with null character to 4 byte.

SMP4

Byte number   0 1 2 3 4 5 6 7       N

+–+–+–+–+–+–+–+–+-     -+

Hex values | 0| 0| data| data| data|   –   |

+–+–+–+–+–+–+–+–+-     -+

First byte is 0, next is single padding byte 0, after that following 2-byte big endian trace sample A.

Your Question has ambiguity data chunk has their own significant role and padding is applied for identification of next starting data chunk. So we cannot say that provided data 00070017 00000005…. Is what

Still stressed from student homework?
Get quality assistance from academic writers!