The Internet and Socket Programming Flashcards

1
Q

What started the Internet?

A

1960s Defense
Advance Research Project Agency created network between research centers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When did the Internet become a commercial success?

A

90s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What connects different networks in the Internet?

A

Routers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What connects to a network?

A

A host

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some examples of hardware to create a network?

A

Ethernet, Apple Talk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is IP addressing used?

A

As an abstraction to hide network internals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How many bits in an IP address?

A

32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does an IP address represent?

A

A connection between a computer and a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can a computer have multiple IP addresses?

A

Yes, one for each network connection. (ex: router)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the prefix in an IP address?

A

Identifies a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the suffix in an IP address?

A

Identifies the host of the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What assigns the prefix for the network and hosts?

A

Global authority assigns prefix for network, local administrator applies prefix for hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How many bits are assigned to the prefix and suffix?

A

It depends on size of network and number of hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the subnet mask?

A

parameter that tells the number of bits used for network number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the routing table?

A

Gives the router info to reach the next network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How are routing tables made?

A

Manually, or automatically through software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Does the IP source and destination address of a packet change during transit?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Does the hardware address of a packet change each forward?

19
Q

What does Address Resolution Protocol do? (ARP)

A

Translate IP address to hardware address (ex: ethernet address).

20
Q

What is Domain Name Server?

A

Translates host names like www.yahoo.com to IP addresses.

21
Q

How were host names translated before DNS?

A

Through mappings in a file /etc/hosts

22
Q

Can a host have multiple IP addresses?

A

Yes, if the host has multiple network interfaces.

23
Q

How does DNS work?

A

lookup algorithm that contacts as many servers as necessary

24
Q

What is Dynamic Host Configuration Protocol?

A

Allows connecting computers to the Internet without the need of an administration.

25
Before DHCP how did an administrator add a computer to the internet?
◼ The local IP address – Current address ◼ The subnet mask – Used to send packets to hosts in same LAN ◼ The default router – Used to send packets to hosts outside the LAN ◼ The default DNS server – Used to convert names to IP addresses.
26
What is the unix command to set the parameters for pre DHCP connections?
ifconfig
27
What are the two different transport protocols?
User Data Protocol (UDP), and Transmission Control Protocol (TCP).
28
What is UDP best for?
LAN applications.
29
What transport protocol is connectionless?
UDP
30
What identifier ports does UDP have?
Source and Destination applications.
31
What transport protocol is message oriented?
UDP
32
Does TCP have an initial connection?
Yes, unlike UDP
33
What does the TCP Stream Interface look like?
reading and writing to a file
34
How is TCP reliable?
Acknowledgment and Retransmission
35
What is Acknowledgment and Retransmission in TCP?
receiver send acknowledgment signal when packet arrives. sender resends package if timer expires
36
What is the TCP retransmission timer set to?
RTT + 4*RTTSTDDEV
37
What is the adaptive transmission feature of TCP?
The timer of TCP being set.
38
What is the cumulative acknowledgments feature of TCP?
An acknowledgment is for all the bytes received so far without holes and not for every packet received.
39
What is the Fast Retransmission feature of TCP?
It is a heuristic where a duplicated acknowledgment for the same sequence is signal of a packet lost. The data is retransmitted before the timer expires.
40
What is flow control?
sender is slown down if buffer starts to fill
41
What is congestion control?
Slow down retransmission with lost packet
42
How is TCP reliable, be specific.
Three way handshake
43
What cases is UDP used over TCP?
Broadcasting, ex: show all available printers. Real time Data: ex: teleconferencing
44