Lesson 7: Networking Programming in Java Flashcards
Sockets examples (2):
Transmission Control Protocol (TCP) and User Datagram
Protocol (UDP).
The second step involves establishing contact or associating the socket with another socket.
TRUE
These packets are guaranteed to arrive (if lost, retransmission
occurs) and are received in order at the destination.
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
This step usually happens recursively. Information is sent and received by the two communicating
sockets.
TRUE
Depending on the protocol, it
can either request a service or establish a connection.
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.
FALSE, replace RECEIVER with CLIENT
The first step involves creating and
opening sockets.
TRUE
The third step consists of exchanging data between the two parties and represents the main stage of network application’s
communication tasks.
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.
FALSE, replace COMPUTER with PARTNER
Important parameters to be provided when creating/opening a socket
IP address, port number, and
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 and application layer sockets.
The last step involves closing and destroying the sockets which
closes the communication end-point.
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
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
Java provides a set of libraries and APIs for building network-based applications.
True
The network communication using
sockets involves several complicated steps which have to be followed by the application developer in order to have a
functional transport mechanism
between the two communicating parties.
FALSE, replace COMPLICATED with BASIC
After this step the socket
can still be used for communication any more.
FALSE, CAN NOT BE USED
Refer to programs that utilize
Java’s extensive networking capabilities to communicate and
exchange data over networks.
Network-based applications in Java
As TCP is a connection-oriented protocol, when TCP sockets are
used, connections are established between client and server hosts.
TRUE
Provides the application developer the direct basic access
to transport protocols, offering data packet transport services
between a sender and a receiver host over the network, while
hiding the complexity and implementation details of the protocol.
Socket/s