Internetworking Flashcards

(129 cards)

1
Q

What are distributed systems?

A

Interconnection of computers across a network to provide a common service or set of services e.g. the internet

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

What is the client-server model?

A

An application providing a service (server) is contacted by an application that needs to use the service (client)

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

Name some advantages of a distributed system?

A
  • Access to remote resources
  • Access to computing power that you don’t have locally
  • Scalability
  • Robust (resources duplicated)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In the client-server model, if the web browser you’re using is a client, what is the server?

A

Web server

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

What are the 3 main types of computer addresses?

A

Hostname address
IP address
Hardware address

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

What does a hostname address look like?

A

severn.cs.nott.ac.uk

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

What does an ip address look like?

A

128.243.10.4

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

What is a hardware address also known as?

A

MAC address, physical address, ethernet address

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

Do organisations typically use one network technology?

A

No, usually several

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

What does universal service mean?

A

Any two computers should be able to communicate

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

What is internetworking?

A

The interconnection of several heterogeneous networks to provide a universal service

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

What is the universal hardware component used to connect heterogeneous networks?

A

Router

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

How does internet protocol software provide universal service?

A

By creating a single virtual network

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

Can a router connect more than 2 networks?

A

Usually yes

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

When did the internet emerge into public domain and who controls it?

A

1990s
- the IETF, internet engineering task force

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

What is the layered model?

A

Application
Transport
Internet
Network interface

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

What is the internet reference model?

A

Application
Transport
Internet
Network Interface
Physical

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

What does host computer mean in TCP/IP?

A

Any system that connects to the internet and runs applications.

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

What does IP address stand for?

A

Internet protocol address

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

Why are there two versions of IP?

A

IPv4 and IPv6 because the internet ran out of address space

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

Under the IP addressing scheme, each host is assigned a…..

A

Unique binary number
128 bit for IPv6
32 bit for IPv4

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

What is a 32 bit IP address divided into?

A

Prefix - physical network the host is attached to
Suffix - a host attached to a given physical network

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

Where are prefixes and suffixes for IP addresses co-ordinated?

A

prefixes - globally
suffixes - locally

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

What does the size of prefixes and suffixes in an IP address determine?

A

