TCP : Reliable transmission of data between two hosts,Exchange of acknowledge takes place for reliable transmission. We can easily set the timeout for the transmission.Application should not have to put any effort to check data reliability.

UDP : Unreliable flow of data.Some mechanism in application layer has to be implemented to check reliability.

Application layer is mainly at user level and other three layers are at kernel layer.

when one or more computers connected together it forms LAN. When two or more networks are connected together it is called as Inter Network or Internet. The hardware which is used to connect two networks is called as Router. Example of network are Ethernet, Token ring, FDDI ( Fiber distributed data Interface). Router connects Network at Network layer but Bridge connect different networks at datalink layer.Bridges makes appearance of multiple network to upper layer as same Network.

Internet Address

Internet address contains 4 bytes. Internet address is divided into 5 classes.Easy way to remember is shift one bit from the left to right by adding 1's.

Network always contains one Client and one Server.Client send request and server process the request in 2 ways either iterative or concurrent way.

Iterative one request at a time.Concurrent Many request at a time.

Port Numbers are mainly used to identify the type application we are working. The well known port numbers are from 0 to 1023. for eg : ftp on port 21, telnet 23,tftp on 69 etc.The well known port numbers of TCP/IP are managed by Internet Assigned numbers Authority.

Epemeral ports: These are port numbers which can be used by Applications in their hosts. Every Application port must be unique.Most TCP/IP applications use epemeral ports in the range from 1024 to 5000.Some examples of reserved ports are:echo = 7 ( server sends whatever client sends).discard = 9 ( Server discards whatever client sends).daytime = 13 (server sends date and time to client in human readable form).

Internet = collection of hosts around the world that communicate using TCP/IPinternet = multiple networks connected together using common protocol suite.