Docsity

Transport Layer: TCP/IP Suite's End-to-End Data Transfer Protocol, Study Guides, Projects, Research of Business Systems

Toggle sidebar
bg1
Transport layer
•In the TCP/IP suite is located between the application layer and the network layer.
•It provides services to the application layer and receives services from the network
layer.
•The transport layer acts as a liaison between a client program and a server program,
a process- to-process connection.
•The transport layer is the heart of the TCP/IP protocol suite; it is the end-to-end
logical vehicle for transferring data from one point to another in the Internet.
5
MBA - 741: MIS - Business Data Communication and Security
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33

Partial preview of the text

Download Transport Layer: TCP/IP Suite's End-to-End Data Transfer Protocol and more Study Guides, Projects, Research Business Systems in PDF only on Docsity!

Transport layer

  • In the TCP/IP suite is located between the application layer and the network layer.
  • It provides services to the application layer and receives services from the network layer.
  • The transport layer acts as a liaison between a client program and a server program, a process- to-process connection.
  • The transport layer is the heart of the TCP/IP protocol suite; it is the end-to-end logical vehicle for transferring data from one point to another in the Internet. 5

Transport layer

6

Port numbers

Port numbers provide end-to-end addresses at the transport layer and allow multiplexing and demultiplexing at this layer. 8

User Datagram Protocol

9

User datagramprotocol

  • Solution a. The source port number is the first four hexadecimal digits (CB84)16, which means that the source port number is 52100. b. The destination port number is the second four hexadecimal digits (000D)16, which means that the destination port number is 13. c. The third four hexadecimal digits (001C)16 define the length of the whole UDP packet as 28 bytes. d. The length of the data is the length of the whole packet minus the length of the header, or 28 āˆ’ 8 = 20 bytes. e. Since the destination port number is 13 (well-known port), the packet is from the client to the server. f. The client process is the Daytime (see Table 24.1) 11

UDP services

  • Process-to-Process Communication
  • Connectionless Services
  • No Flow Control
  • No Error Control except for the checksum
  • Checksum
  • No Congestion Control
  • Encapsulation and Decapsulation
  • Queuing
  • Multiplexing and Demultiplexing 12

UDP services

The protocol field is added to ensure that the packet belongs to UDP, and not to TCP. The value of the protocol field for UDP is 17. If this value is changed during transmission, the checksum calculation at the receiver will detect it and UDP drops the packet. It is not delivered to the wrong protocol. 14

UDP services

  • Optional Inclusion of Checksum
  • The sender of a UDP packet can choose not to calculate the checksum. In this case, the checksum field is filled with all 0s before being sent.
  • In the situation where the sender decides to calculate the checksum, but it happens that the result is all 0s, the checksum is changed to all 1s before the packet is sent. 15

Transmission control protocol

  • Transmission Control Protocol (TCP) is a connection-oriented, reliable protocol.
  • TCP explicitly defines connection establishment, data transfer, and connection teardown phases to provide a connection-oriented service.
  • TCP uses a combination of GBN and SR protocols to provide reliability.
  • To achieve this goal, TCP uses checksum (for error detection), retransmission of lost or corrupted packets, cumulative and selective acknowledgments, and timers. 18

TCP services

  • Process-to-Process Communication
  • Stream Delivery Service
  • Full-Duplex Communication
  • Multiplexing and Demultiplexing
  • Connection-Oriented Service
  • Reliable Service
  • Stream Delivery Service
  • TCP, allows the sending process to deliver data as a stream of bytes and allows the receiving process to obtain data as a stream of bytes.

TCP services

  • Stream Delivery Service
    • Segments 22

TCP features

  • Numbering System
    • Byte Number
      • TCP numbers all data bytes (octets) that are transmitted in a connection. Numbering is independent in each direction.
      • The numbering does not necessarily start from 0. Instead, TCP chooses an arbitrary number between 0 and 232 āˆ’ 1 for the number of the first byte.
    • Sequence Number
      • TCP assigns a sequence number to each segment that is being sent. The sequence number, in each direction, is defined as follows: 1. The sequence number of the first segment is the ISN (initial sequence number), which is a random number. 2. The sequence number of any other segment is the sequence number of the previous segment plus the number of bytes (real or imaginary).

TCP segment

25

TCP segment

26