Chapter 7 Flashcards

1
Q

What does the network layer do?

A

It routers packets from source node to destination node.

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

What is the primary example of a network layer protocol?

A

IP (Internet Protocol)

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

What are layer 3 packets known as?

A

Datagrams

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

How does a IP routing algorithm work?

A

1: check if A and B is on the same network. If yes deliver directly
2: Consult routing table. If entry exists, forward to next hop
3: If there isnt an entry in routing table, Send to A’s default gateway
4: If there is no default gateway, discard

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

Is IP reliable or unreliable?

A

Unreliable

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

What does TTL refer to on layer 3 with IP?

A

Max amount of hops a packet may still take before being discarded.

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

What makes IP unreliable?

A

Easily discard packets, Checksum only covers header ( wont detect changes in data)

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

When is a packet discarded with IP?

A

When TTL becomes 0

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

What does a IPv4 header have?

A

Version, TTL, Protocol, Header checksum, Source address, Destination address, Total Length, Fragment Offset

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

How many bits is in a IPv4 address?

A

32 bits

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

What are the different classes and their leading bits in IPv4?

A

A = 0 is the initial BIT. Initial BYTE identifies the network. Remaining 3 BYTES identifies the host
B = 10 is the initial bits. 2 initial Bytes identify the network, remaining 2 identifies the host
C = 110 is the initial bits. 3 bytes identifies the network, and one the host.
D = 1110 is the initial bits, used for multicast addressing.
E = 1111 unused

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

How do you identify a network?

A

Make all of the host portion of the network 0’s

10.0.0.0

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

How do you get the broadcast address?

A

Make the host portion all 1’s

10.255.255.255

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

How many hosts can you have on a single network?

A

2^n - 2 ( -2 because of network identifier + broadcast address)
n = bit in network field

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

How do you work out how many networks there can be in a single class?

A

2^(n-i)

n = number of network bits
i = number of initial bits (since we are going by class)

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

What does a netmask indicate?

A

Which bits in an address form the network and which part forms the host

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

What does a netmask consist of?

A

All 1’s in the network portion

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

What does the netmask look like for each class?

A

A = 255.0.0.0
B = 255.255.0.0
C = 255.255.255.0

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

What does CIDR do and what is it know as?

A

Classless Inter-domain Routing

Notes the number of bits that form the network portion
10.0.0.0/8 = leftmost 8 bits is the network portion. remaining 24 = host portion

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

What is subnetting?

A

Divide the network into subnetworks.

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

Example of sub netting?

A

10.1.0.0 is used for sales. 10.2.0.0 is used for production

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

Does the split between host portions and network portions occur only on byte boundaries?

A

No.

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

Make a class C address netmask but use 4 bits to identify the host and 4 to identify the subnet

A

11111111.11111111.11111111(all of this is for class C so far).1111(4 bits for subnet) 1111(4 bits for host)
netmask = 11111111.11111111.11111111.11110000

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

How do you get the network address on which a host is located?

A

Do a logical AND of the address and the netmask

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

Example of getting the network address on which a host is located
IP address of host = 192.168.1.100
subnet mask = 11111111.11111111.11111111.11110000

A

IP address of host = 192.168.1.100 aka 11000000.10101000.00000001.01100100
subnet mask = 11111111.11111111.11111111.11110000
Network address=
11000000.10101000.00000001.01100000

aka 192.168.1.96
Thus network address of the host 192.168.1.100 is 192.168.1.96

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

What is supernetting?

A

Combining network addresses to form a bigger network

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

Why is supernetting needed?

A

To speed up routing

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

How does IPv4 routing work?

A

1: If A&M = R&M (A = address, M = Mask, R = router) Send directly via data link layer. (If they are on the same network send via data link layer)

