Master–slave (technology)

(Redirected from Master-slave protocol)

In engineering, master–slave is a relationship between two systems in which one controls the other. In some cases one master controls just one slave system, but in others there are multiple slave systems controlled by the same master. Sometimes the master is a different kind of system than the slave, but sometimes there are multiple similar systems and one of them is designated the master in order to centralize external (i.e. user) control of the collection.[1]

Due to its connection to slavery, the terminology is a subject of controversy and has been replaced with alternative terms in some cases.[2][3][4]

Examples

edit

A master clock provides time signals used to synchronize one or more slave clocks as part of a clock network; a slave clock receives and displays the time from a master; though it may be able to keep time itself if the master is not working.

A serial peripheral interface (SPI) bus typically has a single master controlling multiple slaves.[5][6][7][8]

I2C and I3C are also an example of master-slave technology.

Modbus uses a master device to initiate connection requests to slave devices.

An edge-triggered flip-flop can be created by arranging two gated latches in a master–slave configuration. It is so named because the master latch controls the slave latch's value and forces the slave latch to hold its value, as the slave latch always copies its new value from the master latch.

In photography, secondary, or slave, flash units are connected to a master unit to provide synchronized lighting.

Parallel audio duplication often entails multiple recording devices (i.e. for cassette tape or compact disc) linked together so that operating the controls of a master device triggers the same commands on slave devices.

Railway locomotives operating in the same train (for example, to pull a load too heavy for a single locomotive) may be configured for master–slave operation with all but one of the locomotives controlled from the first. See Multiple-unit train control.

In a hydraulic system, a master cylinder is a control device that converts force into hydraulic pressure that drives movement in a slave cylinder at the other end of the hydraulic line. A common application is a vehicle brake system.

Non-examples

edit

The term master is used in many technology contexts that do not refer to a relationship of control. Master may be used to mean a copy that has more significance than other copies in which case the term is an absolute concept; not a relationship. Sometimes the term master-slave is used in contexts that do not imply a controlling relationship.

In database replication, the master database is the authoritative source. A replica database, sometimes called a slave, is synchronized to it but is not controlled by it.

A Parallel ATA (aka IDE) hard drive interface supports two hard drives on a cable, which are designated master and slave. The distinction is required by the interface even though neither drive has control or priority over the other.

History

edit

The master–slave terminology was first used in 1904.[9]

The terminology was used in 1988 for RFC 1059 and in 1997 for RFC 2136, related to the domain name system. In 2020, Paul Vixie commented on his choice of words:

I introduced the master/slave terminology in RFC 2136, because I needed names for the roles in an AXFR/IXFR transaction, and the zone transfer hierarchy could be more than one layer deep, such that a server might initiate some AXFR/IXFR's to the "primary master" but then respond to AXFR/IXFR's from other servers. In retrospect I should have chosen the terms, "transfer initiator" and "transfer responder". However, the hydraulic brake and clutch systems in my car had "master cylinders" and "slave cylinders", and so I did not think I was either inventing a new use for the words "master" and "slave", or that my use of them for this purpose would be controversial.[10]

Said hydraulic brakes for the automotive industry were patented in 1917 by Malcolm Loughead.[11] The term slave cylinder was used in other patent applications, including one by Robert Esnault-Pelterie, published in 1919.[12]

Controversy

edit

Media analytics company Global Language Monitor placed master/slave first in their annual list of politically charged language for 2004.[13] The Black Lives Matter movement in the United States sparked renewed discussion and terminology changes in 2020.[14] But, some argue that a terminology change is superficial, likening it to performative activism. [15][3] None-the-less, various alternate and generally context sensitive terms have been proposed including:[14][3][16][17][18][19][20][21][22]

  • primary-secondary
  • main-replica or subordinate
  • initiator-target
  • requester-responder
  • controller-device
  • host-worker or proxy
  • leader-follower
  • director-performer
  • boss-worker
  • primary-replica
  • principal-agent
  • controller-worker
  • primary-subordinate

Notable events

edit

In 2003, after receiving a discrimination complaint from a county employee, the County of Los Angeles in California asked that manufacturers, suppliers and contractors stop using master and slave terminology on products.[23][24] Following complaints, the County of Los Angeles issued a statement saying that the decision was "nothing more than a request".[23]

