• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Advertise
  • Subscribe

Test & Measurement Tips

Oscilloscopes, electronics engineering industry news, how-to EE articles and electronics resources

  • Oscilloscopes
    • Analog Oscilloscope
    • Digital Oscilloscope
    • Handheld Oscilloscope
    • Mixed-signal Oscilloscope
    • PC-based Oscilloscopes – PCO
  • Design
  • Calibration
  • Meters & Testers
  • Test Equipment
  • Learn
    • eBooks/Tech Tips
    • FAQs
    • EE Training Days
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Video
    • EE Videos
    • Teardown Videos
  • Resources
    • Design Guide Library
    • Digital Issues
    • Engineering Diversity & Inclusion
    • Leap Awards
    • White Papers
  • Subscribe
You are here: Home / New Articles / TCP packet and IP packet switching

TCP packet and IP packet switching

October 26, 2015 By David Herres 1 Comment

Packet switching is the fundamental protocol that lets the Internet and Local Area Networks function in their decentralized, user-directed, constantly evolving ways. The idea is to group data to be transmitted into discrete blocks known as packets. Because information is confined to discrete regions that have defined beginnings and endings, they can coexist without mixing or mutual interference. This greatly boosts the efficiency, accuracy and reliability of the transmissions through diverse media.

There are various protocols, but the basic idea is that packets, composed of headers and payloads, are transferred and reassembled. As for the Internet, websites are conveyed in the form of HTML text files, with graphics sent separately and placed correctly thanks to browsers.

Packet switching was employed at the inception of the Internet and was originally conceived as a means by which the network, used for military connections, could survive attack. In our post-cold war environment with terrorism threats, this attack hardening is as relevant as ever. Packets originate and flow through multiple channels and the process is totally decentralized. The destruction of one or even many locations can never paralyze our network connectivity. Another advantage of packet switching is that limited network resources are used to better advantage because there’s no requirement for continuous open connections.

There are two types of packet switching, connectionless (datagram switching) and connection-oriented (virtual circuit switching). The difference is in how address information is conveyed.

IP packet makeup
The IP protocol provides fragmentation and reassembly of datagrams and error reporting. This happens because the packet contains a 16-bit identification field that identifies the current datagram and helps reconstruct datagram fragments.

In connectionless packet switching, Ethernet and Internet Protocol (IP) are the two dominant technologies. Each packet, in its header, contains complete addressing information. For this reason, it is possible for the various packets to be conveyed via different routes, some quite circuitous. A consequence is that the packets are likely to arrive out of order. Pertinent information is contained in the header so the reassembled data makes sense at the receiving end.

The other packet-switching mode, connection-oriented transmission, incorporates a connection identifier rather than an address in each header. This removes some bulk from the transmitted data packets (in the headers) but it necessitates a preliminary setup phase before packet transmission can begin.

Each packet has two parts, control information and content intended for the recipient, commonly referred to as the payload. Control information, not necessarily seen by the human recipient, contains instructions for the network to deliver user data. Included are network addresses for the source and destination. There are also error detection codes and sequencing information. This type of data is contained in the packet headers and trailers, which as the names imply, precede and follow the payload.

It is possible for a complete packet containing header and trailer to be carried as the payload in another packet, inserted between higher-level headers and trailers.

Communication cannot take place between two or more electronic devices unless they agree on a protocol. Internet Protocol and Transmission Control Protocol (TCP) are examples. These two together comprise a significant part of the Internet Protocol Suite, and they are commonly referred to as TCP/IP.

The World Wide Web (www), email, File Transfer Protocol (FTP), secure shell, peer-to-peer file sharing and streaming media applications all make use of TCP. It emphasizes reliability over speed. That is why users experience a degree of latency. But it is a small price to pay for the knowledge that in the huge Internet environment a great deal of connectivity and file transfer takes place all the time with relatively little signal corruption, data loss or dropout. That is due to TCP’s great ability to seek out and correct errors. What makes this work is packet transmission.

TCP packet makeup
TCP moves data in a continuous, unstructured byte stream. The 32-bit sequence number field specifies the number assigned to the first byte of data in the current message. It can also be used to identify an initial sequence number to be used in the upcoming transmission.
The 32-bit acknowledgment number field can contain the value of the next sequence number that the sender of the segment is expecting to receive. The sequence number refers to the stream flowing in the same direction as the segment, while the acknowledgment number refers to the stream flowing in the opposite direction from the segment.

Important parts of the TCP protocol are establishment and termination of the connection. TCP uses a three-way handshake to establish the connection. For a client to connect to a server, first the server listens at a port prior to establishing a passive open. Then, the client creates an active open. The connection termination involves a four-way handshake. Here again each side participates in accordance with the protocol.

To function properly, TCP utilizes ordered data transfer, retransmission of lost packets, error-free data transfer, flow control and congestion control. These constituent elements, agreed upon in advance, are integral parts of TCP and facilitate our reliable Internet.

Filed Under: New Articles

Reader Interactions

Comments

  1. Maharaja says

    April 21, 2021 at 2:30 am

    Tq
    My doubt are cleared

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Featured Contributions

Why engineers need IC ESD and TLP data

Verify, test, and troubleshoot 5G Wi-Fi FWA gateways

How to build and manage a top-notch test team

How to use remote sensing for DC programmable power supplies

The factors of accurate measurements

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

EE TRAINING CENTER

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

RSS Current Electro-Tech-Online.com Discussions

  • KiCad custom symbol definition correct approach
  • Measuring controller current output with a meter
  • restarting this Christmas project
  • Anyone In The US Ordered From AliExpress Recently?
  • My Advanced Realistic Humanoid Robots Project

Footer

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips

Test & Measurement Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. 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