1. Home
  2. Explore
  3. Computer Science
  4. Networking Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Networking Basics

Computer Networking Fundamentals

Computer networking enables devices to exchange data locally and across the world. A message sent from a phone may travel through wireless signals, network interfaces, Ethernet or other local technologies, routers, long-distance links, and many independent networks before reaching its destination.

Networking can be understood progressively:

  1. Background concepts: services, protocols, and ports

  2. Local area networking: media, network interface cards, hubs, MAC addresses, Ethernet frames, collisions, and broadcasts

  3. Wide area networking: IP addresses, packets, routers, and WAN links

  4. The Internet: interconnected networks, Internet service providers, backbones, and last-mile connections


Background Concepts

A Practical Networking Scenario

A useful example is a business called Techno DJ:

  • The business owns the domain technodj.com.

  • A website will showcase the business and its music.

  • Customers will install an application on their computers.

  • The application will request a list of available songs.

  • Customers will stream songs from a server.

  • An older desktop computer will initially be reused as the server.

  • Two programs are required:

    • A client application installed on customer devices

    • A server service that provides song information and streams music

This scenario demonstrates that networking involves more than simply connecting cables. Devices need services that perform useful functions, rules that govern communication, and addressing systems that identify destinations.


Network Services

A network service is a program running on a device that provides functionality to other devices over a network.

What Is a Service?

A computer runs many programs at different times:

  • Some programs start when the computer boots.

  • Others start when a user logs in.

  • Some launch only when the user opens an application.

  • Programs may run under a particular user account, a system account, or a service account.

Regular applications are often tied to a user session. This creates problems when a program needs to:

  • Run before anyone logs in

  • Continue running when no user is logged in

  • Start automatically at system startup

  • Run under a system or dedicated account

  • Respond to requests without requiring a person to launch it

A service solves these problems by running in the background and managing itself according to its configuration.

Windows Services

Windows provides a Services console that lists programs configured to run as services. Information commonly shown includes:

  • Service name and description

  • Current status, such as running or stopped

  • Startup type

  • Account used to run the service

Common startup configurations include:

  • Manual: the service starts only when explicitly triggered.

  • Automatic: the service starts during system startup.

  • Automatic with delayed start: the service starts automatically, but after a delay.

  • Disabled: the service cannot start until enabled.

Many services run even though the user never manually launched them.

Services on Linux and Unix

Linux and Unix systems use a similar concept. Background service programs are traditionally called daemons.

A daemon:

  • Runs in the background

  • Usually does not require an interactive user

  • Waits for requests or performs an ongoing system task

  • Can start automatically during system initialization

What Makes a Service a Network Service?

A network service is a background service that responds to requests from other devices across a network.

For example:

  • A web server responds to browser requests.

  • A DHCP server provides IP configuration.

  • A music-streaming service sends audio data to a client application.

  • A remote-access service accepts remote login or administration requests.

The server can respond automatically because the service is already running.


Example: DHCP

DHCP, or Dynamic Host Configuration Protocol, automatically provides network configuration to client devices.

When a device joins a network, it generally needs an IP address before it can communicate effectively. The basic interaction is:

  1. The client starts or connects to the network.

  2. The DHCP client requests an IP address.

  3. A DHCP server receives the request.

  4. The DHCP server provides an IP address and often additional settings.

  5. The client configures its network interface.

In this relationship:

  • DHCP client: runs on the device requesting configuration

  • DHCP server: provides IP addresses and related network information

  • Network service: the DHCP server program that performs the address-assignment function

The DHCP client may appear as a service on a Windows computer, while the DHCP server runs on a device responsible for assigning addresses.


Example: Web Services

When a user opens Chrome, Firefox, Safari, Edge, or another browser and visits a website, the browser acts as a client application.

The general interaction is:

  1. The user launches the browser.

  2. The browser connects to a destination website.

  3. A web service running on the remote server receives the request.

  4. The web service sends web content back to the browser.

  5. The browser presents the content in a human-readable format.

