Networks Flashcards

1
Q

What is a network?

A

A connection between at least two nodes through a communication link

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

Network edge

A

End nodes (like client and server)

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

Network core

A

Interconnecting devices (like switch, hub, router)

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

Define hub

A

Interconnecting device. Whatever messages come in one port are sent to all other ports, does NOT allow direct device to device communication. Uses broadcast messages only. Looks at MAC address only.

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

Define switch

A

Interconnecting device. A smart hub. Keeps track of which devices are on which ports and only sends messages to the right ports. Device to device communication. Uses unicast messages. Looks at MAC address only.

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

Router

A

Interconnecting device. Uses IP addresses.

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

Port

A

Logical construct that identifies a specific process of the type of network service

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

Does the port number need to be unique within a device? Does it need to be unique BETWEEN devices?

A

Yes (same building, diff apt #)
No (diff building, same apt #)

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

Common port numbers

A

HTTP: 80
HTTPS: 443
SMTP: 25
FTP: 21
DNS: 53
DHCP -> Client: 68, Server: 67
SSH: 22
Telnet: 23

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

OSI Model

A
  1. Application - enables user to access the network of the internet resources (browser, email, etc)
  2. Presentation - encoding, encryption, data compression. computer language is binary so conversion happens here.
  3. Session- it’s in charge of establishing and terminating the communication session
  4. Transport - provides end to end, host to host, process to process communication
  5. Network - sends data over multiple networks using the IP address
  6. Data Link - responsible for moving data from one node to the next one
  7. Physical - where the encoding and decoding process will be performed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How are encoding in physical layer and encoding in presentation layer different in OSI Model?

A

In presentation, you convert from regular to binary language. In physical, we convert from binary to signals and vice versa.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Application Layer - TCP/IP Model
A

Enables user to access the internet resources.

Main protocols: FTP (file transfer), SSH/telnet (remote access), HTTP (hypertext transfer protocol), HTTPs (secure), SMTP (email), DNS (map domain name to IP address), DHCP (assigns IP addresses to the hosts/machines)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Transport Layer - TCP/IP Model
A

Provides end to end, host to host, process to process delivery of the message.

Functions: Port addressing, segmentation and reassembly, connection control.

Connection oriented - error control, flow control, congression control

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

Network Layer - TCP/IP Model

A

Sending the messages over multiple networks using the IP addresses of the source machine and the destination machine

Functions: Logical addressing (IP address) and routing (finding the best route from source to destination)

Versions of IP
IPv4 - 32 bits, 4 Bytes.
IPv6 - 16 Bytes

Private IP vs Public IP

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

Data Link Layer - TCP/IP Model

A

Responsible for moving data from one node to the next node. Link to link.

Main functions: framing and physical addressing. Physical addressing assigns the MAC (physical) address to the message.

-MAC address is a hard coded address on the network card. It’s fixed. 6 Bytes.

IP address will be changed all the time.

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

Physical Layer - TCP/IP Model

A
17
Q

If we are using the OSI model, the encryption will be in presentation layer. If we use TCP/IP, where will encryption be performed?

A

Application layer

18
Q

Difference between Private IP and Public IP

A

Private - for local networks or small offices, NOT ROUTABLE, we cannot use it on internet. Private IP MUST BE UNIQUE WITHIN THE PRIVATE NETWORK ONLY. They do not need to be unique BETWEEN private networks. There is a specific range of IPs that can be used as private IPs only, like 10.10.10 and 192.68.

Public - for public networks and all devices on internet, ROUTABLE, we can use it on the internet

All the private IP addresses in the private network will be mapped to one public IP

19
Q

When you’re at home and the computer is assigned to a private IP, do you have any issue accessing the internet?

A

The network address translator (NAT) will replace the private IP with a public IP to allow user to access the internet.

20
Q

What do we use the MAC address for?

A

We use the MAC address for the device to communicate over the local network.

21
Q

IP Address vs MAC Address vs Port Number

A

IP Address: reach the destination network (network layer)

MAC Address: reach the correct device on the network (data link layer)

Port number: reach the correct process within the device (transport layer)

22
Q

What is the difference between TCP and UDP?

A

TCP: Reliable & connection oriented. Receiver must acknowledge receiving the message. Three way handshake where the sender and receiver must establish a connection before exchanging data. HTTP, HTTPS, FTP, SMTP, SSH, TELNET use this.

UDP: unreliable and connectionless. No acknowledgement sent back. Speedy. DNS and DHCP use it.