In 2018, after a heated debate, developers of Python replaced the term.[4] Python switched to main, parent, and server; and worker, child, and helper, depending on context.[4][25] The Linux kernel adopted a similar policy to use more specific terms in new code and documentation.[17][26]

Google's developer style guide recommends avoiding the term master in software documentation, especially in combination with slave.[27][when?]

In 2020, GitHub renamed the default master git branch to main.[14]

See also

edit

References

edit
  1. ^ "Master–slave terminology alternatives you can use right now". TheServerSide.com.
  2. ^ Ellis, Leonard (2020-06-18). "It's Time for IEEE to Retire 'Master / Slave'". EE Times. Retrieved 2020-09-26.
  3. ^ a b c "Tech Confronts Its Use of the Labels 'Master' and 'Slave'". Wired. ISSN 1059-1028. Retrieved 2020-07-14.
  4. ^ a b c "'Master/Slave' Terminology Was Removed from Python Programming Language". Vice.com. September 13, 2018. Retrieved 2020-07-14.
  5. ^ Dhaker, Piyu (2018). "Introduction to SPI Interface". Analog Dialogue. Archived from the original on 2023-05-25. Retrieved 2023-07-21.
  6. ^ Open Source Hardware Association. "A Resolution to Redefine SPI Signal Names".
  7. ^ Nathan Seidle. "A redefinition of SPI signal names".
  8. ^ Utah State University ECE 3700 "SPI Chip-to-Chip Communication"
  9. ^ Eglash, Ron (2007). "Broken Metaphor: The Master–Slave Analogy in Technical Literature". Technology and Culture. 48 (2): 360–369. doi:10.1353/tech.2007.0066. S2CID 1358719.
  10. ^ Re: DNSOP Question regarding RFC 8499
  11. ^ Loughhead, Malcolm, "Braking apparatus, " U.S. Patent no. 1,249,143 (filed: 1917 January 22; issued: 1917 December 4).
  12. ^ "Hydraulic power transmission installation".
  13. ^ 'Master/slave' named most politically incorrect term, Seattle PI, December 2, 2004, "We found 'master/slave' to be the most egregious example of political correctness in 2004," said Paul JJ Payack, president of The Global Language Monitor.
  14. ^ a b c Cimpanu, Catalin (14 June 2020). "GitHub to replace "master" with alternative term to avoid slavery references". ZDNet. Retrieved 3 November 2022.
  15. ^ Shankland, Stephen (2020-06-10). "Tech terms face scrutiny amid anti-racism efforts". CNET. Retrieved 2020-07-06.
  16. ^ "I2C-bus specification Rev 7" (PDF). NXP Semiconductors. October 1, 2021. Archived from the original (PDF) on April 26, 2021. Retrieved June 4, 2022.[non-primary source needed]
  17. ^ a b Cimpanu, Catalin. "Linux team approves new terminology, bans terms like 'blacklist' and 'slave'". ZDNet.
  18. ^ "A Resolution to Redefine SPI Signal Names". Open Source Hardware Association. 7 January 2022.
  19. ^ Stoicescu, Alin. "Getting Started with Serial Peripheral Interface (SPI)". Microchip Technology. Archived from the original on 2023-12-21. Retrieved 2023-12-21.
  20. ^ "Leader and Followers". martinfowler.com. Retrieved 2024-04-11.
  21. ^ "Documentation: AIX version 7.1: Master/Slave Model". ibm.com. 2020. Retrieved 30 October 2024.
  22. ^ "Microsoft Writing Style Guide: master/slave". microsoft.com. 24 June 2022. Retrieved 30 October 2024.
  23. ^ a b "'Master' and 'slave' computer labels unacceptable, officials say". CNN. November 26, 2003.
  24. ^ Master/Slave, Snopes, 9 December 2007
  25. ^ "Issue 34605: Avoid master/slave terminology - Python tracker". bugs.python.org. Retrieved 2020-07-13.
  26. ^ Microsoft (June 24, 2022). "master/slave". Microsoft Style Guide.
  27. ^ "Google Developer Style Guide".