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.

01/31/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



No comments
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
The Engineering Leaders Under 40 program identifies and gives recognition to young engineers who...
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.
Sensor-to-cloud interoperability; PID and digital control efficiency; Alarm management system design; Automotive industry advances
Make Big Data and Industrial Internet of Things work for you, 2017 Engineers' Choice Finalists, Avoid control design pitfalls, Managing IIoT processes
Engineering Leaders Under 40; System integration improving packaging operation; Process sensing; PID velocity; Cybersecurity and functional safety
This article collection contains several articles on the Industrial Internet of Things (IIoT) and how it is transforming manufacturing.

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

SCADA at the junction, Managing risk through maintenance, Moving at the speed of data
Flexible offshore fire protection; Big Data's impact on operations; Bridging the skills gap; Identifying security risks
The digital oilfield: Utilizing Big Data can yield big savings; Virtualization a real solution; Tracking SIS performance
click me