Common web-server technologies include:

  • Apache: widely used web-server software, commonly associated with Linux and Unix systems

  • IIS: Microsoft’s web-server platform for Windows

  • Other web-server programs that implement the necessary web protocols

The client and server may use entirely different platforms. For example:

  • Windows client communicating with a Linux server

  • macOS or iPhone communicating with a Unix-based server

  • Android phone communicating with a Windows, Linux, or cloud server

Common communication rules allow these different systems to interoperate.


Network Protocols

A network protocol is a defined set of rules governing communication between devices.

Protocols are necessary because devices may differ in:

  • Operating system

  • Hardware

  • Application software

  • Manufacturer

  • Physical network connection

  • Data-processing methods

A browser, phone, server, and router can communicate because they follow compatible protocols.

What Protocols Define

A protocol may specify:

  • How communication begins

  • The order in which messages are exchanged

  • The format of each message

  • How devices identify one another

  • How data is divided into sections

  • Whether data is delivered all at once or in pieces

  • How errors are detected or handled

  • How the receiver interprets the data

Example: Music Application Protocol

The Techno DJ client application might communicate with its server as follows:

  1. The client establishes communication with the server.

  2. The client sends a request for a list of songs.

  3. The server replies with the available songs.

  4. The client displays song names, artists, albums, and other information.

  5. The client requests a particular song.

  6. The server streams the song data to the client.

The actual transmitted data is not a visually formatted list. At the lowest level, it consists of bits represented as ones and zeros. Protocol rules determine how those bits should be interpreted.

For example, a song record might include:

  • Song title

  • Artist

  • Album

  • Album artwork

  • Lyrics

  • Audio-streaming information

Without an agreed message format, a receiver could confuse the song title with the album name or interpret fields in the wrong order.

Protocol Layers

Communication usually involves multiple protocols working together. A web request, for example, may rely on:

  • An application-level protocol

  • A transport protocol

  • An Internet-layer protocol

  • A local network protocol

  • A physical signaling technology

These protocols form layers, with each layer handling a particular part of communication. Applications generally use established protocols rather than inventing every rule from scratch.


Network Ports

A network port is a logical number used to identify the service or application associated with network traffic on a device.

A server may provide several services simultaneously:

  • Website delivery

  • Music-list requests

  • Music streaming

  • Remote administration

  • File sharing

  • Database access

The server needs a way to determine which service should receive each incoming connection. Port numbers provide that distinction.

Example Port Assignments

A Techno DJ server could conceptually assign different services to different ports:

  • Web service: port 80 or 443

  • Music-list application: another assigned port

  • Streaming service: another assigned port

  • Remote-management service: another assigned port

When traffic reaches the server, the destination port helps the operating system deliver it to the correct service.

Common Web Ports

  • Port 80: commonly used for HTTP, traditionally unencrypted web traffic

  • Port 443: commonly used for HTTPS, encrypted web traffic

Modern websites commonly use HTTPS on port 443 to protect data in transit.

Port Number Ranges

Port numbers range from 000 through 65,53565{,}53565,535 and are commonly grouped as follows:

Well-Known Ports

  • Range: 000–1,0231{,}0231,023

  • Reserved for widely used, standardized services

  • Examples include HTTP on port 80 and HTTPS on port 443

Registered Ports

  • Commonly associated with the range 1,0241{,}0241,024–49,15149{,}15149,151

  • Intended for applications and services that may register port assignments

  • In practice, software sometimes uses ports in this range without formal registration

Dynamic, Private, or Ephemeral Ports

  • Commonly associated with the range 49,15249{,}15249,152–65,53565{,}53565,535

  • Often used temporarily by client applications for outgoing connections

  • Usually selected automatically by the operating system


Local Area Networks

A local area network, or LAN, connects devices within a limited local area so they can communicate and share services.

