Lecture 6 Flashcards

Network Layer

1
Q

What are the 2 primary responsibilities of the router?

A
  • To run routing algorithms and protocols

- To forward datagrams from incoming links to the correct outgoing links

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

What happens if the datagrams arrive faster than they can be forwarded?

A

Queuing occurs.

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

What are the input port functions?

A
  • Line termination
  • Data link processing
  • Lookup and forwarding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the output port functions?

A
  • Buffer management
  • Data a link processing
  • Line termination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 3 main components of the Internet Network layer?

A
  • IP
  • Routing protocols
  • Internet Control Message Protocol (ICMP)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is contained in a datagram?

A
  • IP Version number (4 bits)
  • Number to determine the size of the header of the datagram (4 bits)
  • Type of service to allow different types of IO datagrams (8 bits)
  • Datagram length indicator (16 bits)
  • 16 bit identifier
  • Flags (3 bits)
  • 13 bit Fragmentation offset
  • Time to live (8 bits)
  • Upper layer protocol (8 bits)
  • Header checksum (16 bits)
  • 32 bit Source IP address
  • 32 bit Destination IP address
  • Options, if any (32 bits)
  • Data (32 bits)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the Time-to-live in a datagram?

A

A field to ensure that the datagram does not circulate forever. Each router it visits will decrement this value until it reaches zero, when it is dropped.

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

What is the Upper-layer protocol field in the datagram?

A

It indicates the specific transport layer protocol to which the data portion of this datagram should be passed to.

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

What is datagram fragmentation?

A

When a datagram cannot be sent through a link because it is too big, so it gets split up into multiple datagrams to fit through the link. The datagram is reassembled afterwards.

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

How does the receiver know which fragments to reassemble into a datagram?

A

Related datagram segments have header bits that identify them as part of the same datagram.

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

What is the maximum transmission unit fo the ethernet?

A

1500 bytes.

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

How many bits long is IPv4?

A

32 bits.

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

What it an interface (PS: it is not an user interface)?

A

A connection between a host or router and the physucal link. Interfaces have an associated IP address.

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

Routers can only have one interface?

TRUE or FALSE

A

FALSE.

Routers can have multiple interfaces running at the same time.

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

Hosts only have one interface?

A

TRUE.

This is generally the case with hosts.

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

Hosts only have one interface?

A

TRUE.

This is generally the case with hosts.

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

What do higher-order bit and lower-order bit IP addresses determine in a network?

A

Higher order bit IP addresses signify the sub networks in a network.

Lower order bit IP addresses signify the interfaces in a network.

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

Interfaces can only communicate directly if they are on the Same network.

TRUE or FALSE

A

TRUE.
Interfaces on the same network share the same subnet portion of there IP address to indicate the belong to the same network.

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

How do when know how many bits of the IP address of an interface identify the subnet it is a part of?

A

Using slash notation. A slash comes after the IP address and shows the bit length of the subnet portion of said IP:

223.1.1.0/24

Has a 24 bit long subnet section.

20
Q

What are two disadvantages of xlassful addressing?

A
  1. It is not very flexible - only has three options

2. Inefficient use of address space - a class might not use all the space in the address

21
Q

What is the format of Classful InterDonain Routing (CIDR) address?

A

a.b.c.d/x

Where a, b, c and d are bits in the address and x is the number of bits in the network part of the address.
Network space is not fixed by byte boundaries, and is thus not dynamic.

22
Q

What is address aggregation?

A

IP address are assigned to ISP (Internet service providers) in contiguous blocks. The ISPs can use these IPs for there service.

There are many addresses with the first part corresponding to:
199.31.x.x

Where the xs are other parts of the IP.

23
Q

What is the advantage if address aggregation?

A

It allows for efficient routing between subnets, due to these division of of subnets.

24
Q

What are IP addresses managed by?

A

The Internet Coporation for Assigned Names and Numbers (ICANN).

25
Q

How does ICANN manage IPs?

A

It allocates addresses to regubal address supporting organisations, which then in turn allocates blocks of IP to large ISPs. Large ISPs allocate to smaller ISPs or organisations, which then allocate to the end users.

26
Q

What does ICANN do?

A
  • Manages IP addresses.

- Can also manage DNS, domain names and disputes

27
Q

What does the Dynamic Host Configuration Protocpqol (DHCP) do?

A

It assigns addresses throughout the hosts/routers in an organisation. Often configured by network administrators. Addresses assigned can be permanent or temporary.

28
Q

What 4 things does a host need to communicate to the network?

A
  1. A unique IP address
  2. The subnet mask (Subnet signifier at the end of address)
  3. The broadcast address
  4. The default gateway
29
Q

What is DHCP server discover?

A

When a new client doesn’t have a IP address and doesn’t not know where to sent the data. So I broadcasts to every other host and hopes that the DHCP server responds.

30
Q

What is DHCP server discover?

A

When a new client doesn’t have a IP address and doesn’t not know where to sent the data. So I broadcasts to every other host and hopes that the DHCP server responds.

31
Q

What is DHCP server offer(s)?

A

When a DHCP server sees a DHCP discover message, so it broadcasts an offer message (As the discover host still does not have an IP). The offer message contains an IP for the host, and the IP address of the DHCP server itself.
Multiple offers can be sent to the host from different DHCP servers.

32
Q

What is an DHCP request?

A

When the host receives the offer(s) from the DHCP server(s) it will select one offer and respond to the DHCP server who sent it with a DHCP request message. This message contains the configuration parameters.

33
Q

What is a DHCP ACK?

A

When the DHCP server receives the DHCP request it responds with a acknowledgement message. This acknowledgement message echoes back the configuration parameters.

34
Q

What are private addresses?

A

They are the local network addresses owned by the local network hosts.

35
Q

What are public addresses?

A

Outside facing IP addresses owned by gateway routers for use over the Internet.

36
Q

All internal hosts use this same external IP address.

TRUE or FALSE

A

TRUE.

37
Q

Each Local Area Network (LAN) uses one IP address.

TRUE or FALSE

A

TRUE.

- This address can change, but the internal address in the LAN network doesn’t need to change

38
Q

Give 3 facts about LAN networks.

A
  1. Devices inside the LAN network are not visible to the internet
  2. All traffic comes through the main router in the LAN
  3. The router has a firewall from protection from things outside the LAN
39
Q

What is universal plug and play?

A

Allows applications to specify which ports they wish to use, via the NAT translation tables. When the router accepts a request, an ebtry in the NAT table is created for that application.

40
Q

What is stored in the NAT translation tables?

A

The port or IP translations that the router is maintaining. The NAT table is stored on the router.

41
Q

What is the Internet Control Message Protocol (ICMP) used for?

A

IMCP is how routers communicate with each other:they exchange network layer information like routing and error reporting. The IMCP messages are consider part of IP but are carried on IP datagrams.

42
Q

What fields does an IMCP message have?

A
  • Type field
  • Code field

Also sends the first 8 bytes of the datagram that caused the IMCP message in the first place.

43
Q

What does Traceroute do?

A

It allows us to trace the route of a packet from host to host, encompassing all routers it passed through in its path. It does this by using IMCP messages by sending UDP packets with unlikely port numbers to the end host and receives the IMCP message back.

44
Q

How exactly does Traceroute do its job?

A

It sends UDP segments to the host with an increasing TTL number and starts timers for each segment. The nth segment has a TTL of n, which will expire at the nth router which in turn sends a IMCP warning back to the source. The Traceroute uses this message to calculate the RTT. Eventually, the segment will reach the destination once it has a high enough TTL. Since the host is unlikely to be accepting random segments it will return a message back saying ‘host port unreachable’. Once the Traceroute receives this, it stops.

45
Q

How many bits in a IPv6 address?

A

128 bits.

46
Q

What is contained in the IPv6 datagram format?

A
  • Version number
  • A traffic class (Like type of service)
  • A flow label
  • The payload length (16 bit value)
  • Next header (Indentifies the protocol the payload is to be delivered to)
  • The hope limit (same as the TTL)
  • Source address
  • Destination address
  • The payload