Here are answers to some questions .... .

Note that the more recent answers are added at the start .


14 May 2004

But first two corrections to Assignment 4

The second one replaces the earlier correction (now deleted), dated 6 May

Q3 (iv) How must the routing tables be changed to connect directly
between ports 0 and 5, bypassing ports 1, 2, 3 and 4??

Q4. A user record of 4020 bytes (4000 data + 20 IP header) is
transmitted over a TCP/IPv4 link as below. (The 4000 bytes includes any TCP header.)


18 May 2004



There were a lot of questions about fragmentation, so I will give a major overview of IP and hope that answers the questions.
But first of all I have made a few changes to the Web page on reassembly as below.

IP Reassembly ("defragmentation")
These actions are performed for each received packet (The offset must be multiplied by 8 because it is in units of 8 octets;
similarly the header length is in units of 4 octets and is multiplied by 4.)

And now some other points --


I am reading the material about VC which u provide on the web.
And I am confused one thing that is:
"VC number may be
(1)shared between different links to the same router, and even
(2)in different directions over the same link, but
(3)must be unique in one direction over the one link."
Can I understand them as
(1)different ports in the same router can have same VC number (no matter it is incoming or outgoing),
(2)In the same link, two ports can have same VC number(one's outgoing VC num is equal to another's incoming VC num)
(3)assuming a link from router A port 1 to router B port 3, for router A port 1, if outgoing num is 103, then the incoming num cannot be 103. And this is the only one limitation for VC num generation.
I think my question is not so clear since I am still in the fog.
Could you please explain them?


Your questions 1 & 2, the answer is YES.
Your question 3; there is nothing to stop a port using the same VC number for an outgoing circuit and an incoming circuit.

Another question is about link. From the defination in the handout "A link is a long distance connection between two routers,..." However, can we say the case in the assignmet which is just from port 1 to port 3 in the same router is a link?

Yes, the "link" can be very short.

Third question is about Assignment4 Q3(iv). I really cannot understand why you ask us to do this(Maybe this is due to I cannot understand VC well)? I noticed they have the same outgoing VC nums, and same incoming NC nums. However, to my understanding, it should not be a problem here. Maybe:) Could you please give some hints?

It is really just a contrived example to do something with routing tables.
Perhaps in a real test like this you might have some other equipment or a real long link between two of the loopback ports
and you want to be able to run tests both with and without the other stuff.

On page 13 (lecture handout) *Iteration 2* the cost from A to E is 2 via node B (B,2).The question is : Why did not we take route D ?i.e. from A to E via D, the cost would be the same;A already knows about D.

No good reason - if two costs are the same, just choose either one.

How come an MTU of 5000 octets is bigger than the packet size of 4020 octets? In the lecture example the MTU's (1500/820 octets) are smaller than the user record data.

The MTU=5000 is larger than the packet and does not force fragmentation.
The lecture example was set to force fragmentation.

Q3. Am i right to assume the following ?
    _|0  A   |
     |       |
     |      1|-

     120 (Outgoing VC)
     996 (Incoming VC) 
 
If so how 0&1 and 4&5 have the same Outgoing & Incoming VC's of 120 and 996 respectively?

Why shouldn't they be the same?
As it is only the [port, VC] pair that matters, we can repeat VC numbers on different ports as much as we want.

14 May 2004



For Question 4, the question asks to give appropriate values for all quantities concerned with fragmentation and reassembly...
what are the appropriate values ? are you asking to show offset for each packet? or are you asking to show the total number of bytes received ?


I am asking for all of the values needed for reassembly, whatever they are.

12 May 2004



This is a question from several students.
In Q 1, a node has two paths to node A, with equal costs. Which one do we use?

This is a situation that I have mentioned before, and helps to prepare you for the real world. The REAL WORLD is not nice and tidy, like a lot of assignments, but often has unexpected situations where you must make a decision, often with little guidance.
What you must do is make the best decision that you can, explain what it is and why you have made it. At least the choice is not a mystery.
Here it is reasonable to choose the path with fewer hops to the root node, or the path connected to node with the lowest (or highest ID), or simply pick a path at random.
Any reasonable solution is as good as any other, but you must explain what you have done, and give some reason, even if it is "I made a random choice, because there seemed no good reason for any other".

10 May 2004



For Assignment 4 Q4, "A user record of 4020 bytes is transmitted over a TCP/IPv4 link", does it mean 4020 bytes includes 20 bytes of TCP header and 4000 bytes of user data?

You are correct.

7 May 2004



for the last question , when I tried to find the offsets for MTU is 2000 , then as usual I assume the IP header is 20 bytes , when I divide 1980 by 8 , I have decimals , is it the offset correct or do I make the wrong calculation ??

The IP header is not included in the offset calculations.
When fragmenting, always take earlier fragments in blocks of 8 octets to ensure that later offsets give integers when divided by 8.
You may end up with an odd-sized piece at the very end, but that is handled by the length field which is in bytes and does not have to be a multiple of 8.
For question 3 of assignment 4, I want to ask that,
1)why is the VC number are the same for 2 different port? please explain, thanks


The Virtual Circuit Number is not important by itself; it is really the pair [port, VCnum] that matters.
So two ports can certainly share the same VC number