Parameterization of clients Generality for client software e.g. TELNET protocol can use a port number as an input parameter Fully parameterized client application allows more input parameters When designing client application, include parameters that allow the user to fully specify the destination machine and port number CSIE NTUT TANAN
CSIE, NTUT, TAIWAN 11 Parameterization of clients • Generality for client software e.g. TELNET protocol can use a port number as an input parameter • Fully parameterized client application allows more input parameters • When designing client application, include parameters that allow the user to fully specify the destination machine and port number
Connectionless v.s. connection- Oriented Servers TCP/P provides two types of interaction between client and server Connectionless style - UDP Connection-oriented style The distinction is critical TCP CSIE NTUT TANAN
CSIE, NTUT, TAIWAN 12 Connectionless v.s. ConnectionOriented Servers • TCP/IP provides two types of interaction between client and server: – Connectionless style – Connection-oriented style • The distinction is critical TCP UDP
Connectionless v.s. connection- Oriented servers ·TCP full reliability s verifying the data arrives automatically retransmits segments checksum over the data data arriving in order no duplicated packets control the flow reporting the underlying network problem to sender CSIE NTUT TANAN
CSIE, NTUT, TAIWAN 13 Connectionless v.s. ConnectionOriented Servers • TCP: * full reliability * verifying the data arrives * automatically retransmits segments * checksum over the data * data arriving in order * no duplicated packets * control the flow * reporting the underlying network problem to sender
Connectionless v.s. connection- Oriented Servers UDP no guarantees about reliable delivery e software contains code to detect and correct errors occurred by transmission s work well when the underlying network running well aware of testing when using uDp CSIE NTUT TANAN
CSIE, NTUT, TAIWAN 14 Connectionless v.s. ConnectionOriented Servers • UDP * no guarantees about reliable delivery * software contains code to detect and correct errors occurred by transmission * work well when the underlying network running well * aware of testing when using UDP
Connectionless v.s. connection- Oriented Servers TCP is preferable to UDP TCP simplify programming TCP relieves the programmers of responsibility for detecting and correcting errors Adding reliability to UDP is a nontrivial work CSIE NTUT TANAN
CSIE, NTUT, TAIWAN 15 Connectionless v.s. ConnectionOriented Servers • TCP is preferable to UDP – TCP simplify programming – TCP relieves the programmers of responsibility for detecting and correcting errors – Adding reliability to UDP is a nontrivial work