Lesson 7: Networking Programming in Java Flashcards
Sockets examples (2):
- Transmission Control Protocol (TCP)
- User Datagram
Protocol (UDP).
The second step involves establishing contact or associating the socket with another socket. True or false?
TRUE
These packets are guaranteed to arrive (if lost, retransmission
occurs) and are received in order at the destination. True or false?
TRUE
Requires access to various APIs and support from different application development environments.
Implementation
In order to be able to communicate,
the sockets have to use the same protocol. True or false?
TRUE
This step usually happens recursively. Information is sent and received by the two communicating
sockets. True or false?
TRUE
Depending on the protocol, it
can either request a service or establish a connection. True or false?
TRUE
They are created first and are bound for the duration of the data communication session.
Client and Server TCP sockets
In general, the receiver
knows the server’s IP address, port number, and the protocol used and contacts it using these details. True or false?
FALSE, replace RECEIVER with CLIENT
The first step involves creating and opening sockets. True or false?
TRUE
The third step consists of exchanging data between the two parties and represents the main stage of network application’s communication tasks. True or false?
TRUE
It is a connectionless non-reliable transmission
of datagrams protocol, similar to the postal service.
User Datagram
Protocol (UDP)
They offer basic
transport data communication
support and hide lower layer
implementation details.
Sockets
They provide a higher level of abstraction for the communication
infrastructure beneath and enable support for fast and easy network-based applications and development
Sockets
A connection-based reliable, orderly transmission of data
packets, similar to the telephone service.
Transmission Control Protocol (TCP)
Each communicating party requires a?
Separate socket
Following connection establishment, TCP packets are sent to the computer’s
socket. True or false?
FALSE, replace COMPUTER with PARTNER
Important parameters to be provided when creating/opening a socket
- IP address
- Port number
- Communication protocol (TCP or UDP).
Are network communication link end-points between two applications (i.e., server and client).
Sockets
Two type of sockets that can be used for application
development:
- Transport layer sockets
- Application layer sockets.
The last step involves closing and destroying the sockets which closes the communication end-point. True or false?
TRUE
When creating/opening a socket, the important parameters to be provided include the IP
address, port number, and
communication protocol (TCP or UDP). True or false?
TRUE
They make use of transport-layer protocols such as the Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).
Transport layer sockets
Uses high-level programming languages and involves a set of principles and techniques.
Network application programming