A LAN may connect:

  • Desktop computers

  • Laptops

  • Phones

  • Printers

  • Servers

  • Access points

  • Other network-enabled devices

A LAN is useful for communication within a home, office, building, campus, or similarly bounded location.


Network Media

Network media is the physical or wireless method used to carry signals between devices.

There are three broad methods for transmitting data:

  1. Electrical signals through a conductive cable

  2. Radio signals through the air

  3. Light signals through open space or fiber-optic cable

Copper and Other Conductive Cables

A copper cable can carry electrical signals. In a simplified binary model:

  • No signal or electrical activity represents a binary 000.

  • The presence of a signal represents a binary 111.

The exact voltage is not the essential concept in this simplified model. The communicating devices follow a signaling standard that determines how electrical changes represent data.

Radio Signals

Wireless networking uses radio waves. Because radio is a waveform rather than a simple on-or-off wire signal, the network must manipulate properties of the wave to represent binary information.

Wireless communication requires methods for:

  • Encoding data into radio signals

  • Sending the signals through the air

  • Receiving and interpreting the signals

  • Converting them back into digital information

Light Signals

Light can also carry information. A flashlight could represent binary data by:

  • Light off: binary 000

  • Light on: binary 111

A pattern of flashes could encode a message, similar to Morse code:

  • A short flash represents a dot.

  • A longer flash represents a dash.

Computer networks transmit light much more rapidly and systematically than this example.

Fiber Optics

Fiber-optic cables carry data as pulses of light through a thin fiber.

Important characteristics include:

  • Fiber can carry light over long distances.

  • Fiber often supports high data rates.

  • The fiber is smaller and more fragile than typical Ethernet copper cable.

  • Glass fiber must not be bent beyond its specified bend radius.

  • Plastic fiber exists, but many high-performance fiber-optic cables use glass.

  • A network interface must convert between digital data and optical signals.

The three media types have different strengths and weaknesses involving speed, distance, cost, interference, installation, and physical durability.


Network Interface Cards

A network interface card, or NIC, is the hardware component that connects a computer to a network and translates digital data into signals suitable for the selected network medium.

Computers process data as binary values, but network media may use:

  • Electrical signals

  • Radio waveforms

  • Light pulses

The NIC performs the necessary conversion in both directions:

  1. Converts digital data into a physical or wireless signal for transmission

  2. Receives an incoming signal

  3. Converts that signal back into digital data

Physical and Integrated NICs

Historically, a network interface was often a separate expansion card inserted into a computer’s motherboard.

Modern computers commonly integrate network interfaces directly into the motherboard or system board.

Examples include:

  • Built-in Ethernet ports for copper cables

  • Built-in wireless interfaces

  • Separate wireless cards inside laptops

  • Bluetooth interfaces

  • Fiber-optic interfaces in appropriate equipment

Even when the hardware is integrated, it is still commonly called a NIC.

Network Interface Software

Operating systems display network interfaces as software-configurable connections. A computer may show several interfaces, such as:

  • Ethernet

  • Wi-Fi

  • Bluetooth

  • Virtual network adapters

  • Multiple physical Ethernet interfaces

Interface details may include:

  • Whether the interface is enabled

  • Connection status

  • Internet access

  • Link speed

  • Connection duration

  • IPv4 address

  • IPv6 address

  • MAC address

  • Default gateway

  • Subnet mask


MAC Addresses

A MAC address is a link-layer hardware address used to identify a network interface on a local network.

MAC stands for Media Access Control.

When a device sends a local message, the frame includes:

  • The destination MAC address

  • The source MAC address

Other devices inspect the destination address. A device processes the frame if the destination MAC address belongs to its interface; otherwise, it generally ignores the frame.

MAC Address Format

A MAC address is 484848 bits long.

It can be represented as:

  • A sequence of 484848 binary digits

  • Twelve hexadecimal digits

  • Groups separated by colons or hyphens

