Telecom Questions - Set 1 1)Describe two characteristics of...

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

View Full Document Right Arrow Icon
Set 1 1)Describe two characteristics of stream socket and datagram socket Stream Socket: must be logically connected between the 2 end points using BSD api (Application Programming Interface) after the socket is defined and connected data flows without any additional attention to addressing. Datagram Socket: no connection setup is required other than the creation and initialization of the local socket end points, since no virtual circuit exists each packet sent must have a reception address specified to direct the datagram to its destination. 2)Briefly describe any 3 common pitfalls encountered during socket programming. • Failing to use function returns (resulting output) • Ignoring peer socket closure • Ignoring of parameters in API functions • Making Protocol framing assumptions • Listening on multiple interfaces 3) Describe giving examples of the differences between the purpose of half association tuple and full association tuples, in relation to the socket connection addressing techniques. Half Association Tuples: it defines all necessary elements to uniquely identify an end point of a socket. eg: {tcp,, 45001} Full Association Tuples: Required to identify a full socket connection including both the end points eg: { tcp,, 45001,, 80}
Background image of page 1

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

View Full DocumentRight Arrow Icon
4) Explain the principle of Client Server symmetry by highlighting the processing volt during communications in socket programming. • The server must create a socket (using socket call) and then name it using bind (so that clients can reference it) • The listen call makes the server visible, allowing it to accept connections. • The server must then use the accept call, to accept incoming client connections which are represented by a newly created socket representing the new end point. • For a client to connect to the server it must also create a socket. • Then by using the connect call, it causes a three way handshake that occurs between client and server, (the bind feature is triggered). • The accept call defines the server’s willingness to communicate, the connect call defines the client’s desire to communicate. • For stream connection using TCP this relationship must exist. • There is no point in calling the read function if the peer never sends any additional data into the socket (this is how programs like Outlook reads attachments or emails from the server). • When applications perform a close it defines the intent not to send any additional data through the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/09/2011 for the course COMPUTING Applying C taught by Professor Jonathen during the Spring '10 term at Staffordshire.

Page1 / 10

Telecom Questions - Set 1 1)Describe two characteristics of...

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

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