Network Flashcards

1
Q

How many Layers are in the TCP/IP Model?

A

5 Layers (Physical, Data Link, Network, Transport and Application)

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

Physical Layer (1st Layer)

A

It represents the physical devices that interconnect computers

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

Data Link Layer (2nd Layer)

A

Responsible for defining a common way of interpreting these signals so network devices can communicate. Most common protocol here is Ethernet.Moving data within a single link or network.

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

Network Layer or Internet Layer (3rd Layer)

A

Allows different networks to communicate with each other through devices known as routers. Moving data within multiple links or networks. Most common protol here is the IP (Internet Protocol)

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

Transport Layer (4th Layer)

A

Sorts out which client and server programs are supposed to get that data. Most common protocol TCP (Transmission Control Protocol), another one UDP (User Datagram Protocol). TCP provides mecanisms to ensure data is reliable delivered, while UDP doesn’t validate that.

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

Application Layer (5th Layer)

A

Different protocols and they are application specific.

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

Explain the Layers easily

A

Physical Layer -> Delivery Truck Data Link -> The roads themselves Network -> The map (route) that tells you the location between Address A and Address B Transport -> Driver that knows how to knock on your door, Is it residential? Is it a business? Application -> Contents of the package itself

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

What is Ethernet?

A

Is a data link layer protocol. The Ethernet standards also define a protocol responsible for getting data to nodes on the same network or link.

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

Internetwork

A

A collection of networks connected together through routers, the most famous of these being the Internet.

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

CSMA/CD

A

Carrier Sense Multiple Access with Collision Detection. Used to determine when the communication channels are clear, and when a device is free to transmit data.

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

MAC Address

A

Media Access Controll Address. A globally unique identifier attached to an individual network interface. It’s a 48-bit number normally represented by six groupings of two hexadecimal numbers.

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

What is a Unicast transmission

A

1 device sending transmission to one receiving address. If the least significat bit in the first octet of a destination address is set to zero, it means that the enthernet frame is intended for only the destination address.

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

What is a Multicast transmission

A

1 device sending transmission to multiple receiving address. If the least significat bit in the first octet of a destination address is set to one, it means that you are dealing with a multicast frame

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

What is a Broadcast transmision

A

1 device sending transmission to all devices in a lan. The ethernet broadcast address is FF:FF:FF:FF:FF:FF

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

What are the 6 TCP control Flags

A

URG (urgent) ACK (acknowledged) PSH (push) RST (reset) SYN (synchronize) FIN (finish)

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

TCP control flag URG(urgent)

A

A value of one here indicates tha the segment is considered urgent and that the urgent pointer field has more data about this. Doesn’t have widespread adoption, isn’t normally seen.

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

TCP control flag ACK(acknowledged)

A

A value of one in this field means that the acknowledgement number field should be examined.

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

TCP control flag PSH(push)

A

The transmitting device wants the receiving device to push currently buffered data to the application on the receiving end as soon as possible. A buffer is a computer technice when a certain amount of datais held somewhere, before is sent somewhere else. This is used to send large chunks of data more efficiently, by keeping some amounts of data in a buffer, TCP can deliver more meaninful chunks of data to the program waiting for it. In some cases you might be sending a small amount of information that you need the listening program to respond immediately, this is what the push flag does.

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

TCP control flag RST(reset)

A

On of the sides in a TCP connection hasn’t been able to properly recover from a series of missing malformed segments. Wait I can’t put over what you mean, let’s start over from scratch.

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

TCP control flag SYN(synchronize)

A

It’s used when first establishing a TCP connection and makes sure the receiving end knows the examine the sequence number field

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

TCP control flag FIN(finish)

A

When this flag is set to one, it means the transmitting computer doesn’t have any more data to send and the connection can be closed

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

Handshake

A

A way for two devices to ensure that they’re speaking the same protocol and will be able to understand each other

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

DNS

A

Domain Name System

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

DHCP

A

Dynamic Host Configuration Protocol

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

To troubleshoot communication into a specific port?

A

You use Netcat nc -zv -w 1 host port

26
Q

To troubleshoot dns issues?

A

nslookup host.com

27
Q

File Transfer Protocol (FTP)

A

20, 21

28
Q

Secure Shell (SSH)

A

22

29
Q

Telnet

A

23

30
Q

Simple Mail Transfer Protocol (SMTP)

A

25

31
Q

IPSec

A

50, 51

32
Q

Domain Name System (DNS)

A

53

33
Q

Dynamic Host Configuration Protocol (DHCP)

A

67, 68

34
Q

Trivial File Transfer Protocol (TFTP)

A

69

35
Q

HyperText Transfer Protocol (HTTP)

A

80

36
Q

Post Office Protocol (POP3)

A

110

37
Q

Network News Transport Protocol (NNTP)

A

119

38
Q

Network Time Protocol (NTP)

A

123

39
Q

NetBIOS

A

135-139

40
Q

Internet Message Access Protocol (IMAP4)

A

143

41
Q

Simple Network Management Protocol (SNMP)

A

161, 162

42
Q

Lightweight Directory Access Protocol

A

389

43
Q

HTTP with Secure Sockets Layer (SSL)

A

443

44
Q

FTP over SSL/TLS (implicit mode)

A

989, 990

45
Q

Remote Desktop Protocol

A

3389

46
Q

MicroStrategy

A

34952

47
Q

MicroStrategy SSL

A

39321

48
Q

MySQL

A

3306

49
Q

Oracle DB

A

1521, 1830

50
Q

PostgreSQL

A

5432

51
Q

SQL Server (MSSQL)

A

1433, 1434

52
Q

401 Unauthorized

A

A 401 message means the server received an unauthenticated request.

53
Q

404 Not Found

A

generated when a page the user is looking for cannot be found on the server

54
Q

500 Internal Server Error

A

displays when something is wrong with your server

55
Q

502 Bad Gateway

A

A bad gateway occurs when one server on the internet receives an invalid response from another server

56
Q

A Record

A

Address Mapping record (A Record)—also known as a DNS host record, stores a hostname and its corresponding IPv4 address.

57
Q

CNAME Record

A

Canonical Name record (CNAME Record)—can be used to alias a hostname to another hostname. When a DNS client requests a record that contains a CNAME, which points to another hostname, the DNS resolution process is repeated with the new hostname.

58
Q

MX Record

A

Mail exchanger record (MX Record)—specifies an SMTP email server for the domain, used to route outgoing emails to an email server.

59
Q

TXT Record

A

Text Record (TXT Record)—typically carries machine-readable data such as opportunistic encryption, sender policy framework, DKIM, DMARC, etc.

60
Q

The three-way handshake

A

Computer A sends a TCP segment to Computer B with the SYN flag send (set to 1)
Computer B replies back to Computer A with 2 TCP segments with the SYN and ACK flags send (set to 1)
Computer A responds back with a TCP segment with the ACK flag send (set to 1)
Once the hanshake is established, it is said that a TCP connection in this state is operating in full duplex

61
Q

How does the sending computer in the three-way handshake know which segment to send next?

A

The first communication sends the SEQ number as 1 in the Computer A and the response contains the ACK number from Computer B, Then Computer A replies back with the ACK Number set to the previous SEQ Number, so on and so forth.

62
Q

The four-way handshake (closing the connection on one end)

A

Computer B (the one ready to close the connection) sends a TCP segment to Computer A with the FIN flag send (set to 1)
Computer A replies back to Computer B with a TCP segment with the ACK flag send (set to 1)
Computer A responds again to Computer B with a TCP segment with the FIN flag send (set to 1)
Computer B responds to Computer B with a TCP segment with the ACK flag send (set to 1)