max number of networks and max number of hosts per network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
In IPv4 addressing, what do the first four bits of an address determine?
Specifies its class and how the remainder is divided into prefix and suffix
26
Who assigns IP numbers?
Public internet network numbers are assigned by Internet service providers (ISPs) and then co-ordinated by ICANN (Internet corporation for assigned names and numbers)
27
What is the difference between subnet addressing and classless addressing?
Subnet addressing was originally just used in large organisations that connected to the internet, classless addressing extends this approach to the entire internet
28
What is the idea between IPv4 subnet and classless addressing?
Allows the division between the prefix and the suffix to be at an arbitrary boundary
29
Which version of IP were subnet and classless addressing developed for/in?
IPv4
30
What is the motivation behind arbitrary boundaries in IP addressing?
The smallest class of address uses 8 bit suffixes but many networks may only need 3,4,5,6,7 bits for the suffix so are wasting part of the address
31
What are address masks?
They are used to identify the network prefix / prefix/suffix boundary
32
What is classless addressing also known as?
CIDR: classless inter-domain routing
33
What does the special IPv4 address all-0s mean?
this computer
34
What does the special IPv4 address all-1s mean?
A limited broadcast on local network
35
What does the special IPv4 address with a network prefix and all 0s suffix means?
identifies the network
36
What is an all 0s IPv4 address used for?
Used during bootstrap
37
What types of devices are always given two or more IP addresses?
Routers and multi-homed computers
38
What are multihomed hosts good for?
Increasing performance, connecting to multiple network
39
What is the more compact address form used for IPv6?
colon hexadecimal
40
Name the 3 types of special IPv6 addresses?
Unicast, multicast, anycast
41
What is the purpose of a unicast IPv6 address?
Corresponds to a single computer and any datagrams are routed along the shortest path to it
42
What is the purpose of a multicast address in IPv6?
Address corresponds to a set of computers and membership to this set can change at any time, a copy of any data is routed to all members
43
What is the purpose of an anycast IPv6 address?
Corresponds to a set of several computers with the same prefix, a datagram sent to the address is delivered to exactly one of the computers (closest to sender)
44
What is a datagram and who defines it?
a universal virtual packet defined by an internet protocol
45
How does the size of IPv4 and v6 datagrams differ?
v4 - 64k octets including header v6 - 64k octets PLUS header
46
What does a router use to forward an IP virtual packet?
uses a local forwarding table
47
What does a local forwarding table contain?
Entries of networks with address, mask, next hop
48
What does longest prefix match mean?
If a table has both 128.10.0.0/16 128.10.2.0/24 and a datagram arrives for 128.10.2.3 it matches both the first sections but will use longest prefix match and go for 128.10.1.0/24
48
What situations do IPv4 and IPv6 not guarantee to deal with?
- datagram duplication - delayed or out of order delivery - corruption of data - datagram loss
49
What is encapsulation?
An IP datagram sent over a physical network is placed in the data area of a frame and the frame type is set to IP
50
What is MTU?
Maximum transmission unit - max of data that a frame can carry on a given network
51
If a packet encounters different MTU sizes as it travels, what happens to the datagram?
It is fragmented
52
What is IPv4 fragmentation?
An IPv4 datagram larger than MTU is split into smaller datagrams, not all of equal size
53
How does IPv6 fragmentation work?
Datagram has an unfragmentable part so fragmentable part is split up and unfragmentable part is attached to all subdivisions.
54
How is fragment size controlled in IPv6?
Fragment is chosen to be MTU of network at source and if a router gets a datagram bigger than MTU it sends an error message and doesn't store or transmit
55
What do Path MTU and Path MTU discovery mean?
Path MTU - minimum MTU along a path Path MTU Discovery - process of learning path MTU
56
What is the process of path MTU discovery?
iterative process of trying a size and seeing if an error gets returned
57
How does fragmentation reassembly work?
Done at final host (fragments can take separate routes), headers indicate when data is a fragment and then where it goes
58
How are fragments identified when they don't always arrive at the destination together or in order?
An identification field determines which datagram the fragment belonged to A fragment offset field determines where in the original datagram the payload of a fragment goes
59
What does a receiver do when it receives a fragment?
Starts a timer, if timer expires before all fragments are received it discards them all, fragments are buffered in memory until this point
60
Why should fragmentation generally be avoided?
On a lossy network, a fragmented datagram is more likely to be lost
61
How does MTU size affect network design?
A network shouldn't be designed to involve a sequence of decreasing MTUs
62
What does ARP stand for?
Address resolution protocol
63
What does ICMP stand for?
Internet control message protocol
64
What does DHCP stand for?
Dyanamic host configuration protocol
65
What does NAT stand for?
Network Address translation
66
Are IP addresses hardware dependent or independent?
Independent!
67
At whatlayer are IP addresses mapped to hardware addresses?
Link layer, address resolution protocol (ARP) is used on ethernet
68
What is mapping between IP adresses and mac addresses known as? When is it done?
Address resolution, done when computers are on the same physical network
69
What does ARP do?
Translates between IPv4 addresses and hardware addresses
70
What will a sender use ARP (address resolution protocol) for?
Finding the hardware address of a destination on the same network or a next-hop router if on another network
71
What is an IPv4 ARP discovery packet?
A packet sent from a host to all other hosts, but only the one with that IP address responds and then the sending host updates it's ARP cache
72
What does the ARP cache of a host store?
Mappings of IP to hardware addresses, when it runs out of room the oldest mapping is removed
73
When is an ARP request sent?
When the host has a datagram to deliver to that address
74
Does IPv6 use ARP?
No, it uses neighbour discovery (IPv6-ND)
75
How does IPv6-ND work?
- IPv6 defines a multicast address for all nodes listening - requestor multicasts and asks neighbours to reply - records addresses in table in cache - contacts neighbours periodically to check they are still active
76
What are the two types of messages in ICMP?
- to report errors - to obtain information
77
Using ICMP, what does a router do when it detects a packet is in the wrong place?
Sends an ICMP redirect packet to sender to inform it - sender can update tables
78
What's wrong with ICMP redirects?
- not trustworthy - can be used to tamper with routing tables - most dedicated routers are set to ignore them
79
What information does a router need on boot up that is provided by the system administrator?
IP address for each network connection Protocol software to run Initial values for a routing table
80
What does a device do when plugged into a network?
Obtains an IP address, sets up default route, connects to a DNS server
81
What does DCHP allow clients to do?
'lease' network and administrative parameters from a central DCHP server - e.g. IP addresses, gateways/default routes, proxy servers
82
Does a DCHP server need to be on the same network as the host?
No, can run via a DCHP relay
83
How does DCHP optimise loss recovery?
DCHP ensures missing packets don't cause misconfiguration - host resending requests or ignoring duplicate requests
84
What does an IPv6 node do that is unique to v6?
generates its own IP address
85
How does an IPv6 node generate its own IP address?
- finds network prefix via a mutlicast to all nodes - generates a unique suffix (its MAC address)
86
What is it called when IPv6 nodes generate their own IP address?
Autoconfiguration
87
Where are private addresses used?
internally by a site and never shown to the internet
88
What does a border router do?
translates between a sites private address and the address space assigned by their ISP
89
What does NAT do on a border router?
Intercepts packets on their way to the internet, addressed with internal addresses and replaces their source addresses
90
What is the advantage when a site uses private addressing and a NAT border router?
One single external address can be shared by many computers
91
What does the basic layer of NAT not handle?
- two hosts attempting to communicate with the same external server - two or more applications on a given host site attempt simultaneous interaction with different internet destinations
92
What is NAPT? How does it differ from NAT?
Transport layer NAT, it allows a site to have an arbitrary number of applications running on arbitrary hosts all communicating with any internet destinations
93
What does NAPT (transport layer NAT) use to distinguish amongst services?
Protocol port numbers
94
Where is the transport later?
Layer 4 - above IP
95
What two protocols are in the transport layer?
UDP and TCP
96
What does UDP stand for?
User Datagram Protocol
97
What does TCP stand for?
Transport control protocol
98
What can IP NOT distinguish between?
Multiple applications on the same host
99
UDP and TCP are known as '_____to_____' protocols
end to end
100
What does IP (layer 3) consider as the endpoint of communication, how does this differ with layer 4?
IP considers the computer the endpoint but layer 4 is able to have an individual application on a computer as the endpoint
101
Name some features of the UDP (user datagram protocol).
- end to end - connectionless - message orientated - best effort - operating system independent
102
UDP is _____ orientated.
message
103
What does it mean for an application using UDP that UDP is connectionless?
- no need to establish a connection before sending data - don't need to inform network when finished - can generate/send data any time - can delay as long as liked between messages
104
What else does UDP send besides the actual data message?
Nothing! no extra control messages
105
How does UDP package data?
data sent is packaged in one single message, never split or combined, application must send data that will fit into 1 packet
106
UDP uses the same best effort delivery method as IP, what problems can this cause?
messages - lost - duplicated - delayed - delivered out of order - corrupted
107
What are the four types of interaction that UDP allows for?
1-1 1-many many-1 many-many
108
What identifiers does UDP define?
protocol port numbers
109
UDP identifies programs with port numbers, what must an individual computer do with these?
Map them to the program identifiers that the operating system uses
110
What does a UDP header include?
just protocol port numbers
111
What is a UDP datagram sent within?
An IP datagram across the internet
112
TCP is a '_____to_____' protocol
end-to-end
113
UDP is message orientated, TCP is _______ orientated?
connection
114
What are are TCP connections called?
Virtual connections
115
Why are TCP connections called virtual connections?
The connections are provided by software
116
What are the two special control messages used by TCP?
Synchronisation segment, SYN Finish segment, FIN
117
TCP requires a startup 3-way handshake, what is sent during this?
each side sends a control message with buffer size and sequence number
118
How do transport protocols deal with duplicates and out-of-order delivery?
Each packet has a sequence number and packets are stored and delivered in sequence at each layer
119
What is a common approach to handling lost packets?
Positive acknowledgment with retransmission
120
What is adaptive retransmission?
The timer for retransmission is adapted based on connection delay
121
Sometimes packet sequence numbers in transport protocols may be confused with sequence numbers from a previous session when packet is delayed a long time, how is this resolved?
Packets can be given a session identifier
122
Name two methods of flow control for transport protocols.
stop and go, sliding window
123
Why is stop and go an inefficient method of flow control?
waste of bandwidth if delay is long
124
What are sliding window protocols?
a flow control technique where several packets are sent before waiting for acknowledgement on each, amount depends on an agreed window size
125
Where in the internet does congestion usually occur?
in routers
126
How does TCP deal with congestion?
Rate control - reducing window size
127
What does TCP do after its first lost message in a connection?
backs off and sends a small message
128
What is a slow start in the context of TCP?
TCP starts a connection with a very small message - doubles amount of data for every ACK until half window size and then slows increase rate