




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





0.25 each and round-up (2 pts total) Throughput, delay, loss, cost, mobility, robustness, and secrecy
0.25 each and round-up (2 pts total) Message formatting, error detection and recovery, addressing, routing, flow control, system management, security, and QoS
1 each for same and difference (3 pts total) Both are a complete set of rules for information exchange (same). A protocol is between same level layers, an interface is between adjacent layers (different). A protocol is between sites, an interface is within a single site (different).
0.25 each and round-up – identifying adapters is critical (2 pts total) An end node will have a bus, CPU, memory, I/O, and an adapter. An intermediate node will have a bus, CPU, memory, and more than one adapter. A PC (or iPhone or etc.) is an example of an end node. A router (or switch or access point) is an example of an intermediate node.
0.5 each and round-up (3 pts total) +------------------+ | Application | 7 – Provides access to applications +------------------+ | Presentation | 6 – Provides data independence +------------------+ | Session | 5 – Manages end-to-end connections +------------------+ | Transport | 4 – Provides reliable end-to-end data transfer +------------------+ | Network | 3 – Maintains point-to-point connections +------------------+ | Data link | 2 – Provides reliable error-free point-to-point data transfer +------------------+ | Physical | 1 – Transmission of bit stream (cabling, voltages, etc.) +------------------+
0.5 pt each cause and 2 pts for graph and round up (4 pts total) The factors the cause delay are processing, transmission, propagation, and queueing. Queueing delay is non- linear and approaches infinity as offered load approaches 100%, something like this:
0.5 pt each cause and round up (2 pts total) Packet delay can be reduced by faster processing at end nodes, a faster transmission rate, and reduced distance between end-points.
2 pt each (6 pts total) Transmission time is packet length divided by transmission rate, this is 1.2 milliseconds for this case. Propagation delay is the distance multiplied by the propagation rate. At 1 nanosecond per foot = 5 microseconds per mile we get about 5 milliseconds for the propagation delay. The human threshold for delay is about 100 milliseconds, so both of these delays are “instantaneous” to a human.
1 pt Layer 5 (the top layer)
1 pt each (4 pts total) Types of messages, syntax of messages, semantics of messages, and timing (when and how).
0.5 each and round-up (3 pts total) In order, Ethernet header, IP header, TCP header, HTTP header, HTTP message, Ethernet trailer
2 pts each part (4 pts total)
constraint is W ⋅ tfr > 2 t (^) pr + tfr.
0.5 pts and round-up (3 pts total) URG – Urgent, location of urgent byte for received is indicated in urgent data pointer ACK – Acknowledgement of a segment received PSH – Indicates that receiver should pass (push) data to application layer immediately RST – Reset a connection SYN – Synchronize, used for initating a connection set-up FIN – Finish, used for initiating a connection close from one side
1 pts each (5 pts total) When retransmitting a packet after a time-out it is impossible to determine if a received ACK is for the original or re-transmitted packet. As such, TCP cannot correctly update the RTT estimate. On retransmission, TCP “backs- off” (typically, doubles) RTO. Using multipliers that are a power of 2 enables simple shift operations for multiplication and division (the floating point unit is not needed).
1 pt each (2 pts total) Throughput (or efficiency) versus fairness.
2 pt each (4 pts total) TCP implicitly detects congestion by a time-out (that is, ACK does not return before RTO times-out). TCP responds to this implicit detection of congestion by reducing its window size.
6 pts total Allocating 2 Mb/s to all nodes we find that E is “happy” with 1 Mb/s leaving 1 Mb/s to re-allocate, D is happy with 2 Mb/s (leaving nothing to re-allocate), and C, B, and A all have 2 Mb/s and need more. The 1 Mb/s is then allocated to C, B, and A (1/3 Mb/s to each) with a final max-min fair allocation of A get 2.33 Mb/s, B get 2.33 Mb/s, C gets 2.33 Mb/s, D gets 2 Mb/s, and E gets 1 Mb/s.
0.5 each and round-up (1 pts total) To deliver packets end to end.
0.5 each and round-up (3 pts total) Cost metrics include hops, link capacity, throughput, congestion, and delay. The first two are static, the last three are dynamic (that is, they change as a function of offered load on the network).
1 pt each step and 1 pt for final path and cost (6 pts total) The solution is: {D,E} DE = 1 {D,E,C} DEC = 2 {D,E,C,F} DEF = 3 {D,E,C,F,B} DB = 3. {D,E,C,F,B,A} DECA = 3.5 (Final path from D to A is DECA at a cost of 3.5)
2.5 each (10 pts total) Yes, this actually causes the sender to send a number of pipelined data into the channel without waiting for a corresponding ACK. Yes, there are side effects. If data segments are lost in the channel, then the sender of rdt 3. won’t re-send those segments, unless there are some additional mechanism in the application to recover from loss.
// >>> Step #3 <<< // Receive from the server using the client socket retcode = recv(client_s, in_buf, sizeof(char), 0); if (retcode < 0) { printf("*** ERROR - recv() failed \n"); exit(-1); }
// Output the received message printf("Received from server: %s \n", out_buf);
// >>> Step #4 <<< // Send to the server using the client socket strcpy(out_buf, "This is a reply message from CLIENT to SERVER"); retcode = send(client_s, out_buf, strlen(out_buf), 0); if (retcode < 0) { printf("*** ERROR - send() failed \n"); exit(-1); }
// >>> Step #5 <<< // Close the client socket #ifdef WIN retcode = close(client_s); if (retcode == 0) { printf("*** ERROR - closesocket() failed \n"); exit(-1); } #endif #ifdef BSD retcode = close(client_s); if (retcode == 0) { printf("*** ERROR - close() failed \n"); exit(-1); } #endif
#ifdef WIN // Clean-up winsock WSACleanup(); #endif }