L5 Network and Transport Layers Flashcards

1
Q

What does the Transport Layer do?

A

Provides an error-free data delivery service to the Application Layer

  • Repackaging upper layer data into manageable sized chunks (segments) for transmission on the network
  • Reassembling segments into larger data units to give to the Application Layer entity
  • Makes sure that data is delivered to the Application Layer in the order it was sent
  • Detects and solves loss data
  • Detects and solves duplicate data
  • Provides metering (i.e. flow control) of data to the network laye
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain how data encapsulation works layer by layer.

A

The App header and App data are added on at the Application layer. The TCP header and App data-2 are added on at the Transport layer. The IP header is added on at the Network layer. The Layer-2 header and Layer-2 trailer are added on at the Data Link layer.

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

What is TCP/IP?

A

A group of protocols.
TCP and IP are not the same.
TCP is a protocol used in the Transport Layer in the internet model.
IP is the protocol used at the Network layer in the internet model.

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

Why is TCP/IP the dominant protocol used in the Transport and Network layer today?

A
  • Linked to the introduction of the Internet (via ARPANET)
  • Open non-proprietary protocols
  • Scalable addressing scheme allows very large manageable networks
  • Critical mass and momentum
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 10 mandatory and 1 optional field that exists in the TCP header?

A
  1. Source port
  2. Destination port
  3. Sequence number
  4. ACK number
  5. Header length
  6. RFU
  7. Flags
  8. Window Size
  9. Checksum
  10. URG
  11. Options
    IT has 20 bytes in total.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the Sequence Number of the TCP header do?

A

Numbers each segment transmitted so that the receiver can reassemble them in the right order.

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

What does the ACK number of the TCP header do?

A

Acknowledges segments – sliding window style

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

What does the Window size of the TCP header do?

A

Dynamically adjusts the window size for Flow control.

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

How does TCP segmenation work?

A

TCP breaks upper layer packets into 2 smaller parts and sends them as two separate segments. It splits the application layer head and user data and then adds a TCP header to each. These segments are then reassembled into a single PDU before being sent to the Application layer.

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

Explain how the maximum segment size in (MSS) works with regards to TCP.

A

The maximum segment size is the largest chunk of user data sent in the TCP segment. The total length of a TCP segment is the maximum segment size + the TCP header.
The Ethernet MTU = IP header + TCP header + User data. The Ethernet header and trailer follow this.

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

What is a session?

A

An active exchange of information (dialog, conversation) between two Application Layer peers which have established a connection.
It has a 2-way communication. The connection is maintained by the TCP.

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

What is connection oriented messaging?

A

Used by Applications that want guaranteed data delivery ex. FTP, SMTP, HTTP

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

What are the steps in a 3-way handshake to establish a TCP connection session?

A
  1. Synchronization characters are sent from the client to the server
  2. A synchronization acknowledgement is sent back to the client from the server
  3. An acknowledgement is then sent from the client to the server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the four steps in a 4-way handshake to terminate a TCP connection session?

A
  1. FIN sequence is sent from client to server to say that no more data needs to be sent.
  2. An acknowledgement is sent from the server back to the client
  3. A FIN sequence is sent from the server to client
  4. An acknowledgement is then sent from the server to the client
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is connectionless messaging?

A

A session hat has not been set up between communicating peers. Used by applications who don;t need guaranteed data delivery. UDP (user datagram protocol) is used to transfer the data.

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

What is UDP?

A

User Datagram Protocol. Its used when TCP adds to much overhead (UDP takes up only 8 bytes while TCP takes 20 bytes).

UDP offers:

  • No segmentation (or reassembly)
  • No error checking (usually checksum not used)
  • No (re)sequencing
  • No retransmission of lost data
  • Low overhead
  • Low latency

ex of uses: volp, real-time video,

17
Q

What is QOS (Quality of service)?

A

QoS defines different classes (of service) into which a connection is placed, connections are given different priorities.
Best used on virtual or private networks.
Gives high priority to time sensitive data ex. voice data and real-time video

18
Q

Which protocols support QOS (Quality of service)?

A

Resource Reservation Protocol (RSVP)

Real-time Streaming Protocol (RTSP)

Real-time Transport Protocol (RTP)

19
Q

What does the network layer do?

A

Provides a transparent network-wide path between two transport layer entities

20
Q

What protocol does the network layer use?

A

Internet Protocol (IP).

21
Q

What does Internet protocol (IP) do?

A

Sets the proper source and destination network addresses in the packet before forwarding to the Data Link layer. It uses the destination address to determine the next hop, i.e. which interface/port on the device to send the packet out (the routing decision)
TWO versions of IP in current use: IPv4 and IPv6
An IP address is divided into two parts: a fixed part that is the same for every host on the same subnetwork and a variable part that is unique to each host on the network

22
Q

Name the 13 mandatory and 1 optional field in the IPv4 header?

A
  1. Ver
  2. Hdr len
  3. DSCP/ECN
  4. Total length
  5. Ident
  6. Flags
  7. Frag offset
  8. TTL
  9. Protocol
  10. Checksum
  11. Src Addr
  12. Dest Addr
  13. User data
23
Q

Name the 8 mandatory fields in the IPv6 header

A
  1. Version
  2. Traffic class
  3. Flow label
  4. Payload length
  5. Next header
  6. Hop limit
  7. Source address
  8. Destination address
  9. ? User data

contains 40 bytes

24
Q

What kind of addresses exist in networking?

A
  1. Domain name - Identifies a host (e.g. server) using a naming convention that is easy for humans to remember and manipulate ex. carleton.ca
  2. Network layer address - The address that identifies to the network layer the interface used to connect to the communications network ex. IP address
  3. Data link layer address - The address that identifies the physical port of the device connected to the network segment ex. ethernet MAC
25
Q

What notation is used for IP addresses?

A

Dotted decimal notation - Breaks the address into 4 bytes and writes the decimal equivalent of each byte, separated by a dot.

26
Q

What is a subnet?

A

A large network can be divided into smaller subnetworks.

27
Q

What is classful adressing?

A

Address space divided into “classes” based on fixing the first 1 to 3 bytes of the IP address. Addresses are no longer allocated this way - bad for allocating resources.

28
Q

What is classless addressing?

A

The new way of allocating addresses. The variable part gives the address space for hosts on the network.