Question

In: Computer Science

Show work please, this is the last problem for my homework and I cannot figure this...

Show work please, this is the last problem for my homework and I cannot figure this out for the life of me

An IP4 datagram arrived with the following information in the header (in hexadecimal):

               0x4A 00 00 56 00 03 58 50 18 06 58 50 7C 4E 03 02 B4 0E OF 15 2f……….

  1. Are there any options? How many bytes, if any?
  2. How many more routers can the packet travel to? Explain.
  3. What is the size of data only?
  4. What is the destination IP address expressed in decimal notation?
  5. What is the value of the checksum in hexadecimal?
  6. What is the source IP address (in dotted decimal format)?

Solutions

Expert Solution

Let us first find the value of header fields before answering the questions:

Given-0x4A 00 00 56 00 03 58 50 18 06 58 50 7C 4E 03 02 B4 0E 0F 15 2f……….

VER = 0x4 = 4

HLEN =0xA = 10 * 4 = 40 bytes

Service =0x00 = 0 (Normal/routine)

Total Length = 0x0056 = 86 bytes

Identification = 0x0003 = 3

Flags and Fragmentation = 0x5850  D = 1 M= 0 offset = 6224

Time to live = 0x18 = 24

Protocol = 0x06 = 6

Checksum = 0x5850=(0101 1000 0101 0000) 1s complement(1010 0111 1010 1111)

Source Address: 0x7C4E0302 =7C:4E:03:02 =124.78.3.2

Destination Address: 0xB40E0F15 = B4:0E:0F:15=180.14.15.13

a. Are there any options? How many bytes, if any?

Yes

In an IPv4 packet, the value of HLEN is 1010 in binary The HLEN value is 10, which means the total number of bytes in the header is 10 × 4, or 40 bytes. The first 20 bytes are the base header, the next 20 bytes are the options.

b. How many more routers can the packet travel to? Explain.

Since the value of time to live = 24, the packet may visit up to 24 routers.

c. What is the size of data only?

Total Length= Length of header + Data (16 bits)

            Data=86-20

Data=66bytes

d. What is the destination IP address expressed in decimal notation?

180.14.15.13

e. What is the value of the checksum in hexadecimal?

Without 1s compliment 5850

With A7AF

f. What is the source IP address (in dotted decimal format)?

124.78.3.2

           

           


Related Solutions

in java: In my code at have my last two methods that I cannot exactly figure...
in java: In my code at have my last two methods that I cannot exactly figure out how to execute. I have too convert a Roman number to its decimal form for the case 3 switch. The two methods I cannot figure out are the public static int valueOf(int numeral) and public static int convertRomanNumber(int total, int length, String numeral). This is what my code looks like so far: public static void main(String[] args) { // TODO Auto-generated method stub...
I have done the first part of this problem, but I cannot figure out the second...
I have done the first part of this problem, but I cannot figure out the second part. I know there are several different answers already posted on Chegg for this particular problem with different acceleration and time, but I need this one specifically, with a step by step solution. Again...just PART B....the answer to Part A is 201.72 A helicopter carrying Dr. Evil takes off with a constant upward acceleration of 4.20 m/s2. Secret agent Austin Powers jumps on just...
I cannot figure out this problem, I've made a few attempts at solving it. I could...
I cannot figure out this problem, I've made a few attempts at solving it. I could really use some help. The question is : 75.00 mL of 0.225 M HNO2 is titrated to its equivalence point with 0.100 M NaOH. What is the pH at its' equivalence point? Please help!
Please show the work, I have looked at this problem a couple of different ways and...
Please show the work, I have looked at this problem a couple of different ways and can't figure out how the answer comes to be. Daniel allocates his budget of $24 per week among three goods. Use the following table of the marginal utilities for Good A, Good B, and Good C to answer the questions below QA MUA QB MUB QC MUC 1 50 1 75 1 25 2 40 2 60 2 20 3 30 3 40 3...
I am attempting to calculate the annual net cash flow for this problem and cannot figure...
I am attempting to calculate the annual net cash flow for this problem and cannot figure out how to solve it. Case Study: Alexander & Sons Alexander & Sons Company is currently considering the purchase of equipment that produces mugs. The equipment needed would cost $3 million, with a disposal value of $400,000. The equipment would be able to produce 55 million mugs over its 5-year life. The company has estimated that approximately 11 million mugs would be sold for...
I cannot figure out why my random name generator isn't producing the letter u or z....
I cannot figure out why my random name generator isn't producing the letter u or z. Can someone help me out? The language is java. import java.util.Random; public class BrandName {    public static void main(String[] args) {        Random random = new Random();        System.out.println("Brand Name Generator - Michael Wikstrom\n");        char odd[] = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'y',       ...
Cannot figure out why my c++ program keeps crashing, I am attempting to have the user...
Cannot figure out why my c++ program keeps crashing, I am attempting to have the user decide the size of a 2d array then fill said array. #include <iostream> using namespace std; typedef int* IntArrayPtr; int main(void) { int column, row, i, j; IntArrayPtr *arr_num = new IntArrayPtr[row]; cout << " " << endl << " This program creates a 2D array of dynamic memory, fills it with user entered numbers, " << endl << " Then prints the array...
I can't figure this problem out! The problem is: Show the relationship between income and crime...
I can't figure this problem out! The problem is: Show the relationship between income and crime using indifference curves.
how do i work out the correlation coefficient on my hp 10bii financial calculator... please show...
how do i work out the correlation coefficient on my hp 10bii financial calculator... please show steps
Hey there! My professor wrote this vague problem on the board and I can't figure out...
Hey there! My professor wrote this vague problem on the board and I can't figure out how to solve it so --- I apologize in advance for any lack of clarity. 50.0 mL of 0.03M of Cysteine is titrated by 0.06M of NaOH pKa 2= 8.37 pKa 1 = 1.92 What is the pH of the solution..... 1) Before any titrant is added 2) 12.5 mL of NaOH 3) 25.0 mL of NaOH 4) 37.5 mL of NaOH 5) 50.0...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT