Networking pt 2 Flashcards

1
Q

What does an IP/netmask pair let you identify?

hint: 2 parts

A

let’s you identify the network part and the host part of an IP address

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

how many bits is IPv6?
what parts is it split in half for?
what does it have that is different from ipv4?

A
  • 128 bit address
  • 16 bit hexadecimal numbers
  • separated by colon (:)
  • split in half (64 bit each) for network part and device part
  • dedicated subnet portion (unlike ipv4)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 IPv6 Address Types?

hint: G, U, L

A
  • Global Unicast Address (global)
  • Unique Local (internal)
  • Link Local (internal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does a Router connect?

What does a Router forward?

A
  • devices connected to different networks at the same time

- forward IP datagrams from one network to another

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

What is a Router forwarding policy based on?
What does the policy determine?
What does it use to make a decision?

A

based on routing protocols - determines best path to reach a network using routing table

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

What is the Routing default address?

When is it used?

A
  1. 0.0.0

- used when router receives packet whose destination is an unknown network

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

Where else does packet forwarding happen?

hint: which layer?

A

Lowest layer of TCP/IP stack: Link layer

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

What are Hubs and Switches?
(hint: what do they forward and where?)

Which address do they work with?

A
  • Devices that forward frames on local network

- work with MAC addresses

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

Frames

A

Layer 2 packets

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

MAC addresses

A

Media Access Control

  • uniquely identify network card
  • layer 2
  • aka: physical address
  • 48 bit (6 bytes)
  • hexadecimal
  • Linux ( ip addr), Windows (ipconfig), Mac (ifconfig)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IP addresses

A
Layer 3 (network layer)
-address scheme to identify host in a network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Using IP and MAC addresses, how will workstation A send a packet to workstation B?

A
  • Datagram IP header: destination IP of workstation B
  • Link layer header: destination MAC of router
  • Source IP and source MAC of workstation A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens after the router receives the packet from workstation A?

A

The router rewrites the MAC addresses but IP addresses stay the same:

  • destination MAC: workstation B
  • source MAC: router
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Forwarding Table/ CAM Table

A
  • Content Addressable Memory Table
  • Stored in devices RAM
  • Used by switches to bind a MAC address to an interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How many ports do switches have?

A

Home: 4
Corporate: 64

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

Network segmentation

A
  • segmented by routers (not switches)

- routers DO NOT forward packets with Broadcast MAC address

17
Q

TTL

A
  • Time To Live
  • determines how long an entry will stay in the table
  • bc CAM tables have a finite size
18
Q

How do switches decide which interface to use?

A

They identify new MAC/hosts dynamically with each new packet header and use the source MAC to decide which interface when forwarding.

19
Q

What happens to the CAM table when a switch encounters a MAC address?

A
  • if MAC is not in table = creates a new MAC-interface binding
  • if MAC is in table = updates TTL
  • if MAC is in table and already binded to another interface = the table is updated
20
Q

Explain how forwarding happens.

A
  1. switch reads destination MAC address of frame
  2. performs CAM table lookup
  3. forwards packet to corresponding interface
  4. if no corresponding MAC address found, switch forwards to all interfaces