1/21
Flashcards covering essential concepts from Layered Architectures, including UDP, TCP, client-server communication, and group communication.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What are the main types of communication in interprocess communication?
Synchronous and Asynchronous.
What is the purpose of sockets in UDP and TCP?
Sockets are used as endpoints for communication between processes, bound to a local port and an Internet address.
What is the main characteristic of UDP datagram communication?
UDP transmits datagrams without acknowledgments or retries.
What type of communication does TCP Stream Communication ensure?
Reliable data transmission with acknowledgments.
What is a key difference between synchronous and asynchronous communication?
In synchronous communication, the client is blocked until a response is received, while in asynchronous communication, there is no synchronization.
What issues can UDP suffer from?
Omission failures and out-of-order message delivery.
What is a failure model in client-server communication related to message delivery?
Omission faults and solutions like timeouts and idempotent operations.
What is the role of the DatagramPacket class in UDP communication?
It creates packets containing data to be transmitted or received along with the address of the destination or source.
What does the MulticastSocket class provide in group communication?
Methods for joining/leaving group multicast and sending/receiving datagrams.
What is the importance of flow control in TCP?
It attempts to match the speeds of the processes reading from and writing to a stream.
What is an example of using a Socket for a TCP client in Java?
Creating a socket connection to a specified host and port to send or receive data.
What are the main types of communication in interprocess communication?
Synchronous and Asynchronous.
What is the purpose of sockets in UDP and TCP?
Sockets are used as endpoints for communication between processes, bound to a local port and an Internet address.
What is the main characteristic of UDP datagram communication?
UDP transmits datagrams without acknowledgments or retries.
What type of communication does TCP Stream Communication ensure?
Reliable data transmission with acknowledgments.
What is a key difference between synchronous and asynchronous communication?
In synchronous communication, the client is blocked until a response is received, while in asynchronous communication, there is no synchronization.
What issues can UDP suffer from?
Omission failures and out-of-order message delivery.
What is a failure model in client-server communication related to message delivery?
Omission faults and solutions like timeouts and idempotent operations.
What is the role of the DatagramPacket class in UDP communication?
It creates packets containing data to be transmitted or received along with the address of the destination or source.
What does the MulticastSocket class provide in group communication?
Methods for joining/leaving group multicast and sending/receiving datagrams.
What is the importance of flow control in TCP?
It attempts to match the speeds of the processes reading from and writing to a stream.
What is an example of using a Socket for a TCP client in Java?
Creating a socket connection to a specified host and port to send or receive data.