Lecture 5 complete this Flashcards
Communications in client- server systems:
Client-server
There is an always-on host, called the server, which services requests from many other hosts, called clients.
Clients do not directly communicate with each other.
Clients may be intermittently connected and have dynamic IP addresses.
The server has a fixed, well-known IP address.
Servers are usually reside on data centres for scaling.
Communications in client- server systems:
Peer-to-peer (P2P)
There is no always-on server, arbitrary end systems (peers) directly communicate and request / provide service to other peers.
P2P self scales, new peers bring new service capacity and demand.
Peers are intermittently connected and change IP addresses.
Decentralised structure and complex management.
What are 2 Socket programing types?
UDP (User Datagram Protocol)
-connectionless, unreliable
-Message oriented – a group of bytes (“datagram”) is
sent through the socket
TCP (Transmission Control Protocol)
connection-oriented, reliable
Byte Stream oriented – stream of bytes is sent through the socket