Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Transmission Control Protocol/Internet Protocol (TCP/IP) : IOT Part 28

By Priya October 23, 2018

Transmission Control Protocol (TCP) is a transport layer or routing protocol. The Internet Protocol (IPv4 and IPv6) is a network layer or adaption layer protocol. Often TCP and IP are quoted together as TCP/IP. This quotation actually refers to communication of these two protocols. The TCP and IP are two separate protocols operating at different TCP model layers and OSI levels. 
 
Learn more about different protocols in TCP/IP stack and OSI model architecture from the following tutorial – 
 
IOT Standards and Protocols
 
Representational Image of TCP-IP-Protocol
 
Fig. 1: Representational Image of TCP-IP-Protocol
 
TCP/IP is communication of the two separate protocols – Transmission control Protocol and Internet Protocol. The Internet protocol standard defines the behavior of the packet i.e. it commands packets where to go and how to get there. The Transmission Control Protocol is responsible for synchronous and reliable data transmission over Internet connected Networks. Reliability comes because TCP supports error checking mechanism. The TCP continuously checks the transmitted and received data and if there is any loss in data or manipulation in data occurs, it retransmits the data back. The TCP is a connection-oriented protocol, which means a connection is established and maintained until client and server have finished exchanging the data to each other. Whenever any message/data is sent via TCP/IP protocol, the transmitter gets proper acknowledgement whether the packet is being delivered or not. 
 
The TCP/IP stack has the following features – 
 
• TCP guarantees the ordered data delivery by acknowledgment function.
• Retransmission of lost packets.
• TCP helps to control traffic on the Internet.
• It is best suited whenever a program wants to send a lot of data because TCP does fragmentation of data and sends it in the form of small packets. 
• It supports error control and flow control.
• It supports Multiplexing and De-multiplexing of data.
• It allows to work over heterogeneous networks.
Basic operations under TCP/IP protocol 
 
The basic operations that are executed under TCP/IP protocol are as defined below –
 
1) Reliable Transmission – TCP uses a sequence number to identify each byte of data. Whenever the sender sends the data in the form of bytes, the sequence number is appended as the bytes are received and acknowledgement is sent to the sender with that sequence number to overcome the problem of packet reordering or packet loss. If any packet is not properly acknowledged, the sender again retransmits the data.
 
2) DupACK Based Retransmission – If the sender receives three or more duplicate packets in its acknowledgement, it retransmits that particular packet again. This greatly improves the reliability of data.
 
3) Timeout Based Retransmission – When sender transmits the packet, it set the timer at its end for getting the proper acknowledgment. It waits for that time, if it doesn’t get expected acknowledgement within that interval, it assumes that the packet has been lost and it transmits that packet again. 
 
4) Error Detection – TCP uses checksum mechanism to assure the correctness of data. The Checksum assures that the data which is being sent by the sender has been received by the receiver with no data manipulation.
 
5) Flow Control – It limits the rate at which sender is transmitting the data to guarantee reliable data delivery. The receiver continuously indicates the sender on how much data has been received and at what rate it is receiving.
 
6) Congestion Control – TCP uses a congestion window in the sender side to do congestion avoidance (traffic avoidance). The congestion window indicates the maximum amount of data that can be sent out on a connection without being acknowledged. TCP detects the congestion whenever it does not get the acknowledgement of data in the settable time interval.
 
The TCP/IP Protocol offers the following advantages – 
 
• If there is need of reliable transmission, synchronization and no packet loss data, then TCP/IP protocol should be preferred.
• It automatically breaks up the data into packets.
• It supports a number of routing protocols.
• It is connection oriented client-server architecture which means that connection will be established first before data can flow across the network.
 
However, TCP/IP also has some limitations as follow – 
 
• It is complex to setup and manage.
• It is not best suited for IoT applications as it has more overhead comparison with other protocols. 
• It is slower protocol for continuous data streaming. 
 
Despite certain limitations, the TCP/IP protocol is a popular internet protocol and can be used by IoT devices to connect with a cloud platform. In the next tutorial – TCP/IP based IoT Communication with ThingSpeak Platform, an IOT device will be designed which could publish data to ThingSpeak Platform using TCP/IP protocol.  
 

Filed Under: Tutorials

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe