Networking Flashcards
What is the Internet Protocol (IP)?
The principal communications protocol in the Internet protocol suite for relaying datagrams across network boundaries.
IP delivers packets from the source host to the destination host based on IP addresses in packet headers.
What are the two types of Internet Protocol addressing?
IPv4 and IPv6
IPv4 addresses are 32 bits, while IPv6 addresses are 128 bits.
What is the main advantage of IPv6 over IPv4?
Larger address space with approximately 3.4×10^38 addresses.
IPv6 has a length of 128 bits compared to IPv4’s 32 bits.
Define Domain Name Server (DNS).
Special servers that translate host names into IP addresses.
What are the two higher-level protocols used in conjunction with IP?
- Transmission Control Protocol (TCP)
- User Datagram Protocol (UDP)
What is the function of TCP?
Enables two hosts to establish a connection and exchange streams of data while guaranteeing delivery and order of packets.
What is the function of UDP?
A connectionless, low-overhead protocol that allows an application program on one computer to send a datagram to an application program on another computer.
What is the client/server model?
A model where one process (the client) connects to another process (the server) to request information.
What is a socket?
One end of an interprocess communication channel.
What classes does Java provide for socket communication?
- ServerSocket class for creating server sockets
- Socket class for creating client sockets
What is the range of port numbers?
0 to 65536, with 0 to 1024 reserved for privileged services.
Fill in the blank: The statement to create a server socket is _______.
[serverSocket]
What methods are used to get input and output streams from a socket?
- getInputStream()
- getOutputStream()
What is multithreading?
The ability for multiple tasks in a program to be executed concurrently.
What must a task class implement to run in a thread?
Runnable interface.