Carrier sense multiple access with collision detection

Wireless tutorial: Carrier sense multiple access with collision detection (CSMA/CD) is a logical and temporary connection used in wired networks to allow two transmitting stations to achieve error-free communication across the shared medium.

02/01/2015


Industrial Wireless Tutorials – a new Control Engineering blogCarrier sense multiple access with collision detection (CSMA/CD) is the method used in wired networks to allow two transmitting stations to achieve error-free communication across the shared medium. It is based on the IEEE 802.3 standard that has become the basis for Ethernet. However, it is not a hardwired, dedicated connection between the stations and should not be construed as such. The connection is logical and temporary, and is set up exclusively for the purpose of transmitting data between any two attached stations. As the number of attached stations increases, contention for the use of the medium increases, eventually resulting in simultaneous transmissions by multiple stations. These are called collisions and result in corrupted or truncated data frames.

The first step in data transmission onto the network is when data is passed down the stack from the network layer (layer 3) to the logical link sublayer of the data link layer (Layer 2); the logical link control (LLC) requests the transmission and passes the data to the medium access control sublayer of the data link layer. The media access control (MAC) sublayer attaches, or encapsulates, the packet with a preamble and a field called the start frame delimiter (SFD), which indicates the beginning of what is now called a frame. The MAC sublayer also appends source and destination addresses, padding, and other data, such as a frame check sequence, to the frame to ensure proper frame length and error control, respectively.

Figure 1: Example of carrier sense multiple access with collision detection (CSMA/CD) transmission. Courtesy: Daniel E. Capano, Diversified Technical Services

The frame is sent to the physical layer, where it is converted to the proper signaling method for the particular attached medium being used. Prior to putting the data onto the medium, the physical layer monitors the medium for any traffic (carrier sense); hearing none, it begins the physical transmission process. The signaling component of the physical layer turns the frame data into bits that are put onto the medium as electrical signals. The initial stage of the transmission, called the collision window, is the period of time within which a station determines if the medium is free and whether another station has begun to transmit.

If no collision occurs, then the station successfully acquires the medium and completes its transaction. Subsequent collisions are avoided because all other stations, if operating properly, have determined the medium is in use through carrier sense. At the receiving station, the physical layer receives the signal (frame), synchronizes with the frame preamble, and passes the data to the data link layer. If the frame is addressed to that station, the encapsulation data is stripped off and sent up the stack in the reverse order of transmission. If the frame is intended for another station, it is ignored or discarded. Being a broadcast network, all stations hear all transmissions.

Figure 2: Example of carrier sense multiple access with collision detection (CSMA/CD) data being received. Courtesy: Daniel E. Capano, Diversified Technical Services

If two stations are transmitting at the same time during the collision window, a collision occurs between the two transmissions. The transmitting station detects the collision and turns on the collision detect signal, which is detected by the MAC sublayer; this initiates the collision handling response. The transmitting station ceases the transmission of data and transmits a Jam signal onto the network. This is a unique bitstream signaling to all stations on the medium that a collision has occurred. The Jam signal is transmitted long enough to allow stations party to the transmission to be aware of the collision.

Daniel E. Capano, owner and president, Diversified Technical Services Inc. of Stamford, Conn., is a certified wireless network administrator (CWNA) and writes posts for the Control Engineering blog, Industrial Wireless Tutorials.On a normally functioning network, all stations back off before attempting additional transmissions. The transmitting station waits an arbitrary amount of time, called the back-off time, and attempts retransmission. If another collision occurs, then the back-off time is increased until eventually the transmission is successful or an upper limit on back-off time is reached and the transmission attempt is abandoned; this usually occurs if the medium has failed or the network is loaded beyond design capacity.

- Daniel E. Capano, owner and president, Diversified Technical Services Inc. of Stamford, Conn., is a certified wireless network administrator (CWNA). He can be reached at dcapano@sbcglobal.net. Edited by Chris Vavra, production editor, CFE Media, Control Engineeringcvavra@cfemedia.com.

ONLINE extras

www.controleng.com/blogs has other wireless tutorials from Capano on the following topics:

Medium arbitration

Modulation techniques

Characteristics of IEEE 802.11n and 802.11ac

www.controleng.com/webcasts has wireless webcasts, some for PDH credit.

Control Engineering has a wireless page



The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by Control Engineering subscribers. Vote now (if qualified)!
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Maximize ROI with integrated control system approach; Microcontrollers vs. PLCs; Power quality; Accelerate and rewire IIoT; Traits for excellent engineers
HMI effectiveness; Distributed I/O; Engineers' Choice Award finalists; System Integrator advice; Inside Machines
Women in engineering; Engineering Leaders Under 40; PID benefits and drawbacks; Ladder logic; Cloud computing
Programmable logic controllers (PLCs) represent the logic (decision) part of the control loop of sense, decide, and actuate. As we know, PLCs aren’t the only option for making decisions in a control loop, but they are likely why you’re here.
This digital report explains how plant engineers and subject matter experts (SME) need support for time series data and its many challenges.
This article collection contains several articles on how advancements in vision system designs, computing power, algorithms, optics, and communications are making machine vision more cost effective than ever before.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Control room technology innovation; Practical approaches to corrosion protection; Pipeline regulator revises quality programs
Cloud, mobility, and remote operations; SCADA and contextual mobility; Custom UPS empowering a secure pipeline
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me