ArticleslgStudy

computer science

Address space

Address space 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 Address space rather than just read about it. In short: In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, a peripheral device, a disk sector, a physical memory location, a virtual memory location, or another logical or physical entity. Address spaces are created by combining enough uniquely identified qualifiers to make an address unambiguous within the address space.

Address space — main illustration
Address space — illustration

Key takeaways

  • Address space 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 Address space to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Address space from memory before moving on to harder problems.

Reference excerpt

In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, a peripheral device, a disk sector, a physical memory location, a virtual memory location, or another logical or physical entity. Address spaces are created by combining enough uniquely identified qualifiers to make an address unambiguous within the address space. For a person's physical address, the address space would be a combination of locations, such as a neighborhood, town, city, or country. Some elements of a data address space may be the same, but if any element in the address is different, addresses in said space will reference different entities. For example, there could be multiple buildings at the same address of "32 Main Street" but in different towns, demonstrating that different towns have different, although similarly arranged, street address spaces. An address space usually provides (or allows) a partitioning to several regions according to the mathematical structure it has. In the case of total order, as for memory addresses, these are simply chunks. Like the hierarchical design of postal addresses, some nested domain hierarchies appear as a directed ordered tree, such as with the Domain Name System or a directory structure. In the Internet, the Internet Assigned Numbers Authority (IANA) allocates ranges of IP addresses to various registries so each can manage their parts of the global Internet address space.

Examples Uses of addresses include, but are not limited to the following:

Memory addresses for main memory, memory-mapped I/O, as well as for virtual memory; Device addresses on an expansion bus; Sector addressing for disk drives; Various kinds of network host addresses in computer networks; Uniform resource locators in the Internet.

Address mapping and translation

Another common feature of address spaces are mappings and translations, often forming numerous layers. This usually means that some higher-level address must be translated to lower-level ones in some way. For example, a file system on a logical disk operates using linear sector numbers, which have to be translated to absolute LBA sector addresses, in simple cases, via addition of the partition's first sector address. Then, for a disk drive connected via Parallel ATA, each of them must be converted to logical cylinder-head-sector address due to the interface historical shortcomings. It is converted back to LBA by the disk controller, then, finally, to physical cylinder, head and sector numbers. The Domain Name System maps its names to and from network-specific addresses (usually IP addresses), which in turn may be mapped to link layer network addresses via Address Resolution Protocol. Network address translation may also occur on the edge of different IP spaces, such as a local area network and the Internet.

An iconic example of virtual-to-physical address translation is virtual memory, where different pages of virtual address space map either to page file or to main memory physical address space. It is possible that several numerically different virtual addresses all refer to one physical address and hence to the same physical byte of RAM. It is also possible that a single virtual address maps to one, one, or more than one physical address.

See also Addressability Flat memory model Namespace Virtualization

References

Illustrations

Address space: Virtual address space and physical address space relationship
Virtual address space and physical address space relationship

Worked examples

Example 1 — a first encounter with Address space

Start with the simplest possible case. Write down what Address space 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 Address space 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 Address space 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 Address space

In research
Address space 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 Address space 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
Address space is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer architecture, Computing terminology, Data management, so understanding it makes those chapters shorter.
In everyday life
Look for Address space 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 “Address space” →

How to study Address space in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Address space 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 Address space out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Address space in simple terms?

In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, a peripheral device, a disk sector, a physical memory location, a virtual memory location, or another logical or physical entity. Address spaces are created by combining enough uniq…

Why does Address space 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 Address space?

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 Address space.

Tags

  • Computer architecture
  • Computing terminology
  • Data management

Keep exploring