For example, a MAC address may appear in a format such as:

00:1A:2B:3C:4D:5E

The separators are for human readability. They do not change the underlying address.

Burned-In Addresses

MAC addresses are commonly assigned by the manufacturer of the network interface.

The network-interface manufacturer may be different from the manufacturer of the computer. The address is often stored or “burned in” during production, which is why it is called a burned-in address.

Although MAC addresses are commonly associated with Ethernet, other networking technologies may use different addressing schemes.


Hubs and Switches

Ethernet Hub

A hub is a simple device that repeats incoming signals to every other port.

If a frame enters a hub through one port:

  1. The hub receives the signal.

  2. The hub copies or repeats it to all other ports.

  3. Every connected device receives the transmission.

  4. Only the device with the matching destination address processes it.

This behavior is called broadcasting or repeating at the physical network level.

Security Implications of Hubs

Because a hub sends traffic to every connected device:

  • All devices can physically observe transmissions.

  • Devices must ignore frames not addressed to them.

  • Unauthorized interception is easier than with a switch.

  • Network traffic is less private.

Switches

A switch is more intelligent than a hub. It can use address information to forward traffic only toward the appropriate port in many situations.

Switches are used far more commonly than hubs because they:

  • Reduce unnecessary traffic

  • Improve network efficiency

  • Reduce the likelihood of collisions

  • Provide better traffic isolation

  • Improve privacy compared with a hub

Hubs remain useful for understanding the original shared-medium behavior of Ethernet.


Encapsulation

Encapsulation is the process of adding control information around data so it can be delivered and interpreted correctly.

A message is not sent across a network as raw application data alone. Each protocol adds information required by its layer.

Main Parts of Encapsulated Data

Payload

The payload is the actual data being delivered.

Examples include:

  • A web request

  • A list of songs

  • An audio stream

  • A file

  • An application message

Header

A header is information placed before the payload. It may include:

  • Source address

  • Destination address

  • Protocol identification

  • Sequence information

  • Delivery instructions

  • Control information

  • Error-related fields

Trailer

A trailer is information placed after the payload. It is optional and often supports:

  • Error detection

  • Integrity checking

  • Verification that the data was not corrupted

Layered Encapsulation

A protocol may encapsulate data that has already been encapsulated by another protocol.

For example:

  1. An application creates data.

  2. A transport protocol adds its header.

  3. IP adds a packet header.

  4. Ethernet adds a frame header and trailer.

Each layer adds information needed by the corresponding layer of the network.


Ethernet

Ethernet is a common local-area networking technology that uses frames and MAC addresses to deliver data across a local network.

Ethernet commonly operates over copper cables, although Ethernet technologies can also operate over fiber and other media.


Ethernet Frames

An Ethernet transmission is called a frame.

An Ethernet frame contains:

  1. Ethernet header

  2. Payload

  3. Frame-check trailer

Ethernet Header

The Ethernet header includes:

  • Destination MAC address: identifies the intended receiving interface

  • Source MAC address: identifies the sending interface

  • Type or length field: indicates information about the payload or the kind of data being carried

The destination MAC address allows the receiving device to determine whether the frame is intended for it.

Ethernet Payload

The payload contains the data being delivered by Ethernet. The payload may contain another encapsulated protocol, such as an IP packet.

Frame Check Sequence

The Frame Check Sequence, or FCS, is a trailer used to detect corruption.

The receiving device calculates or checks the expected value and compares it with the transmitted value. If the values do not match, the frame may have been damaged during transmission and is discarded.

Simplified Ethernet Frame Sizes

In the source’s simplified description:

  • Destination MAC address: 484848 bits

  • Source MAC address: 484848 bits

  • Type field: 161616 bits

  • Payload: approximately 368368368 to 12,00012{,}00012,000 bits

  • Frame Check Sequence: 323232 bits

