With the aid of diagram, describe the connection-oriented socket process between server and client.
b) Explain what are the difference between stream socket and
datagram socket? Give an
example for each of them.?
A. Diagram for the socket process between server and client is
the following: 
Explanation:
On the server side, there is a socket creation at first. SetSockopt helps in manipulating options for the socket. This is completely optional, but it helps to reuse address and port. It also prevents error related to addresses. Bind binds the socket to the address and port number specified in address function. When Client tries to connect to the socket, the server listens to the request and accept it. Hence, there is a communication created between client and server.
B. Difference between Stream Socket and Datagram Socket:
| Stream Socket | Datagram Socket |
|
Dedicated and end-to-end channel between server and the client. |
No dedicated and end-to-end channel between server and client. |
|
Use TCP protocol for data transmission. |
Use UDP for data transmission. |
|
Data sent/received in similar order. |
Data sent/received order might not be the same. |
|
Reliable and lossless. |
Not reliable and also may lose data. |
| Example: A phone call where one side places a call and other receives it. They can now exchange information. | Example: A message sent from one side, it may not reach its destination. |
With the aid of diagram, describe the connection-oriented socket process between server and client. b) Explain...
The object that effects a connection between and individual client and a server is a(n) A port B socket C IP address
Remember client-server connection implementation:A1 socket = socket(AF_INET, SOCK_STREAM)2 socket.bind((ip,portNumber_))3 socket.connect((name, portNumber))B1 socket = socket(AF_INET, SOCK_STREAM)2 socket.bind((localIP, portNumber))3 socket.listen(3)a. What type of transport layer protocol is this?b. What is section A ?c. What is section B ?d. Is it possible to remove a line of code from any section? Please give explanation.e. In section B line 3, what is the meaning of “listen(3)”
Describe the difference between connection-less and connection-oriented services. Research the 1024 well-known ports and perform the following. List a service and port number. Provide a brief description of the service. State whether TCP or UDP is used.
1)Explain differences in Delivery Systems - Thick –v- Thin Client Programming a. Browser based –v- Desktop Executable applications b. Software distribution issues (pluses and minuses) for each2) Provide Illustrations and explanations of the Architectures.3)Explain: a) The history of Computer programming. b) The Hardware architecture used by modern computers (Von Neumann Architecture) c) Structured Programming – How it works/ Why we use it d) Compiler –v- interpreter –v- Hybrid (Just in time)4)Explain in detail the history and overview of the Client-Server Architecture a) Client-Server b) 3 Tier Systems c)...
Explain the following object-oriented(OO) concepts with the aid of code examples (either C++ or Java): Inheritance Over-riding . Over-loading Describe any differences between C++ and Java in how these OO concepts are implemented? 3(c) 17 Marks] Describe C++ namespaces using a code example. Describe Java packages, again using a code example. How do C++ namespaces compare to Java packages? 3(d) [5 Marks] What are inline methods in C++/Java? Explain the terms accessor and mutator.
Explain the following object-oriented(OO) concepts with...
Explain the key difference between a web service application and a general client/server application?
Here is the description of the client and server programs that you need to develop in C using TCP: Suppose we have a simple student query system, where the server keeps student's info in an array of struct student_info ( char abc123171 char name [101 double GPA; To simplify the tasks, the server should create a static array of 10 students with random abc123, name, and GPA in the server program. Then the server waits for clients. When a client...
Comparison between Client-Server, Peer to Peer and single Process (Stand-Alone) architectures. a. Give pluses and minuses of each architecture b. Compare cost in terms of CPU, Memory usage, and execution time
Given two integer matrices A and B, you are requested to compose a program to perform matrix addition (A + B). Both matrices have N rows and M columns; N > 1, M > 1; You need to divide both (A and B) into four equal (or close to equal) size of submatrices (A0,0, A0,1, A1,0, A1,1 and B0,0, B0,1, B1.0, B1.1)andeachsubmatrixhasdimensioncloseto(N/2)x(M/2). YouneedtocreatefourJavathreads each thread performs a subset of addition on one pair of the submatrices. Example, thread 0 performs addition...
. Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number 37 and destination port number 61. What are the source and destination port numbers for the segments traveling from Host B to Host A? . Suppose a process in Host C has a UDP socket with port number 6789. Sup- pose both Host A and Host B each send a UDP segment to...