answersLogoWhite

0

The Client-Server Model

The most common model for distributing a system is the client-server model. The model is fairly simple to explain and use.

The name of the model is quite descriptive. In your distributed system you have one or more servers. These servers provide services to other parts of the system, called clients. When a server is started it first opens up a particular port through which clients can access it. It then sits down and waits until somebody (the client) attempts to connect to it. When that happens, the server and client exchange some messages and ultimately of the two close the connection. This connection takes place using so-called sockets.

*The Server*
The simplest version of such a server is non-threaded. That means that multiple connections are handled sequentially, in other words: clients have to queue up and they are handled one by one. That's fine if connections last only very short and if there are not too many clients connecting at the same time, however if you have many clients connecting at the same time or long-lasting connections you have to handle connections in parallel. You can handle multiple connections in parallel using threads. Each time a connection is established a new thread is created and the connection is handled by that new thread. The server thread then continues accepting new connections. Because creating threads is an expensive process (in terms of CPU cycles) threads are usually kept in a "pool". When a thread finished its job, it is kept alive until a new request has arrived it can handle.

*The Client*
For the client to connect it has to know the server's IP or hostname and the port to connect to. Once the connection is established the client and server can exchange messages. Depending on the distributed system a client may connect to multiple servers. One server to access the database, one for file services, another for e-mail, for example.

Regards

Dipak

siliguri

dipak_slg@rediffmail.com

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

Explain what TCPIP is and how it works?

TCP/IP stands for "Transmission Control Protocol/Internet Protocol." Without getting too technical, it's the leading method for allowing two computers to talk to each other over a network (such as the internet).


Explain the concept of 2-tier 3-tier clientserver architecture?

xzvcnb, maznvl xl nlnlnl nlnl,nlsvd asfda asdfnalsaqf fasfn fadfgag


Can you explain to you the OSPF?

Open Shortest Path First (OSPF) is a type of routing protocol known as an interior gateway protocol or an interior routing protocol. The routers in an internet are responsible for receiving and forwarding packets through the interconnected set of networks. Each router makes routing decisions based on knowledge of the topology and traffic/delay conditions of the internet. The routing protocol between routers is used to exchange topology and traffic delay information. An interior routing protocol is used within a portion of the internet called an autonomous system, which simply means a connected set of routers that are managed by a single organization. OSPF is the most commonly used interior routing protocol.


What dose Domain Name mean?

It's pretty hard to explain, but put simply: Domain names (i.e. tecthai.com) are hostnames that point to Internet Protocol addresses (i.e. 84.155.125.151).


Simple Network Management Protocol in breaf explain?

SNMP is structured communication protocol which follows TLV sequence.


Can you explain the concept of TTL?

Time-to-Live (TTL) is a value in an Internet Protocol (IP) packet that tells a network router whether or not the packet has been in the network too long and should be discarded.


What is the role of Internet agent and explain the Role of consumer goals on the Internet?

What is the role of Internet agent and explain the Role of consumer goals on the Internet ?


Explain the purpose of the file transfer protocol?

File Transfer Protocol (FTP) is used for transferring files between an FTP client and an FTP server.


List and briefly explain the services provided by the network layer of the Internet on the scope of transport layer protocol?

hii frnds it provides framing error control, flow control and link management, error detection and correction


Is it illegal to explain sex over the internet?

i think it depends on WHERE you explain it and WHO you explain it to.


Explain the difference between a connection-oriented protocol and a connectionless protocol and give an example of each?

Different from a connectionless protocol, a connection-oriented protocol guaranties the delivery of the information. An example of connection-oriented protocol is (TCP) and a connectionless protocol is (UDP). TCP is a connection-oriented protocol, it makes a connection and checks whether the data is received, and resends if it is not. UDP is a connectionless protocol, it does not guarantee delivery by first connecting and checking whether data is received.


Describe and explain an authentication protocol?

http://technet.microsoft.com/en-us/library/bb742516.aspx