The complete combination of header, payload, and trailer is the Ethernet frame.


Collisions

A collision occurs when two devices attempt to transmit on a shared network medium at the same time.

A hub creates a shared communication medium. If two devices transmit simultaneously:

  • Their signals interfere with one another.

  • Neither transmission can be trusted as complete.

  • Both devices must stop transmitting.

  • The failed communication must be attempted again.

CSMA/CD

Traditional shared Ethernet uses Carrier Sense Multiple Access with Collision Detection, abbreviated CSMA/CD.

The name describes the process:

  • Multiple access: many devices share the same medium.

  • Carrier sense: a device listens to determine whether another device is transmitting.

  • Collision detection: a transmitting device monitors the medium to detect interference.

Collision-Handling Process

  1. A device listens to determine whether the medium is available.

  2. If the medium is busy, the device waits.

  3. If the medium appears free, the device begins transmitting.

  4. If a collision is detected, the device stops.

  5. Each affected device selects a random backoff interval.

  6. Devices count down their intervals.

  7. The device whose countdown finishes first transmits.

  8. Other devices detect the transmission and wait.

Random backoff reduces the chance that the same devices will collide again immediately.

Modern switched full-duplex Ethernet generally avoids collisions, so CSMA/CD is primarily important for understanding traditional shared Ethernet.


Broadcasts

A broadcast is a transmission intended for every device on a local network.

A normal unicast frame is directed to one destination MAC address. A broadcast frame uses the special Ethernet destination address consisting of all hexadecimal FF values:

FF:FF:FF:FF:FF:FF

When devices receive a frame addressed to this broadcast address:

  • All devices on the relevant local network accept and process it.

  • The message is not intended for only one individual device.

  • Switches may forward the broadcast through all appropriate local ports.

Broadcasts remain possible on switched networks even though ordinary traffic is not sent to every port.


Local Area Network Boundaries

A LAN is local because its devices have direct local connectivity through local networking technologies.

A LAN may have:

  • Ethernet switches

  • Wireless access points

  • Servers

  • User devices

  • Printers

  • Broadcast traffic

  • One or more collision domains

Collision Domains

A collision domain is a portion of a network in which devices may interfere with one another by transmitting at the same time.

  • A hub creates a shared collision domain.

  • Replacing a hub with a switch largely eliminates collisions in modern Ethernet.

  • A LAN does not necessarily contain collisions; collisions depend on the technologies used within it.

Broadcast Boundaries

Broadcasts normally remain within a local network. A router separates one LAN from another and generally does not forward ordinary LAN broadcasts across its interfaces.

This separation prevents local broadcasts from expanding indefinitely.

Why the World Cannot Be One Shared LAN

A single global shared LAN would create serious problems:

  • Vast numbers of collisions

  • Excessive broadcast traffic

  • Poor performance

  • Significant security exposure

  • Impractical MAC-address-based delivery

  • Difficult traffic management

Networks are therefore divided into smaller local segments and connected through routers.


Wide Area Networks

A wide area network, or WAN, connects networks across large geographic distances.

A WAN may connect:

  • Different buildings

  • Cities

  • States or provinces

  • Countries

  • Continents

  • Corporate campuses

  • Branch offices

  • Data centers

Example Corporate WAN

A company may have:

  • Headquarters in Seattle

  • A satellite campus in Chicago

  • Offices in New York City

  • A factory in Texas

Each location may contain one or more LANs. Routers at those locations connect the LANs together, creating a WAN.

LAN-to-WAN Structure

A single location may contain several LANs, such as:

  • Server network

  • Employee network

  • Guest network

  • Production network

  • Office network

Routers connect these separate local networks to longer-distance WAN links. The WAN is the interconnection between the locations, while each individual local segment remains a LAN.


IP Addresses and Wide-Area Routing

MAC addresses work well locally but are not suitable for global routing.

Limitations of MAC Addresses

