Chapter 1 - Computer Networks and the Internet Flashcards

1
Q

What is the difference between a host and an end system? List several different types of end systems. Is a Web server an end system?

A

There is no difference. Throughout this text, the words “host” and “end system” are used interchangeably. End systems include PCs, workstations, Web servers, mail servers, PDAs, Internet-connected game consoles, etc.

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

Describe the protocol that might be used by two people having a telephonic conversation to initiate and end the conversation.

A

From Wikipedia: Diplomatic protocol is commonly described as a set of international courtesy rules. These well-established and time-honored rules have made it easier for nations and people to live and work together. Part of protocol has always been the acknowledgment of the hierarchical standing of all present. Protocol rules are based in the principles of civility

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

Why are standards important for protocols?

A

Standards are important for protocols so that people can create networking systems and products that interoperate.

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

List six access technologies. Classify each one as home access, enterprise access, or wide-area wireless access.

A
  1. Dial-up modem over telephone line: home;
  2. DSL over telephone line: home or small office;
  3. Cable to HFC: home;
  4. 100 Mbps switched Ethernet: enterprise;
  5. Wifi (802.11): home and enterprise:
  6. 3G and

4G: wide-area wireless.

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

Is HFC transmission rate dedicated or shared among users? Are collisions possible in a downstream HFC channel? Why or why not?

A

HFC bandwidth is shared among the users. On the downstream channel, all packets emanate from a single source, namely, the head end. Thus, there are no collisions in the downstream channel.

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

What access network technologies would be most suitable for providing Internet access in rural areas?

A

Rural may be limited to dial-up or satellite.

In most American cities, the current possibilities include: dial-up; DSL; cable modem; fiber-to-the-home.

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

What are some of the physical media that Ethernet can run over?

A

Today, Ethernet most commonly runs over twisted-pair copper wire. It also can run over fibers optic links.

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

Dial-up modems, HFC, DSL and FTTH are all used for residential access. For each of these access technologies, provide a range of transmission rates and comment on whether the transmission rate is shared or dedicated.

A

Dial up modems: up to 56 Kbps, bandwidth is dedicated;

ADSL: up to 24 Mbps downstream and 2.5 Mbps upstream, bandwidth is dedicated;

HFC, rates up to 42.8 Mbps and upstream rates of up to 30.7 Mbps, bandwidth is shared.

FTTH: 2-10Mbps upload; 10-20 Mbps download; bandwidth is not shared.

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

Describe the different wireless technologies you use during the day and their characteristics. If you have a choice between multiple technologies, why do you prefer one over another?

A

There are two popular wireless Internet access technologies today:

a) Wifi (802.11) In a wireless LAN, wireless users transmit/receive packets to/from an base station (i.e., wireless access point) within a radius of few tens of meters. The base station is typically connected to the wired Internet and thus serves to connect wireless users to the wired network.
b) 3G and 4G wide-area wireless access networks. In these systems, packets are transmitted over the same wireless infrastructure used for cellular telephony, with the base station thus being managed by a telecommunications provider. This provides wireless access to users within a radius of tens of kilometers of the base station.

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

Suppose there is exactly one packet switch between a sending host and a receiving host. The transmission rates between the sending host and the switch and between the switch and the receiving host are R1 and R2, respectively. Assuming that the switch uses store-and-forward packet switching, what is the total end-to-end delay to send a packet of length L? (Ignore queuing, propagation delay, and processing delay.)

A

At time t0 the sending host begins to transmit. At time t1 = L/R1, the sending host completes transmission and the entire packet is received at the router (no propagation delay). Because the router has the entire packet at time t1, it can begin to transmit the packet to the receiving host at time t1. At time t2 = t1 + L/R2, the router completes transmission and the entire packet is received at the receiving host (again, no propagation delay). Thus, the end-to-end delay is L/R1 + L/R2.

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

What advantage does a circuit-switched network have over a packet-switched network? What advantages does TDM have over FDM in a circuit-switched network?

A

A circuit-switched network can guarantee a certain amount of end-to-end bandwidth for the duration of a call. Most packet-switched networks today (including the Internet) cannot make any end-to-end guarantees for bandwidth. FDM requires sophisticated analog hardware to shift signal into appropriate frequency bands.

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

Suppose users share a 2 Mbps link. Also suppose each user transmits continuously at 1 Mbps when transmitting, but each user transmits only 20 percent of the time. (See the discussion of statistical multiplexing in Section 1.3.)

a. When circuit switching is used, how many users can be supported?
b. For the remainder of this problem, suppose packet switching is used. Why will there be essentially no queuing delay before the link if two or fewer users transmit at the same time? Why will there be a queuing delay if three users transmit at the same time?
c. Find the probability that a given user is transmitting. d. Suppose now there are three users. Find the probability that at any given time, all three users are transmitting simultaneously. Find the fraction of time during which the queue grows.

A

a) 2 users can be supported because each user requires half of the link bandwidth.
b) Since each user requires 1Mbps when transmitting, if two or fewer users transmit simultaneously, a maximum of 2Mbps will be required. Since the available bandwidth of the shared link is 2Mbps, there will be no queuing delay before the link. Whereas, if three users transmit simultaneously, the bandwidth required will be 3Mbps which is more than the available bandwidth of the shared link. In this case, there will be queuing delay before the link.
c) Probability that a given user is transmitting = 0.2
d) Probability that all three users are transmitting simultaneously = (3C3)(p^3)(1-p)^(3-3). Since the queue grows when all the users are transmitting, the fraction of time during which the queue grows (which is equal to the probability that all three users are transmitting simultaneously) is 0.008

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

