Knowee
Questions
Features
Study Tools

Given the segment header below of a transport protocol along with the following checksum definition that is computed and then stored before every segment is sent to a receiver: Treat the Source_port, Destination_port and Length fields as 8 bit numbersAdd the Source port to the Destination port to obtain Result_1Add Result_1 to the Length field to obtain Result_2Take the 1’s complement of Result_2 and put the 8 bit value in the Checksum field   <----1 byte---->   <----1 byte---->Source_port Destination_portLength Checksum Compute the value that will be put in the Checksum file for the segment below. Show your work and the final Checksum value. 0011 01000110 10000001 0010

Question

Given the segment header below of a transport protocol along with the following checksum definition that is computed and then stored before every segment is sent to a receiver: Treat the Source_port, Destination_port and Length fields as 8 bit numbersAdd the Source port to the Destination port to obtain Result_1Add Result_1 to the Length field to obtain Result_2Take the 1’s complement of Result_2 and put the 8 bit value in the Checksum field   <----1 byte---->   <----1 byte---->Source_port Destination_portLength Checksum Compute the value that will be put in the Checksum file for the segment below. Show your work and the final Checksum value. 0011 01000110 10000001 0010

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

The given segment is:

Source_port: 0011 0100 (52 in decimal) Destination_port: 0110 1000 (104 in decimal) Length: 0001 0010 (18 in decimal)

Step 1: Add the Source port to the Destination port to obtain Result_1 Result_1 = Source_port + Destination_port = 52 + 104 = 156

Step 2: Add Result_1 to the Length field to obtain Result_2 Result_2 = Result_1 + Length = 156 + 18 = 174

Step 3: Take the 1’s complement of Result_2 and put the 8 bit value in the Checksum field The binary representation of 174 is 10101110. The 1's complement of this binary number is obtained by flipping all the bits, i.e., changing all 1's to 0's and all 0's to 1's. So, the 1's complement of 10101110 is 01010001.

So, the value that will be put in the Checksum field is 01010001.

This problem has been solved

Similar Questions

Which field in a Transmission Control Protocol (TCP) header provides the next expected segment? Data offset Sequence number Checksum Acknowledgement number

Assume that the UDP system on your computer received a datagram whose header contains Source Port #9568, Dest Port #21932, Length of 12, and a payload containing 0x9CBD 0x0085. What value should be in the checksum field?Group of answer choices0001100001011011100111010100001011100111101001000001100001011011

___ is a function of the UDP checksum fieldSelect one:a. Error detectionb. Flow controlc. Congestion avoidanced. Fragmentation

TCP segment format. For the given function of a field in the TCP segment, select the name of that field from the pull-down list.Group of answer choicesThis field contains the port number associated with the sending socket for this TCP segment.This field contains application data that was written into a socket by the sender of this TCP segment.This field contains the index in the sender-to-receiver byte stream of the first byte of that data in the payload carried in this segment.This field contains the index in the byte stream of the next in-order byte expected at the receiverIf set, this segment cumulatively ACKs all data bytes up to, but not including, the byte index in the ACK value field of this segment.This field contains the number of available bytes in the TCP receiver’s buffer.This field contains the Internet checksum of the TCP segment and selected fields in the IP datagram header.This field contains the number of bytes in the TCP header.

For which fields is the UDP checksum calculated? Why

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.