MAC addresses have several weaknesses for worldwide delivery:

  • They are assigned based on hardware manufacture rather than geographic location.

  • A device’s MAC address does not indicate where the device is located.

  • Finding a particular MAC address globally would require an enormous database.

  • Such a database would be difficult to maintain.

  • Global MAC-address tracking would create security and management problems.

  • MAC addresses do not provide the hierarchy needed for efficient routing.

A different addressing system is needed for communication across interconnected networks.


IP Addresses

An IP address is a logical, hierarchical address used to identify a device or interface and route packets across interconnected networks.

IP addresses can be assigned according to network location. Their hierarchical structure allows routers to make decisions without knowing the location of every individual device.

Hierarchical Addressing

A hierarchy divides address space into progressively smaller sections:

  1. A large authority assigns address ranges to regional organizations.

  2. Regional organizations assign portions to Internet service providers.

  3. ISPs assign ranges to businesses or customers.

  4. Organizations divide their assigned range among internal networks.

  5. A local network assigns an address to a particular interface.

A router can forward traffic toward the appropriate broad range first. Routers closer to the destination continue narrowing the path until the packet reaches the correct network and device.


IPv4 Addresses

An IPv4 address is 323232 bits long.

For human readability, it is written as four decimal octets, separated by periods. For example:

192.168.40.41

Each octet represents 888 bits, so:

4×8=32 bits4 \times 8 = 32 \text{ bits}4×8=32 bits

The numerical value of each octet ranges from 000 through 255255255.

Dynamic IP Addressing

Unlike a MAC address, an IP address is commonly assigned according to the network to which a device connects.

For example:

  • A laptop connects to a home network and receives an address in the home network’s range.

  • The same laptop moves to an office network and receives a different address in the office network’s range.

  • The laptop’s MAC address usually remains associated with its network interface.

This reassignment allows routers to use address ranges as location clues.

IP Address Administration

Large blocks of IP address space are managed hierarchically by Internet address authorities and regional organizations. These organizations distribute address ranges to:

  • Regions

  • Internet service providers

  • Businesses

  • Institutions

  • Other network operators

This structure supports global routing and reduces the need for every router to maintain a complete address database.


Viewing Network Configuration with ipconfig

On Windows, ipconfig displays network configuration information in a command prompt.

A basic command can show:

  • Network interfaces

  • IPv4 addresses

  • IPv6 link-local addresses

  • Default gateway

  • Subnet mask

The ipconfig /all command provides additional information, including:

  • MAC or physical address

  • DHCP configuration

  • DNS information

  • More detailed interface settings

The IPv4 address identifies the interface’s logical location on the current network. The MAC address identifies the local network interface itself.


IP Packets

An IP packet is an encapsulated unit of data that includes source and destination IP addresses for delivery across networks.

An IP packet contains:

  • Payload

  • IP header

  • Source IP address

  • Destination IP address

  • Additional control information

The source address identifies where the packet originated. The destination address identifies where it should ultimately go.

The source description refers to an IP header containing approximately 969696 bits of core header information in its simplified example, although actual headers include several fields and may vary depending on the IP version and options.

Packet Delivery

To send data to a destination:

  1. The sender places the application data in the payload.

  2. The sender adds its own IP address as the source.

  3. The sender adds the destination IP address.

  4. The resulting packet is sent toward a router.

  5. Routers examine the destination IP address.

  6. Each router forwards the packet toward the next best route.

  7. The packet eventually reaches the destination network.

The IP packet remains largely consistent as it travels across the WAN, although some fields may change during routing.


Relationship Between Packets and Frames

An IP packet and an Ethernet frame are not the same thing.

IP Packet

  • Uses IP addresses

  • Supports delivery across networks

  • Is routed by routers

  • Generally remains the same from source to destination

  • Operates at the Internet or Layer 3 level