2: If there exists a triplet (Nj, Mj, Hj) (N = network, M = mask for that network, H = Address of next hop) send the packet to Hj. ( If there is a entry in the routing tab send it to H (on the same local network)

3: If no entries in Routing table send to default gateway. Deliver directly with default gateway if possible

4: if no default gateway discard it

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

Does IP allow a route to be specified?

A

Yes aka source routing

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

What is the difference between strict and loose source routing?

A

Strict = exact route is specified
Loose = Hops in source route are merely nodes that should be visited along the way

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

Routing algorithm steps:

A

1: has the datagram reached it destination?
2: Check if the destination is directly connected to current router ( if yes use layer 2 to deliver)
3: Determine next hop that may be reachable (RIP /OSPF)

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

A router is sometimes referred to as a …….

A

Multi-homed host

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

What does arp stand for?

A

Address Resolution Protocol

34
Q

What are the most common way to clearly identify networks?

A

CIDR notation or network address + netmask

35
Q

What is PPPoE and what does it do?

A

Point to point protocol over ethernet

It creates a virtual link between the customer and the ISP

36
Q

What is another name for wireless LAN?

37
Q

What is PDU and what does it do?

A

Packet data unit.

It places a restriction on the size of data it is able to carry by layer 2.

38
Q

What is the Max PDU size of Ethernet?

A

1500 octets

39
Q

What do you call it when the PDU is larger than the max PDU of layer 2?

A

Fragmentation.
Split IP datagram into smaller parts

40
Q

How do you know if a IP datagram is fragmented?

A

It is indicated by the Fragment Offset field in each fragment’s IP header

41
Q

If a IP datagram is fragmented how do you identify which part the fragment belongs to?

A

By viewing the Identification field (all fragments will use the same number that the original datagram used)

42
Q

What does the Do not fragment flag indicate?

A

That a datagram should never be fragmented

43
Q

What are the 5 RIRs (Regional Internet Registries)?

A

AfriNIC
ARIN
APNIC
LACNIC
RIPE NCC

44
Q

What do RIRs do?

A

Manage the allocation and registration of IP addresses

45
Q

What is the general purpose of ICMP?

A

Send control + status messages

45
Q

What does ICMP stand for?

A

Internet Control Message Protocol

46
Q

What do ICMP packets consist of and how are they “transported”?

A

A number and maybe a payload.

They are sent as the payload of a IP packet

47
Q

Which command is the primary tool in network troubleshooters?

A

the ping command

48
Q

How can you see which route is being used to any destination?

A

By using the traceroute command (or tracert on Windows)

49
Q

What is ARP and what is it used for?

A

Address Resolution Protocol.

Used to determine the layer 2 address of a node, given its IP address

50
Q

What are layer 2 addresses called?

A

MAC addresses (Media Access Control)

51
Q

What is unicasting?

A

A one-to-one communication method.

52
Q

What is multicasting?

A

Send a message to a specific group of devices

53
Q

What is broadcasting?

A

Sending a message to all the nodes on a network

54
Q

Difference between multicasting and broadcasting?

A

With multicasting the nodes that are not interesting will just ignore

55
Q

What is IGMP and what does it do?

A

Internet Group Management Protocol.

Enables hosts and routers to communicate and establish which hosts are interested in receiving multicast traffic

56
Q

What is NAT?

A

Network address translation

57
Q

What does a NAT router do?

A

Receives outgoing traffic.
Forwards request to node on the outside.

58
Q

What is the problem with NAT?

A

Remembering which internal nodes sent what to what external nodes

58
Q

When is a ingress router used?

A

When traffic enters a network

59
Q

When is a egress router used?

A

When traffic leaves a network

60
Q

How does the IPv6 header differ from IPv4?

A

TTL is replaced by Hop limit but still does the same thing
The Version field changed from 4 to 6
And it has payload length

61
Q

How many bits is used in IPv6?

62
Q

How does IPv6 separate the numbers and what is suppression??

A

Separated with a :
Suppressions = 2011:0000:0000:0000:0123 to
2011::0123 or 2011::123 (no leading 0s in hex numbers)

63
Q

What is the routing prefix in IPv6?

A

Similar to the network portion in IPv4

64
Q

What is the Interface identifier in IPv6?

A

Similar to IPv4 host number

65
Q

Difference between MAC addresses and IPv6?

A

IPv6 has a intended scope.
Leading 0’s are not supressed MAC

66
Q

What is anycasting in IPv6?

A

Send a message to any of a group of nodes
(a group within a group?)

67
Q

How is multicast addresses differentiated?

A

By the special prefix ff00::/8
(It is a class D)

68
Q

What is the loopback address in IPv6? (127.0.0.1 in IPv4)

69
Q

What address does a device use that doesnt have a address yet?

70
Q

Which prefix is reserved for site-local addresses in IPv6?

71
Q

What prefix is reserved for Unique local addresses?

72
Q

If IPv4 can address 16 unique hosts, how many number of networks can IPv6 Address and how many hosts per network?

A

16 = 2^4 thus 4 bits
Number of networks = (2*4)^2
and the same for hosts

73
Q

What is used to assign addresses to individual interfaces

74
Q

By who is routable IPv6 prefixes assigned?

75
Q

Who manages routable prefixes?

76
Q

What is tunnelling?

A

Encapsulating one protocol’s packet as the payload of another protocol

77
Q

What is ATM?

A

Asynchronous Transfer Mode. Layer 1-3.

Usually used by telecommunications providers

78
Q

How many bytes is in A ATM packet and what is it made up of?

A

53 bytes

5 bytes = header

48 bytes = payload

79
Q

When is ATM path determined?

A

Before data transmission starts