InClassActivity25-sol - Activity #25 (Solution) 4/25/2003...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2002 Page 1 of 3 Activity #25 (Solution) 4/25/2003 3:39 PM Activity 25.1 OSI Reference Model 1. (20 points) Link the functions listed on the right with the appropriate layer of the OSI Reference model on the left. Insert each letter into the appropriate row in the right-hand column. Layer Function Network Applications A H Presentation Session Transport F I Network G J Data Link D Physical B C E A. Chat-room program B. Amplitude modulation C. Frequency division multiplexing D. Collision detection E. Fiber F. Dividing messages into packets and reassembling them (packetization ) G. Figuring out the optimal path over a network (routing) H. Secure file transfer (i.e. scp command in UNIX – secure copy) I. Making sure that the packet reaches to the destination process J. Assigning an address to each computer Grading: 2 points for each correct answer. 2. (30 points) Consider a transport layer protocol XUDP and a network layer protocol XIP. XIP provides two primitives, XIP_Send() and XIP_Recv(), to the transport layer. By using these network layer primitives, XUDP is supposed to provide two primitives, XUDP_Send() and XUDP_Recv(), to the application layer above. Descriptions of XIP_Send() and XIP_Recv() are given below. void XIP_Send(xip_packet_type pkt, int pkt_size); /* pkt – the packet given by the transport layer protocol pkt_size – size of the pkt in bytes Sends the packet pkt to the destination process. The packet might get distorted on the way to the destination. If so, the arrived packet will not be guaranteed to be correct. */ void XIP_Recv(xip_packet_type *pkt, int pkt_size); /* pkt – the packet to be given to the transport layer protocol pkt_size – size of the pkt in bytes Receives the next arrived packet and returns the pointer to it in pkt and size of it in pkt_size. */ Assuming that XIP network layer protocol can handle 1KB of packets at most, complete the transport layer primitive XUDP_Send() below such that it can send packets of any size, i.e. larger or smaller than 1KB. The transport layer XUDP
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/25/2010 for the course ECSE ecse-2340 taught by Professor Wozny during the Spring '09 term at Rensselaer Polytechnic Institute.

Page1 / 3

InClassActivity25-sol - Activity #25 (Solution) 4/25/2003...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online