Ethernet Frame

  • Uses MAC addresses

  • Supports local delivery across a particular network link

  • Is forwarded by hubs or switches

  • Is replaced when the packet moves to a new link

  • Operates at the data-link or Layer 2 level

Encapsulation Relationship

An IP packet is placed inside an Ethernet frame for local delivery.

Conceptually:

  1. An application creates data.

  2. The data is placed in an IP packet.

  3. The IP packet is placed inside an Ethernet frame.

  4. The Ethernet frame is transmitted across the local network.

  5. The receiving router removes the local frame.

  6. The router forwards the packet through the next network using a new local frame or another Layer 2 technology.


Routers

A router is a device that forwards IP packets between different networks.

A router commonly forms the boundary between a LAN and the rest of the network.

Router Functions

A router:

  • Receives a frame from a local network

  • Extracts the IP packet

  • Examines the destination IP address

  • Consults routing information

  • Selects the next best path

  • Encapsulates the packet for the next link

  • Sends it toward another router or the destination network

A router does not need to know the entire physical path at once. Each router makes a local forwarding decision based on available routing information.

Default Gateway

For a local device, the router used to reach remote networks is commonly called the default gateway.

If a destination is outside the local network, the device sends the frame to the router’s local MAC address. The router then forwards the IP packet toward the remote destination.


Routing Across Multiple Links

Suppose one computer communicates with another computer across several routers:

  1. The source creates an IP packet containing the final source and destination IP addresses.

  2. The source places that packet inside a local Ethernet frame addressed to the first router.

  3. The first router removes the Ethernet frame.

  4. The router adds a new Layer 2 frame appropriate for the next link.

  5. The next router removes that frame and creates another one for the following link.

  6. This process repeats across the WAN.

  7. The final router creates a local frame addressed to the destination device.

  8. The destination receives the packet and processes its payload.

The crucial relationship is:

  • The Layer 3 IP packet remains mostly consistent across the journey.

  • The Layer 2 frame changes at every link.

This allows different technologies to connect together. A packet may travel through Ethernet on one segment, fiber or another WAN technology on the next, and wireless or Ethernet again near the destination.


Troubleshooting Network Connectivity

Two useful Windows command-line utilities are ping and tracert.

ping

ping tests basic reachability to another IP address or hostname.

For example:

ping 8.8.8.8

A ping test commonly reports:

  • Whether replies are received

  • Number of packets sent

  • Number of packets received

  • Number of packets lost

  • Round-trip time

  • Approximate packet size

If four packets are sent and four replies are received, the test shows no packet loss for that particular test.

Ping is useful for determining whether a destination is reachable and for observing response latency.

tracert

On Windows, tracert displays the routers, or hops, encountered on the path to a destination.

For example:

tracert 8.8.8.8

The output can show:

  • Each intermediate router responding along the path

  • The sequence of hops

  • Approximate response times

  • The final destination

A trace route helps identify where communication may be delayed or failing. The exact path can change because routing is dynamic and networks may select different routes at different times.


The Internet

The Internet is a global network of networks connected through routers and long-distance communication technologies.

The Internet did not develop as one single network controlled by one organization. It formed from many independent networks that progressively interconnected.

How the Internet Forms a Network of Networks

The development can be understood as a progression:

  1. Individual computers are connected into local networks.

  2. Routers connect separate local networks.

  3. Organizations build larger networks covering broader areas.

  4. Companies provide connections between locations and networks.

  5. Independent network operators interconnect with one another.

  6. Long-distance fiber, cable, wireless, and satellite links connect regions and countries.

  7. The result is a worldwide system of interconnected networks.

The Internet is therefore not one machine, one company, or one physical network.

Decentralized Ownership

The Internet is characterized by:

  • Independent networks operated by different organizations

  • Constant changes in topology and connectivity

  • Multiple routes between many locations

  • Cooperation between network operators

  • No single entity possessing a complete, permanent map of every connection

