Intro To Network Flashcards

Network Introduction

1
Q

Typical Network Setup

A

SOHO & Enterprise Network form mostly via Ethernet, Wireless

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

Networking model, architecture or blueprint

A

Defines a comprehensive set of documents, each document describes one small function required for a network

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

Network protocol

A

Set of logical rules that devices must follow to communicate

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

5 Layer TCP/IP Model

A

Application, Transport, Network, Data-link, Physical (ATNDP)

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

Physical Layer

A

Focuses on how to transmit bits over each individual link

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

Network Layer

A

Focuses on delivering data over the entire path from the original sending computer to the final destination computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
Example Protocols,
Application?
Transport?
Internet?
Data Link & Physical?
A

Application - HTTP, POP3, SMTP
Transport - TCP, UDP
Internet - IP, ICMP
Data Link & Physical - Ethernet, 802.11 (Wi-Fi)

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

Application Layer Purpose?

A

Provide services to the application software running on computer, does not define the application itself, but it defines services that applications need.

Eg. HTTP defines how web browsers can pull the contents of a webpage from a web server

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

HTTP Mechanism

A

A protocol which emphasizes the exchanged of messages between client and server to obtain webpages

HTTP Flows:
1. Open a TCP connection, the TCP connection is used to send a request, or several, and receive an answer. The client may open a new connection, reuse an existing connection or open several TCP connections to the servers

  1. Send an HTTP message: HTTP messages (before HTTP/2) are human readable. With HTTP/2, these simple messages are encapsulated in frames, making them impossible to read directly, but the principle remains the same. Eg.

GET / HTTP/1.1
Host: developer.mozilla.org
Accept-Language: fr

3. Read the response sent by the server, such as:
HTTP/1.1 200 OK
Date: Sat, 09 Oct 2010 14:28:02 GMT
Server: Apache
Last-Modified: Tue, 01 Dec 2009 20:18:22 GMT
ETag: "51142bc1-7449-479b075b2891b"
Accept-Ranges: bytes
Content-Length: 29769
Content-Type: text/html

here comes the 29769 bytes of the requested web page)

  1. Close or reuse the connection for further request

If HTTP pipelining is activated, several requests can be sent without waiting for the first response to be fully received.

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

Types of HTTP messages

A

HTTP messages are how data is exchanged between a server and a client. Two types of messages; requests sent by the client to trigger an action on the server; responses the answer from the server

Encoded in ASCII, and span over multiple lines

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

HTTP Message Structure

A
  1. A start-line describing the requests to be implemented, or its status of whether successful or a failure. This start-line is always a single line.
  2. An optional set of HTTP headers specifying the request, or describing the body included in the message.
  3. A blank line indicating all meta-information for the request has been sent.
  4. An optional body containing data associated with the request (like content of an HTML form), or the document associated with a response. The presence of the body and its size is specified by the start-line and HTTP headers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

HTTP Requests

A

HTTP requests are messages sent by the client to initiate an action on the server

Start line contains:
1. HTTP method, a verb (GET, PUT or POST) or a noun (like HEAD or OPTIONS), that describes the action to be performed. For example, GET indicates that a resource should be fetched or POST means that data is pushed to the server

  1. The request target, usually a URL

POST / HTTP/1.1
GET /background.png HTTP/1.0
HEAD /test.html?query=alibaba HTTP/1.1
OPTIONS /anypage.html HTTP/1.0

  1. HTTP version, defines the structure of the remaining message, acting as an indictor of the expected version to use for the response

Headers:
HTTP headers from a request follow the same basic structure of an HTTP header, a case insensitive string followed by colon and a value whose structure depends upon the header.

Types of headers

  • General headers, like Via, apply to the message as a whole
  • Request headers like User-Agent, modify the request by specifying it further, by giving context (like Referer) or by conditionally restricting it (like If-None)
  • Representation metadata headers, like content-length that describes the encoding and format of the message body (Only present if the message has a body)

Body:
Not all requests have one, requests fetching resources, like GET, HEAD, DELETE or OPTIONS usually dont need one. Mostly used in POST requests

Categories:

  • Single resource bodies, consisting of one single file, defined by the two headers: Content-Type and Content-Length
  • Multiple resource bodies, consisting of a multipart body, each containing a different bit of information, Typically associated with HTML Forms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

HTTP Responses

A

Status line
1. Protocol version, usually HTTP/1.1

  1. Status code, indicating success or failure of the request. Common status code are 200, 404 or 302
  2. Status text, A brief, purely informational, textual description of the status code to help a human understand the HTTP message

Headers:
Similar to HTTP requests

Body:
- Not all responses have one: responses with a status code that sufficiently answers the request without the need for corresponding payload (201 Created or 204 No Content) usually dont

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

CCNA, HTTP

A
  1. To get the webpage from a server, Bob sends a message with an HTTP header. Protocols use headers as a place to put information used by that protocol
  2. Response from server than return a message beginning with an HTTP header which contains a return code (200). HTTP defines other return codes so that the server can tell the browser whether the request worked.
  3. Subsequent message are then sent from server to client without an HTTP header. HTTP transfer the data by sending multiple messages, each with a part of the file.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Transport Layer

