I've marked yesterday's exam and you can check (only for a limitted time) the scanned marked exams.
Marks are in the usual place, those with a red number in the mark have failed the semester. Please note this is just for internal consumption as the only official mark will be the one obtained at the end of the 2nd term.
If you think a mistake has been made in your exam's grading, please email me with the details and I'll have a look a it.
Please note that the average of all the assessment during the first term is a pass mark, which means those who failed will have a difficult time blaming the subject.
Wednesday, January 30, 2013
Tuesday, January 29, 2013
Back to classes
Though next Friday February 1st starts the second term, by popular request we are moving this class to next week's Wednesday February 6th, same classroom as usual at 9:00am. I have been told this will cause no collision with any other teaching teaching activity.
The online poll for this change got 12 votes for changing the class, 5 votes didn't care, and no votes against. Though I've learned today that not all the students have a facebook acount, I still think the result is pretty conclusive.
See you Wednesday. BTW, first exams corrected show a very good average.
The online poll for this change got 12 votes for changing the class, 5 votes didn't care, and no votes against. Though I've learned today that not all the students have a facebook acount, I still think the result is pretty conclusive.
See you Wednesday. BTW, first exams corrected show a very good average.
Monday, January 21, 2013
Exam reminder
Next week's Tuesday, January 29, 2013, the second exam of the 1st term will be held at building 1G classroom 1.5.
Start time is 10:00am and the exam duration is one and a half hours. Topics will be from Chapters 3, 4 & 5. Remember Chapter 3 was covered in the lab (Socket Network Programming), while Chapters 4 & 5 are based on (Chapters 3 & 8 from Kurose's book).
Regarding Computer Security you may find interesting this video resource.
Start time is 10:00am and the exam duration is one and a half hours. Topics will be from Chapters 3, 4 & 5. Remember Chapter 3 was covered in the lab (Socket Network Programming), while Chapters 4 & 5 are based on (Chapters 3 & 8 from Kurose's book).
Regarding Computer Security you may find interesting this video resource.
Saturday, January 12, 2013
Solved homework
Homework solutions
- Host A connects to host B using TCP to perform an HTTP request. Host B closes the connection once it has provided a response. Request size is 500 bytes and response size is 3000 bytes. The initial sequence number on A is 1000 and the initial sequence number on B is 5000. MSS for both hosts is 1460 bytes. Please detail the sequence of TCP segments exchanged from the beginning till the end of the connection (for each segment list: sender, sequence number, acknowledgement sequence number, active flags and number of data bytes) under the following conditions:
- No flow control, no congestion control. Regular acknowledgements.
No flow control means you are free to assume that receiver is always happy to receive new data, so it is ok to assume recv_window >= 1 MSS anytime.
No congestion control means that your sending is not restricted by any value of the congestion windows, that you can assume anytime cong_win == infinite.
Initial sequence numbers are increased by one due to the SYN segment exchange at the beginning, so first data byte from A will be 1001 (and 5001 from B).
Request from A can be sent in a single segment with sequence number 1001 (containing 500 data bytes) that will be acknowledged with number 1501. Response from B has to be splitted into three segments of sizes 1460, 1460 and 80 data bytes each.
But the three segments can be transmitted without waiting for any delay (remember, no flow or congestion control). Each one of these segments will carry value 1501 for the acknowledgement number.
Connection will be closed by B, so this is started by sending a FIN segment, with sequence number
- Same as before but using delayed acknowledgements.
- Same as (2) but using congestion control. What is the congestion window size on each end when FIN is received?
- Write a simple UDP echo server. (No need to create a class or method, just the main server loop).
DatagramSocket ds = new DatagramSocket(7777);
//Port of the server is not mentioned, so we use the one we want
Datagram packet dp = new DatagramPacket(new byte[1024],1024);
// these lines above are not needed in a valid answer.
while(true) {
ds.receive(dp); // received datagram packet over socket
ds.send(dp); // send it back to the source
}
- During a TCP connection, one end receives a segment with recv_window = 0. What does it mean? What does this end do if there is application data to be transmitted?
Broadly speaking it means that we no longer can transmit more data (flow-control in action) until a new received segment reports a larger-than-zero value. Retransmissions are possible though.
However, if you look at the RFC 793, page 41: The sending TCP must be prepared to accept from the user and send at least one octet of new data even if the send window is zero. The sending TCP must regularly retransmit to the receiving TCP even when the window is zero. Two minutes is recommended for the retransmission interval when the window is zero. This retransmission is essential to guarantee that when either TCP has a zero window the re-opening of the window will be reliably reported to the other.
However, if you look at the RFC 793, page 41: The sending TCP must be prepared to accept from the user and send at least one octet of new data even if the send window is zero. The sending TCP must regularly retransmit to the receiving TCP even when the window is zero. Two minutes is recommended for the retransmission interval when the window is zero. This retransmission is essential to guarantee that when either TCP has a zero window the re-opening of the window will be reliably reported to the other.
Therefore, if more application data is pending, this sender will wait till it can be transmitted (but it will send 1 byte segments every now and then). No error condition is signal to the application (as this condition is perfectly normal).
- Assuming all TCP segments transmitted are acknowledged right away, what is the value of the congestion window after sending 35 segments after a Timeout if Threshold = 3
Friday, January 11, 2013
Solved test
You can check your class project presentation mark in this page. (Link has been updated, it was wrong before).
And you can have a look at the solved test below:
And you can have a look at the solved test below:
Saturday, January 5, 2013
RSA explained
First of all I want to wish you a happy new year.
We will be covering public key encryption in the next class, but time might be a bit tight, so you may want to have a look at these lessons.
Please remember that next Tuesday January 8 is the last chance to present your Java project and that on Friday January 11 a quick test will be held too.
We will be covering public key encryption in the next class, but time might be a bit tight, so you may want to have a look at these lessons.
Please remember that next Tuesday January 8 is the last chance to present your Java project and that on Friday January 11 a quick test will be held too.
Subscribe to:
Posts (Atom)