ArticleslgStudy

computer science

Bonjour Sleep Proxy

Bonjour Sleep Proxy is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bonjour Sleep Proxy rather than just read about it. In short: Apple's Bonjour Sleep Proxy service is an open source component of zero-configuration networking, designed to assist in reducing power consumption of networked electronic devices. It allows a device providing services, such as file sharing, printer sharing, or remote log-in, to sleep, i.e. enter a low-power mode, while its services remain available, even world-wide, by registering with a sleep proxy server on the lo…

Key takeaways

  • Bonjour Sleep Proxy belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bonjour Sleep Proxy to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bonjour Sleep Proxy from memory before moving on to harder problems.

Reference excerpt

Apple's Bonjour Sleep Proxy service is an open source component of zero-configuration networking, designed to assist in reducing power consumption of networked electronic devices. It allows a device providing services, such as file sharing, printer sharing, or remote log-in, to sleep, i.e. enter a low-power mode, while its services remain available, even world-wide, by registering with a sleep proxy server on the local network. The sleep proxy server continues to both advertise the services on the local network on behalf of the sleep host and listen for incoming connections, whether the services are available only locally or across the Internet. When any device attempts to use any proxied service, the proxy server wakes the sleeping device and the service works as if the sleeping device had remained fully powered. Any device that can act as a sleep proxy server advertises this on all LANs of which it is a part. A device providing network services, such as file sharing, when its services are not actively being used can register its services with an available sleep proxy server and sleep until one of its services is needed. The sleep proxy server continues to advertise the services in Multicast DNS (mDNS) on behalf of the sleeping host. When the sleep proxy server sees an attempt to use any such service it wakes the sleeping host and the service proceeds normally, and in the case of SSH, a server with an active session can register with a proxy, sleep, and be awakened with the next received packet, continuing the same session. Apple refers to the service as Bonjour Sleep Proxy in its support documents. The service uses the Wake on Demand feature, first offered in Mac OS X Snow Leopard.

Details

Address Resolution Protocol and Neighbor Discovery Protocol When a sleep proxy service accepts a request to proxy, it in effect takes over the IP addresses of proxied servers by announcing this through Address Resolution Protocol (ARP) and Neighbor Discovery Protocol (NDP). To claim traffic for the proxied host's IPv4 addresses, it sends gratuitous ARP announcements so that packets addressed to the proxied server go to the proxy instead, and for IPv6 it does the same using the analogous NDP. To maintain the association, it responds on behalf of the sleeping host to ARP and NDP requests. This process effectively maps the IP addresses of proxied servers to a physical port of the proxy server. When a packet arrives, from anywhere on the Internet, for a proxied service, the sleep proxy server wakes the sleeping host and reverses the above process, using ARP and NDP again to re-associate the same IP addresses with the proper machine, and any service proceeds as if the server had not slept. This may appear confusing to network administrators who are not expecting the behaviour of changing MAC addresses.

Wake-on-LAN and magic packets The method by which a sleep proxy server wakes a sleeping host is wake-on-LAN. The network interface of a sleeping host with this capability will wake the machine when it receives a specific series of bits, and a packet containing this pattern is a magic packet. Early implementations of Wake on LAN (WoL) required wired network interfaces. In the wireless case (Wi‑Fi), the wake-up packet is sent via Wireless Multimedia Extensions (WMM). In either case the function must be supported by the network interface. Apple provides instructions for checking compatibility with this feature for Macintosh computers.

Supported services and examples The sleep proxy service is able to advertise any Bonjour-supported services, while the host computer sleeps. Some examples of supported services are:

File sharing: a host supporting the sleep proxy service, which offers file services, may go to sleep as needed. When someone needs to access shared files, the host will wake up automatically. iTunes library sharing: the computer hosting the iTunes library may go to sleep, and will automatically wake when someone wishes to browse the iTunes library from a different PC. Printer sharing: a printer may be connected and shared from a computer supporting sleep proxy service. The computer can go to sleep when not in use, but will wake when needed to service a print job being sent from a different computer. SSH: a computer offering SSH access may go to sleep, and awaken via the sleep proxy service when an SSH login is initiated. Desktop sharing: similar to above examples.

Implementations Implementations on a local area network can be seen with Bonjour Browser.

Apple AirPort Express with firmware version 7.4.1 or 7.4.2 Apple AirPort Extreme with firmware version 7.4.1 or 7.4.2 Apple AirPort Time Capsule Apple TV (all generations) HomePod (2018) HomePod mini (2020) Computers running Mac OS X Snow Leopard act as Bonjour sleep proxy servers when Internet sharing is enabled.

References

External links US 7107442 , see Mosaics tab for figures US 7330986 , see Mosaics tab for figures US 7447757 , see Mosaics tab for figures Fscklog.com: Snow Leopard und 2009er Macs: Wake on WLAN (German, Deutsch) Macrumors.com: A Closer Look at Snow Leopard's Wake on Demand Feature opensource.apple.com: Open-source mDNS implementation including the sleep proxy service UC San Diego: SleepServer: A Software-Only Approach for Reducing the Energy Consumption of PCs within Enterprise Environments 22 June 2010. Usenix 2010. Microsoft Research: Sleepless In Seattle No Longer 22 June 2010. Usenix 2010. Stuart Cheshire has a page describing steps for troubleshooting Sleep Proxy Service

Worked examples

Example 1 — a first encounter with Bonjour Sleep Proxy

Start with the simplest possible case. Write down what Bonjour Sleep Proxy claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bonjour Sleep Proxy before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bonjour Sleep Proxy ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bonjour Sleep Proxy

In research
Bonjour Sleep Proxy appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bonjour Sleep Proxy in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bonjour Sleep Proxy is common in secondary-school and first-year university syllabi. It links to neighbouring topics Apple Inc. software, Computer configuration, Domain Name System, so understanding it makes those chapters shorter.
In everyday life
Look for Bonjour Sleep Proxy outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bonjour Sleep Proxy” →

How to study Bonjour Sleep Proxy in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bonjour Sleep Proxy means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bonjour Sleep Proxy out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bonjour Sleep Proxy in simple terms?

Apple's Bonjour Sleep Proxy service is an open source component of zero-configuration networking, designed to assist in reducing power consumption of networked electronic devices. It allows a device providing services, such as file sharing, printer sharing, or remote log-in, to sleep, i.e. enter a…

Why does Bonjour Sleep Proxy matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bonjour Sleep Proxy?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bonjour Sleep Proxy.

Tags

  • Apple Inc. software
  • Computer configuration
  • Domain Name System
  • Link protocols
  • Network protocols
  • Windows communication and services

Keep exploring