Systems Networking part 1 Flashcards

1
Q

define internet and infranet

A

globally linked computer network using TCP/IP,

privately owned/controlled network, usually on a client/server platform to share files/data locally

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

OSI model

A

first standard model for network communications describing 7 layers:

Application Layer: human-computer interaction. FTP and SMTP for file transfer and mail transfer

Presentation Layer: formats data to be understood by application layer. ASCII to to Unicode, encryption/decryption. HTTP to transmit web pages, SSL to transpit secure data.

Session: maintains connections, decides ports/services. manages data flow, terminates connections,

Transport: data transmission, confirms data is received successfully. TCP UDP

Network Layer: provides data routing from source to destination. determines best path to travel. decide travel path for email from source to destination. (IP protocol)

Data Link Layer: error detection/correction. adds error-check bits to data and checks on the other side. ensures data is not transmitted too quickly for other side to handle.

Physical Layer: defines electrical/mechanical specifications of how data is physically transported. converts an email into electric signals to travel over a cable

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

IPv4 address Exhaustion

and solutions?

A

we are running out of the 4.29 billion 32-bit IPv4 addresses we had available.

NAT/PAT helps slow the issue down, but not for long.

IPv6 is coming, using 128-bit addresses, allowing 2^128 combinations (maybe 340 undecillion times more addresses than IPv4)

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

NIC Network Interface Card

A

provides a computer with connection to network.

implements physical layer circuitry to communicate with ethernet/wifi (data link layers).

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

MAC Address

A

Media Access Control address.

Unique ID assigned to NIC (Network Iterface Card)

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

Ethernet

A

technology that connects devices in a LAN or a WAN.

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

Hub

A

Node in Physical Layer. broadcasts every received packet to every device in the network.

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

Switch

A

Data Link Layer Networking Device. floods entire network with “unknown unicast frame” (packet that id doesn’t know who to send to). each unknown host reponds by sending their own frame. thus, swithc learns MAC address of each host.

Forwarding: Switch knows destionation MAC, sends it there

Filter: if frame source and destination ports are same, kill frame

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

ARP

A

Address REsolution Protocol. maps IP address to MAC address

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

Network Types: LAN and WAN

A

Local Area NEtwork and Wide Area NEtwork. o solid definition of what seperates the two; one’s a local network, the other is large.

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

IP Address and subnet mask

A

numbers that identify a device on a network, Net ID for network/router id, host id for hosts on the network.

submet mask: 32-bit number, created by setting host bits to 0 and network bits to 1. (255.0.0.0)

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

CIDR

A

Class-less Inter-domain Routing.

IP-assignment method. groups blocks of addresses into single routing-table entries, which reduces routing table size and allows an organization to have more machines under the same IP.

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

vLAN

A

Virtual Area Network: specifically, allows a network to set a second internal virtual network.

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

NAT and PAT

A

method of translating private IP addresses to public IP addresses.

static NAT: one-to-one mapping of private IP to public IP for devices that need to be accessile from the internet (web servers)

dynamic NAT: one-to-many mapping of private IP to many public IP addresses. for devices like laptops that do not need to be accessible by the internet.

PAT: Port Address Translation: special type of dynamic NAT mapping multiple private IP addresses to a single public IP address by using their ports.

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

VPN

A

virtual Private network hides user’s IP address, and uses tunneling between user device and remote server

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

UDP/TCP

A

Transfer Control Protocol: TCP handshake, confirm arrival of each packet

User Datagram Protocol: fire and forget

17
Q

Port

A

Virtual point where connection starts and ends. IP leads to the computer, but port leads to the process on the computer

18
Q

Socket

A

an endpoint of a two-way communication between two files on a network. “a virtual file that can be read from and written to”

19
Q

DHCP

A

Dynamic Host Configuration Protocol.

client/server protocol.

automatically provides IP address to devices (hosts) on a network. you know, instead of manually assigning an internal ip address to each machine.

20
Q

WHy use IP when we have MAC addresses?

A

MAC addresses are not globally unique (different manufacturers reuse these numbers)

MAC addresses are not hierarchical which doesn’t help create effitient packet travel routes across networks

21
Q

What is ARP, ARP cache and Gratioutous ARP?

A

Address Resolution Protocol, maps IP to MAC adress.
The cache is a collection of ARP entries.
Qrauitious ARP: when a node/host anounces to update its IP-MAP-Mapping to the entire network.

22
Q

What is the command used to show all open ports and socket connections on a machine?

A

netstat -an | grep LISTEN

lsof -i -n | grep LISTEN

nmap -v -A localhost

23
Q

what is a subnet mask and what is it used for?

A

32-bit number that divides IP addess into the network ID and host ID. used to segment a network into smaller networks (VPNs. raise security and reduce network traffic)

24
Q

DNS

DNS Record

A

Domain Name System. Maps domain name to IP address.

DNS Record: Domain Name -> IP matched pairs. Stored in DNS servers, DNS root name servers and top-level domain servers.