A

Includes only a small amount of protocols
Commonly used protocol: TCP, UDP
Provide services to the application layer protocols

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

TCP

A

A transport layer protocol which provides reliable, ordered, and error checked delivery of a stream of bytes between applications running on hosts communicating via an IP network. A connection oriented protocol

17
Q

Operation of TCP

A

Focuses on a few attribute, Windowing, Acknowledgement, Flow Control

Flow Control, If the receiving system is being sent more information than it can process, it will ask the sending system to stop for a short time. The packet sent telling the other device to stop is known as a source quench message

Windowing, a mechanism which each system agrees upon how much data is to be send before an acknowledgement is required.

Acknowledgements, when a certain amount of segments is received, the fact that they all arrived safely and in the correct order needs to be communicated to the sending system. All packets sent contains a sequence number for ordering. If a packet is dropped, a request is sent to re-transmit the packet

18
Q

Three way handshake

A

The client ( initiating side ) sends a segment with a SYN flag set and the proposed initial sequence number in the SEQ number field ( SEQ = x ).

On receiving this, the server ( responding side ) notes the SEQ number setting for the incoming direction and then returns a segment with both the SYN and ACK flags set with the SEQ number field ( SEQ = y ) set to its own assigned value for the reverse direction and a piggy backed acknowledgement field of X + 1 ( PACK = X + 1 ) to confirm it has noted the initial value for its incoming direction.

On receipt of this, the client ( initiating ) returns a segment with the ACK flag set and a piggybacked acknowledgement field of ( Y + 1 )

19
Q

Same layer & Adjacent layer interactions

A

Adjacent layer interaction, Refers to the concepts of how adjacent layers in a networking model, on the SAME computer, work together

Same layer interaction, When a particular layer on one computer wants to communicate with the same layer on another computer, the two computers use headers to hold the information that they want to communicate

20
Q

UDP

A

A connectionless protocol, Numbers each packet and then sends them to their destination. Never checks to see whether they arrived safely and will never set up a connection before sending the packet.

21
Q

Contention between UDP & TCP

A

TCP uses a lot of bandwidth on the network and there is a lot of traffic sent back and forth to set up the connection even before the data is sent. Takes up valuable time and network resources

UDP packets are alot smaller than TCP packets and they are very useful if a really reliable connection is not that necessary. Does not guarantee delivery

22
Q

Network layer

A

takes the segments from transport layer and break them down into smaller units called packets.

Network layer determine the best path to take from one network to another. Routers work on this layer. Use logical addressing here. IP addressing

23
Q

Purpose of IP

A

IP defines that each host computer should have a different IP address.

Defines the process of routing so that devices called routers can work like the post office, forwarding packets of data so that they are delivered to the correct destinations

Defines the details of how a network infrastructure should be created so that the network can deliver data to all computers in the network

Also defines how to group addresses together

IP address is made up of 32 bit

24
Q

IP routing basic

A
  1. Begins with server being ready to send an IP packet. IP packet will contain both destination and source IP address. Server’s IP process chooses to send the packet to some router.
  2. Router r1 receives the IP packet and R1 routing table process the IP address and makes a decision. R1 looks at the destination address and compare it within its routing table. And chooses to forward to the next IP router.
  3. Router r2 repeat the same kind of logic used by r1.
  4. This process occurs until the packet is sent to its destination
25
Q

Data link & Physical Layer

A

Defines the protocols and hardware required to deliver data across some physical work.

Physical layer defines the cabling and energy that flow over the cables

26
Q

Lower Layer Encapsulation

A
  1. Server encapsulates the IP packet between an Ethernet header and Ethernet trailer, creating an Ethernet frame
  2. Server physically transmits the bits of this Ethernet frame, using electricity flowing over the Ethernet cabling
  3. Router physically receives the electrical signal over a cable and re-creates the same bits by interpreting the meaning of electrical signals
  4. Router decapsulates the IP packet from the Ethernet frame by removing and discarding the Ethernet header and trailer
27
Q

Data Encapsulation Process

A
  1. Create and encapsulate the application data with any required application layer headers
  2. Encapsulate the data supplied by the application layer inside a transport layer header
  3. Encapsulate the data supplied by the transport layer inside a network layer (IP) header. IP defines the IP addresses that uniquely identify each computer
  4. Encapsulate the data supplied by the network layer inside a data-link layer header and trailer. Focuses on the use of MAC address
  5. Transmit the bits. Signal encoding
28
Q

Names of TCP/IP Messages (FPS)

A

Frame - Data Link Layer
Packet - Network Layer
Segment - Transport Layer

29
Q

OSI model

A
Application
Presentation
Session
Transport
Network
Data Link
Physical
30
Q

OSI Data Encapsulation Terminology

A

Protocol Data Unit - Represents the bits that include the headers and trailers for that layer as well as the encapsulated data