
The Transmission Control Protocol/Internet Protocol (TCP/IP) suite was created by the U.S. Department of Defense (DoD) to ensure that communications could survive any conditions and that data integrity wouldn’t be compromised under malicious attacks.
The Open Systems Interconnection Basic Reference Model (OSI Model) is an abstract description for network protocol design, developed as an effort to standardize networking.
In this article, I will present the differences between the DoD and the OSI models and then provide details about the DoD’s version of TCP/IP.
I will also describe the protocols used at the various layers of the DoD model and provide you with the details of TCP and UDP protocols. Throughout this article you will find useful information concerning the protocol suite of the century: TCP/IP.
So if you’re preparing for your CCENT exam (ICND1: 64-882) or if you’re interested in netowrking, this is one article you don’t want to miss! Fasten your seat belts and have a good ride!
The TCP/IP model is basically a shorter version of the OSI model. It consists of four instead of seven layers. Despite their architectural differences, both models have interchangeable transport and network layers and their operation is based upon packet-switched technology. The diagram below indicates the differences between the two models:

The diagram below shows clearly the way TCP/IP protocol suite relates to the TCP/IP model.

Two protocols: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are defined for transmitting datagrams. We will look at the details of both these protocols as well as their interaction with the upper layer.
TCP is connection-oriented in the sense that prior to transmission end points need to establish a connection first. TCP protocol data units are called segments. The sending and receiving TCP entities exchange data in the form of segments, which consist of a fixed 20-byte header followed by a variable size data field.
TCP is responsible for breaking down a stream of bytes into segments and reconnecting them at the other end, retransmitting whatever might be lost and also organizing the segments in the correct order. The segment size is restricted by the maximum transfer unit (MTU) of the underlying link layer technology (MTU is generally 1500 bytes which is the maximum payload size of the Ethernet).
The image below shows the TCP segment format. The most important fields are explained further on.

Let’s have a look at how a TCP segment is captured by Ethereal network analyzer. The image below shows a request-response message sequence carried over TCP. Notice the fields discussed above: Source Port, Destination Port, Sequence number, Acknowledgement number, Window size and checksum.

UDP protocol consists of fewer fields compared to TCP. The reason for that is because certain data types do not require reliable delivery and extra overhead. Real-time traffic for example, needs to be transported in an efficient way without error correction and retransmission mechanisms.
UDP is considered to be a connectionless protocol. It leaves reliability to be handled by the application layer. All it cares about is fast transmission.
The UDP segment format is presented in the diagram below:

Let’s see how a UDP segment is captured by Ethereal. Notice the small header size.

Choosing the right transport protocol to use depends on the type of data to be transferred. For information that needs reliability, sequence transmission and data integrity — TCP is the transport protocol to use. For data that require real-time transmission with low overhead and less processing — UDP is the right choice.
The following table summarizes the key-characteristics of each one of these protocols. Keep them in mind when choosing the transport protocol for your data.

Our instructor led video training covers the Cisco CCENT Certification and Cisco Networking, including the 64-822 ICND1: Interconnecting Cisco Network Devices Exam. Some of the topics in this training include:
Get your start in Cisco networking — the CCENT certification is your half-way point to your CCNA certification!
Learn more about Cisco CCENT Training Videos — Available Now!
Copyright © Train Signal Inc. All Rights Reserved.
Robert Van Dyke Says:
July 21st, 2008 at 3:08 pm
best whitepaper on TCP/UDP and OSIvsTCP model I have ever seen.
Wow! I have never seen or more practical nor more comprehensive workup!
Definitely a 360 view!
Thanks!
Brajesh Soni Says:
September 5th, 2008 at 12:58 am
Its a nice article and very useful.
could you explain more about NETWORK ACCESS layer-Ethernet, ATM.
Thanks and Regards
Brajesh Soni
aston mushowani Says:
September 16th, 2008 at 7:02 am
thanx for an educative easy to understand paper. networking has never been this easy.thanx for packaging your information in an easy to understand layout and language
student Says:
October 6th, 2008 at 5:50 am
it was really helpfull and i really need to compare osi with tcp/ip thanks for the short but sweeeeeet info.
Manish Says:
June 27th, 2009 at 12:01 am
thanks for such good artical. its really awesome & easy to understand. Good Work Keep it up..
mark Says:
August 16th, 2009 at 7:28 pm
excellent explanations.can’t beat this.
Hozefa Says:
August 20th, 2009 at 3:43 am
Hi Stelios, Article is good for basic clarification / understanding of TCP-IP. Useful for beginners.
XuanThich Says:
September 23rd, 2009 at 7:49 pm
thanks you!
Mullaiselvan. M Says:
November 21st, 2009 at 12:21 am
:-) Simple!. Clear. Thanks
johnson Says:
January 20th, 2010 at 1:18 am
thank you Stelios !
Peter Says:
January 20th, 2010 at 11:56 am
Great article. One of the best I have ever seen on TCP/IP. Keep up the good work. Thank you very much for your help.
mohammad ismail aakhil Says:
January 27th, 2010 at 12:00 am
hats off
excellent article.