Question

5) Discuss how demultiplexing is carried out using BOTH TCP and UDP. [5 marks] 6) Can...

5) Discuss how demultiplexing is carried out using BOTH TCP and UDP. [5 marks]

6) Can the receiver of UDP packet be absolutely sure that no errors have occurred? Explain your answer. [5 marks]

Please explain clearly and label each answer properly.

Homework Answers

Answer #1

5.UDP and TCP perform the demultiplexing jobs by including two special fields in the segment headers: the source port number field and the destination port number field.

In TCP, the receiver host uses all of source IP, source port, destination IP and destination port to direct datagram to appropriate socket. While in UDP, the receiver only checks destination port number to direct the datagram.

6.No, the receiver cannot be absolutely certain that no errors have occurred. This is because of the manner in which the checksum for the packet is calculated.Since the data received is from the network layer to transport layer, and we know at network layer we have IP which uses checksum at header only.so there is lots of probability that data might be corrupted.

For example,If the corresponding bits (that would be added together) of two 16-bit words in the packet were 0 and 1 then even if these get flipped to 1 and 0 respectively, the sum still remains the same. Hence, the 1s complement the receiver calculates will also be the same. This means the checksum will verify even if there was transmission error.

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
The code I have written runs but I need it us UDP not TCP. Also I...
The code I have written runs but I need it us UDP not TCP. Also I just need someone to check my work and make sure that it works properly. The python code needs to be run with command line so you can add more than one client. The directions: 1. The chat is performed between 2 clients and not the server. 2. The server will first start up and choose a port number. Then the server prints out its...
5)Your cells can break down fats using fermentation or cellular respiration. a)true b)false 6])E. coli can...
5)Your cells can break down fats using fermentation or cellular respiration. a)true b)false 6])E. coli can do both fermentation and cellular respiration. You have two cultures of E. coli. You give them the same amount of food (glucose) and grow them at the same temperature. One culture is grown in open air, the other is placed in an oxygen free bag. The two cultures are growing at the same rate (producing new cells at the same rate). What is happening...
Life Planning Using TVM: Please show how you obtained the answer, so I can have a...
Life Planning Using TVM: Please show how you obtained the answer, so I can have a better understanding. 1. You want to buy a $250,000 house 5 years from now. If you have no money to begin with, how much do you need to save at the end of each year to have 20% of the$250,000 purchase price? You plan to invest your savings with your broker who will allocate it into various asset classes. You hope to earn 8%...
MICRO Economics ASSIGNMENT Total marks= 20 Answer the below questions. 1. The economy of the university...
MICRO Economics ASSIGNMENT Total marks= 20 Answer the below questions. 1. The economy of the university town of Avicenna produces two and only two commodities: yoga lessons, and triple lattes. The economy is able to produce any of the following combinations of yoga and lattes per day: CLO 1 [4 MARKS] Daily Production in Avicenna Combination Yoga Lessons Triple Lattes A 5000 0 B 4000 9000 C 3000 16000 D 2000 21000 E 1000 24000 F 0 25000 a) Using...
5. How heavy are the backpacks carried by college students? To estimate the weight of backpacks...
5. How heavy are the backpacks carried by college students? To estimate the weight of backpacks carried by college students, a researcher weighs the backpacks from a random sample of 58 college students. The average backpack weight ends up being 15.7 pounds, with a standard deviation of 2.4 pounds. If you use this data to construct a 90% confidence interval, what will the margin of error be for this interval? Try not to do a lot of intermediate rounding until...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
Suppose someone has told you that he will pay you $500 if you can roll a...
Suppose someone has told you that he will pay you $500 if you can roll a die and have it land on a 6. You both agree that you will use a virtual die that can be found at this website. Be sure to set it on one die, and not two. You are not certain that using a die such as this virtual die is actually as fair as a normal plastic die and want to justify for yourself...
Q 6 Identify the type of primary scale of measurement being used in each of the...
Q 6 Identify the type of primary scale of measurement being used in each of the following cases. Please give a rationale (in one sentence) for each case. (a) I like to solve crossword puzzles Disagree Agree 1 2 3 4 5 (b) How old are you? (c) Please rank the following activities in terms of your preference by assigning ranks 1 (most preferred) to 5 (least preferred). i. Reading magazines ii. Watching television iii. Dating iv. Shopping v. Eating...
In your new role as quality manager of the high-tech unit of a large national company,...
In your new role as quality manager of the high-tech unit of a large national company, you identify a problem which is typified by the two internal memos shown below. MEMO 1 From: Marketing Manager To: Managing Director Cc: Production Director Works Manager Date: 4th January 2020 We have recently carried out a customer survey to examine how well we are doing in the market. Regarding our product range, the reactions were generally good, but the 750 W microwave oven...
please can you make it simple. For example using scanner or hard coding when it is...
please can you make it simple. For example using scanner or hard coding when it is a good idea instead of arrays and that stuff.Please just make one program (or class) and explain step by step. Also it was given to me a txt.htm 1.- Write a client program and a server program to implement the following simplified HTTP protocol based on TCP service. Please make sure your program supports multiple clients. The webpage file CS3700.htm is provided. You may...