Why will two ISPs at the same level of the hierarchy often peer with each other? How does an IXP earn money?

A

If the two ISPs do not peer with each other, then when they send traffic to each other they have to send the traffic through a provider ISP (intermediary), to which they have to pay for carrying the traffic. By peering with each other directly, the two ISPs can reduce their payments to their provider ISPs. An Internet Exchange Points (IXP) (typically in a standalone building with its own switches) is a meeting point where multiple ISPs can connect and/or peer together.

An ISP earns its money by charging each of the the ISPs that connect to the IXP a relatively small fee, which may depend on the amount of traffic sent to or received from the IXP.

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

Why is a content provider considered a different Internet entity today? How does a content provider connect to other ISPs? Why?

A

Google’s private network connects together all its data centers, big and small. Traffic between the Google data centers passes over its private network rather than over the public Internet. Many of these data centers are located in, or close to, lower tier ISPs. Therefore, when Google delivers content to a user, it often can bypass higher tier ISPs. What motivates content providers to create these networks? First, the content provider has more control over the user experience, since it has to use few intermediary ISPs. Second, it can save money by sending less traffic into provider networks. Third, if ISPs decide to charge more money to highly profitable content providers (in countries where net neutrality doesn’t apply), the content providers can avoid these extra payments.

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

Consider sending a packet from a source host to a destination host over a fixed route. List the delay components in the end-to-end delay. Which of these delays are constant and which are variable?

A

The delay components are processing delays, transmission delays, propagation delays, and queuing delays. All of these delays are fixed, except for the queuing delays, which are variable.

d_nodal = d_tran + d_prop + d_queue + d_proc

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

A user can directly connect to a server through either long-range wireless or a twisted-pair cable for transmitting a 1500-bytes file. The transmission rates of the wireless and wired media are 2 and 100 Mbps, respectively. Assume that the propagation speed in air is 3x10^8 m/s, while the speed in the twisted pair is 2x10^8 m/s. If the user is located 1 km away from the server, what is the nodal delay when using each of the two technologies?

A

tbd

17
Q

Suppose Host A wants to send a large file to Host B. The path from Host A to Host B has three links, of rates R1 = 500 kbps, R2 = 2 Mbps, and R3 = 1 Mbps.

a. Assuming no other traffic in the network, what is the throughput for the file transfer?
b. Suppose the file is 4 million bytes. Dividing the file size by the throughput, roughly how long will it take to transfer the file to Host B?
c. Repeat (a) and (b), but now with R2 reduced to 100 kbps.

A

a) 500 kbps
b) 64 seconds
c) 100kbps; 320 seconds

18
Q

Suppose end system A wants to send a large file to end system B. At a very high level, describe how end system A creates packets from the file. When one of these packets arrives to a router, what information in the packet does the router use to determine the link onto which the packet is forwarded? Why is packet switching in the Internet analogous to driving from one city to another and asking directions along the way?

A

End system A breaks the large file into chunks. It adds header to each chunk, thereby generating multiple packets from the file. The header in each packet includes the IP address of the destination (end system B). The packet switch uses the destination IP address in the packet to determine the outgoing link. Asking which road to take is analogous to a packet asking which outgoing link it should be forwarded on, given the packet’s destination address.

19
Q

If two end-systems are connected through multiple routers and the data-link level between them ensures reliable data delivery, is a transport protocol offering reliable data delivery between these two end-systems necessary? Why?

A

Yes, data-link only provides RDS between links not end-to-end.

Five generic tasks are error control, flow control, segmentation and reassembly, multiplexing, and connection setup. Yes, these tasks can be duplicated at different layers. For example, error control is often provided at more than one layer.

20
Q

What are the five layers in the Internet protocol stack? What are the principal responsibilities of each of these layers?

A

The five layers in the Internet protocol stack are from top to bottom the application layer, the transport layer, the network layer, the link layer, and the physical layer. The principal responsibilities are outlined in Section 1.5.1.

21
Q

What do encapsulation and de-encapsulation mean? Why are they needed in a layered protocol stack?

A

Application-layer message: data which an application wants to send and passed onto the transport layer;

transport-layer segment: generated by the transport layer and encapsulates application-layer message with transport layer header;

network-layer datagram: encapsulates transport-layer segment with a network-layer header;
l
ink-layer frame: encapsulates network-layer datagram with a link-layer header.

22
Q

Which layers in the Internet protocol stack does a router process? Which layers does a link-layer switch process? Which layers does a host process?

A

Routers process network, link and physical layers (layers 1 through 3). (This is a little bit of a white lie, as modern routers sometimes act as firewalls or caching components, and process Transport layer as well.) Link layer switches process link and physical layers (layers 1 through2). Hosts process all five layers.

23
Q

You are in a university classroom and you want to spy on what websites your classmates are visiting with their laptops during the course lecture. If they all connect to the Internet through the university’s WiFi network, what could you do?

A

Packet sniffer, wireshark

24
Q

Describe how a botnet can be created and how it can be used for a DDoS attack.

A

Creation of a botnet requires an attacker to find vulnerability in some application or system (e.g. exploiting the buffer overflow vulnerability that might exist in an application). After finding the vulnerability, the attacker needs to scan for hosts that are vulnerable. The target is basically to compromise a series of systems by exploiting that particular vulnerability. Any system that is part of the botnet can automatically scan its environment and propagate by exploiting the vulnerability. An important property of such botnets is that the originator of the botnet can remotely control and issue commands to all the nodes in the botnet. Hence, it becomes possible for the attacker to issue a command to all the nodes, that target a single node (for example, all nodes in the botnet might be commanded by the attacker to send a TCP SYN message to the target, which might result in a TCP SYN flood attack at the target).