Docsity

Computer networks by Farouzan., Cheat Sheet of Computer Networks

Partial preview of the text

Download Computer networks by Farouzan. and more Cheat Sheet Computer Networks in PDF only on Docsity!

Data Communication and Networks

(CSC 313 )

By

Ms. Sadia Zar

Department of Computer Science,

Iqra University, Islamabad

IP Service Model

 Services provided by underlying network: IP - “ best effort ” delivery

 Messages sent from a host, delivered to a host (no distinction between entities sharing a host)  Drops some messages  Reorders messages  Delivers duplicate copies of a message  Limits messages to some finite size  Delivers messages after an arbitrarily long delay

Lecture Outlines

 UDP

 TCP

 SCTP

End-to-End Protocols

End-to-End Protocol Challenge

 Given IP service model

 Provide service model demanded by applications

 Service models to consider

 Connectionless or connection-oriented  Reliable or Unreliable  Congestion Control or not  Flow Control or not  Error Control or not

End-to-End Protocol Challenge: Addressing

 At Link Layer , a frame needs a destination MAC address

 At Network Layer , IP address is needed to deliver data packet (datagram) to any host

 At Transport Layer , port number is required to choose among multiple processes running on the destination host (destination port number is required for delivery and source port number is needed for reply)

End-to-End Protocol Challenge: Addressing

 The server process must define itself with a port number that is not chosen randomly. Well-known port numbers have been decided to be used by servers.

 The client program defines itself with a port number, chosen randomly by transport layer software running on client host. This is ephemeral port number.

Socket Address: the combination of IP address and port number is socket address. Client socket address and Server Socket address

IP Address and Port Number

 Transport layer protocol needs a pair of socket addresses: the client socket address and the server socket address. Four pieces of information are part of transport layer protocols.

Multiplexing and Demultiplexing

End-to-End Protocol Challenges

 The server process must define itself with a port number that is not chosen randomly. Well-known port numbers have been decided to be used by servers.

 The client program defines itself with a port number, chosen randomly by transport layer software running on client host. This is ephemeral port number.

Socket Address: the combination of IP address and port number is socket address. Client socket address and Server Socket address

UDP Header Format

 Length includes 8-byte header and data  Checksum  Uses IP checksum algorithm  Computed on pseudo-header, UDP header and data

Well-known Ports for UDP

Transmission Control Protocol (TCP)

 Service model implements requirements listed earlier

 Multiple connections per host  Guaranteed and in-order delivery  Messages delivered at most once  Arbitrarily large messages  Synchronization between sender and receiver  Flow control

Multiplexing mechanism equivalent to that of UDP

Checksum mechanism also equivalent, but mandatory

TCP Characteristics

Flow control : restricts rate to something manageable by receiver

Congestion control : restricts rate to something manageable by network

Connection-oriented : setup and teardown required

Full duplex

 Data flows in both directions simultaneously  Point-to-point communication

Byte stream abstraction : no boundaries in data