Diagrams often represent the Internet as a cloud because its complete structure is extremely large, dynamic, and difficult to display.

Global Communication Technologies

Internet traffic may cross:

  • Terrestrial fiber-optic cables

  • Undersea fiber-optic cables

  • Copper infrastructure

  • Radio links

  • Microwave links

  • Satellite systems

  • Cellular networks

Undersea fiber cables are especially important for connecting continents. Satellites can provide coverage over large areas, although communication may involve greater delay because signals travel to space and back.

A server can be placed in one part of the world, assigned an IP address, and configured with network services. Users in distant regions can then connect to those services through the global network.


Internet Service Providers

An Internet service provider, or ISP, is an organization that provides customers with access to the Internet.

An ISP connects a home, business, or other customer network to larger networks and ultimately to the global Internet.

Internet Backbone

The Internet backbone consists of high-capacity core connections that interconnect major networks and regions.

Backbone infrastructure includes:

  • Long-distance fiber-optic routes

  • Major terrestrial links

  • Undersea cables

  • High-capacity routers

  • Interconnections between large network operators

Some organizations connect directly to backbone providers. Many homes and smaller businesses instead connect through a local or regional ISP.

ISP Access Model

A typical arrangement is:

  1. A customer connects to a local ISP.

  2. The ISP connects to larger regional or backbone networks.

  3. Those networks connect to other providers and destinations.

  4. Routers exchange traffic across the interconnected Internet.

  5. The customer reaches remote servers and services.

The ISP’s service is the connection between the customer and the broader Internet.


The Last Mile

The last mile is the final connection between an ISP’s network and an individual home or business.

Although the backbone may carry traffic for thousands or millions of users, connecting a single property to the ISP can be expensive.

Last-mile costs may involve:

  • Installing cable or fiber

  • Obtaining rights of way

  • Extending infrastructure to individual locations

  • Maintaining local distribution equipment

  • Serving areas with low population density

The cost per user of backbone infrastructure can be relatively low when shared by many customers. The final connection to an individual property may be much more expensive per customer.

Common Last-Mile Technologies

A home may receive Internet access through:

  • DSL over telephone lines

  • Cable Internet

  • Fiber-optic service

  • Cellular networks

  • Satellite Internet

  • Fixed wireless systems

Other utilities, such as electricity, water, and sewer lines, may enter a home, but they are generally not the primary method for delivering Internet access. Data can sometimes be transmitted over power lines, but this is not usually the dominant solution.

Fiber Connections

Fiber provides high-speed data transmission using light and is increasingly used for last-mile Internet access. It generally offers higher capacity than older copper-based services.

Satellite and Cellular Connections

When wired infrastructure is unavailable or impractical:

  • Satellite service can provide broad geographic coverage.

  • Cellular service can use mobile network infrastructure.

  • These solutions may have different speed, latency, data-limit, and reliability characteristics than wired connections.


Key Relationships

Services, Protocols, and Ports

  • A service performs a function, such as serving web pages or assigning IP addresses.

  • A protocol defines how devices communicate with that service.

  • A port identifies which service should receive incoming traffic.

MAC Addresses, IP Addresses, Frames, and Packets

  • A MAC address identifies a network interface on a local network.

  • An IP address identifies a logical network location across interconnected networks.

  • An Ethernet frame carries data across one local link.

  • An IP packet carries data across multiple networks toward its final destination.

Switches and Routers

  • A switch forwards local frames within a LAN.

  • A router forwards IP packets between different networks.

  • A switch helps organize local traffic.

  • A router separates LANs and connects them into WANs.

Local and Global Communication

  • LAN technologies provide local connectivity.

  • WAN technologies connect geographically separated networks.

  • The Internet combines many WANs and LANs into a global network of networks.

  • The packet generally remains consistent across the journey, while the local frame changes from link to link.

A message reaches a distant destination because layered protocols, logical addressing, local frames, routers, network services, and interconnected providers work together.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent