Lecture 3 Flashcards

Transport Layer

1
Q

What does the Transport layer do?

A

It provides logical communication between processes.

The sender breaks the message into segments for the network layer below it to use. And the receiver is passed the segments by its network layer, and resembles the segments into a message and passes it to its ends application layer for processing.

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

What is the difference between the network layer and the transport layer?

A

The network layer us logical communication between hosts.

The transport layer is logical communication between processes.

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

What is the Internet’s network layer protocol called?

A

Internet protocol (IP)

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

What is multiplexing?

A

Multiplexing happens at the sender. It consists of handling data from multiple sockets and adding transport headers for demultiplexing at the receiver.

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

What is demultiplexing?

A

Happens at the receiver/destination host. It uses the deader information of a packet to deliver the received segments to the correct sockets.
The destination IP address is used to get the datagram to the correct host and the destination port number contained in the datagram gets it to the correct socket to be sent.

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

What does an IP datagram contain?

A
  • Source port number
  • destination port number
  • other unspecified header fields
  • the payload or message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain connectionless demultiplexing.

A

It uses UDP sockets.
All the data needed for sending the datagrams is store within the datagram as header lines. The client sents the message to the socket with the address and port number of the destination (The socket implicitly adds a return address and port). When the host receivers the segment, it uses the address and port number to sent it through the socket of that port number to the destination. Due to there being no connection the server extracts the client address and port number sent through the datagram.

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

Explain connection oriented demultiplexing.

A

Uses TCP sockets.
A TCP socket is identified by a 4 tuple value (Source IP and port number, and the destination IP and port number). The receiver uses all four values to sent the segment to the correct socket.

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

Why does UDP exist?

A

For efficiency:

  • no handshaking reduces overhead
  • smaller segment header (only 8 bytes instead of 20)

For simplicity:

  • No connection needed
  • there is no Congestion control required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 4 fields of a UDP header?

A
  1. The port numbers used in demultiplexing
  2. The host address handled by the IP
  3. The length (Total number of bytes in the segment)
  4. A checksum for basic error detection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is the checksum transmitted in UDP?

A

The sender treats the segment contents as a 16 bit integers. It calculates the sum of the segments added together using binary addition. Puts the 1’s compliment of the sum into the checksum field (Makes it the flipped version of the sum answer e.g. 10011011 is the 1s compliment version of 01100100).

The receiver also treats the segment as a 16 bit integer, and also treats the checksum as a 16 bit integer. It also calculates the sum of the checksum and the data. The sum should equal all 1s.if this is true then no errors detected, but if it is false there must have been an error in transmission.

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