Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 1: Networking Fundamentals

AWS Cloud

Practice Questions and Lab Exercises

Come on, practice time! Solve the subnetting questions on pen and paper and do the labs on the terminal – you cannot learn networking just by reading.

  1. Differentiate between an IP address and a port with a real-life analogy.
  2. List common default TCP ports for SSH, HTTP, HTTPS, MySQL, MongoDB and a Flask development server. Explain how you would confirm the configured listener in an approved lab.
  3. For historical practice, identify the classful categories of 10.4.5.6, 172.20.1.1, 192.0.2.3, and 230.0.0.5. The last is a multicast example and has no classful unicast host mask. For a modern subnet, use its configured CIDR prefix.
  4. A network 172.16.0.0/22 must be split into 8 equal subnets. Find the new prefix, block size and the range of the 3rd subnet.
  5. Shorten 2001:0db8:0000:0000:0e00:0000:0000:0010 using the RFC 5952 canonical rule for tied zero runs. Why can :: be used only once?
  6. Which of these lie inside an RFC 1918 block: 10.10.10.10, 172.32.1.1, 192.168.100.1, 100.64.1.1, 192.0.2.30?
  7. Lab: On approved Linux, compare ip -4 addr show with the result of curl -4 --max-time 10 https://checkip.amazonaws.com if the network allows it. Record where the two readings were observed. Explain how NAT or a proxy can make the observed IPv4 differ from the interface value.
  8. Explain the difference between an auto-assigned public IP and an Elastic IP on AWS. What happens to each when you stop the instance?

Quick Revision

  • An IP address directs traffic to an interface or endpoint. A port identifies a transport endpoint for TCP or UDP traffic. An IP socket address can contain an IP address and port.
  • Common examples are TCP 22 SSH, 80 HTTP, 443 HTTPS, 3306 MySQL, 27017 MongoDB, and 5000 for a Flask development server. Framework apps can choose another port, such as 3000 or 8080. Verify the actual listener.
  • IPv4 has 32 bits in four octets. CIDR /n contains 2^(32−n) total values. The ordinary AWS IPv4 subnet reserves five addresses.
  • IPv6 = 128 bits, 8 hex groups; drop leading zeros; :: only once.
  • Private (RFC 1918): 10/8, 172.16/12, 192.168/16. A standard AWS default VPC starts with 172.31.0.0/16 if present.
  • NAT rewrites addresses. Port translation can share an outside address among private flows. In AWS, the internet gateway maps associated public IPv4 addresses, and a public NAT gateway can support a private workload’s outbound path.
  • An ordinary auto-assigned EC2 public IPv4 can change after stop/start. An Elastic IP allocation stays with the account until released and can be associated with the intended resource.

Got it? IP, port, CIDR, public/private and NAT – once these five words are solid, there is no reason to fear AWS networking. Now let's move on to the OSI model.

Build and test a small delivery tracking network on paper

Mauli Dairy has finished the first version of its order tracking application. Customers need one public entry point. Application workers need to reach a database and an approved external vendor. The billing team also needs a separate private path. The company asks you for an address and connection worksheet that someone else can review before deployment. This practice puts the address, port, route and lifecycle lessons together without requiring a new cloud account or deployment.

Start with a blank page and reserve four spaces for the address plan, directed traffic, diagnostic results and expected cleanup. “Directed traffic” means each row identifies the caller and destination rather than simply listing the two resources. A server can be the destination of a request on one line and the caller of a different request below it. For example, the public frontend receives a customer request and then connects to one app target. Its address and listener have different roles on the two sides.

Try each question before looking at a worked answer. On a first pass do the calculation without code. Use the offline exercises to check your work. If you already have instructor-approved AWS read-only access, the final inspection connects the worksheet to the console. You can finish each exercise on paper using the supplied observations. The chapter doesn't require creating a paid service or changing your home network.

Use documentation IPv4 and IPv6 values in your shared work. A number such as 203.0.113.20 can mark the public side of the drawing. For private IPv4, this project uses blocks inside RFC 1918. Leave names, IDs, network settings and credentials from any real workplace out of the shared exercise. The purpose is to show the reasoning using the same readable example as your classmates.

List the connections before choosing numbers for the resources

Here is the project brief. The tracking site is served through a public Application Load Balancer. The private app receives a connection from it on TCP 8080 in this training example. The app reads the database over the configured database port, which is TCP 5432 for this sample PostgreSQL service. The app sends a separate HTTPS request to a vendor if the service needs current delivery status. The vendor requires a known source address in the exercise. The billing interface uses a company-approved private path. An actual deployment may use different services and ports.

Draw a line for each connection. For each line choose where the client sits, the name or endpoint it uses, the destination protocol and port, the route or configured next hop, and the test you expect to succeed. Add a row for the backend health check if it uses a separate path or port. The fact that a backend health check answers does not establish that any customer can open their actual tracking record. These checks have different purposes.

ConnectionDestination in the worksheetEvidence for that connection
Customer to public frontendTracking DNS name and HTTPS listenerAuthorized browser or client completes TLS for the expected host and gets the intended service response.
Frontend to applicationApp target group and configured target portThe configured target check passes, and a representative request can be served through the approved target path.
Application to databasePrivate database endpoint and PostgreSQL listenerThe authorized app can use the intended database identity and perform the approved training lookup.
Application to vendorVendor HTTPS nameThe vendor receives the request from the intended egress path and returns the expected response.
Billing clerk to internal appPrivate billing name over the approved company connectionApproved caller reaches the service and completes an authorized operation.

Now choose which subnet types these roles need. For a zonal public NAT example, the route table for a private app subnet sends the approved outside IPv4 destinations to its public NAT gateway, and the public subnet hosting the gateway uses the internet gateway. The database traffic stays on the VPC's local path in the worksheet. An AWS regional public NAT gateway uses a different placement and route table model. You can document the zonal mode for the exercise and state what you would recheck if the owner chooses regional mode.

Finish the drawing by marking return paths in different ink or with arrows. Return traffic for a private app's outbound translation needs the corresponding translation state. Traffic from the public load balancer to the app is a connection separate from the customer leg. If an answer depends on a subnet ACL, write how the required flow passes the corresponding directions. This makes the diagram a testable design rather than inventory alone.

Split a /22 into eight smaller allocations and check the third range

Work on paper first. The available parent block is 172.16.0.0/22. Mauli needs eight equally sized allocations. Borrow enough bits from the host portion that the number of subnet identifiers doubles three times. The initial prefix length is 22 and eight is two to the third power. Add three to get /25. Each new block leaves seven free bits and contains 128 addresses. Eight blocks of 128 use the 1,024 address values in the parent exactly.

The parent begins at 172.16.0.0 and ends at 172.16.3.255. A /25 splits each of the parent's four third-octet ranges into a low block at .0 and a high block at .128. Enumerate them from the beginning. The first is 172.16.0.0/25, the second 172.16.0.128/25 and the third 172.16.1.0/25. The third starts in the next third-octet range because the fourth octet in the first two allocations has already reached 255.

AllocationPrefixFirst through last
1172.16.0.0/25172.16.0.0 through 172.16.0.127
2172.16.0.128/25172.16.0.128 through 172.16.0.255
3172.16.1.0/25172.16.1.0 through 172.16.1.127
4172.16.1.128/25172.16.1.128 through 172.16.1.255

Check the last address in the third block by taking one less than the next start. Make a second row with the usable count you expect in the ordinary AWS case. The first four values and the last are reserved. That is 123 initially assignable addresses in each /25, before any interface or managed resource gets one. A traditional /25 LAN often assumes two reservations and would start at 126 usable. Decide which environment the question asks about. Address arithmetic and provider allocation rules are separate calculations.

Use Python 3 locally to verify the math. The number after each printed prefix is an address boundary, not an online host. The code never contacts the network or creates a subnet.

python3 - <<'PY'
from ipaddress import IPv4Network

parent = IPv4Network("172.16.0.0/22")
children = list(parent.subnets(prefixlen_diff=3))
for number, block in enumerate(children, 1):
    print(number, block, block.network_address, "through", block.broadcast_address)
third = children[2]
print("total children:", len(children))
print("third block addresses:", third.num_addresses)
print("standard AWS assignable:", third.num_addresses - 5)
PY

The final three lines should show eight child blocks, 128 values per child, and 123 initially assignable in the standard AWS case. Check the third printed range against your table. The program's list begins at index zero, so index two refers to the third block. If your program reports four child blocks, check whether you added only two bits. If it reports that a supplied parent has host bits, check whether your proposed base is aligned. A /22 in this worksheet begins on a third-octet multiple of four.

Assign six of the eight ranges to a teaching topology with public, application and database tiers in two zones. Leave the other two as named reserves in your worksheet. Success includes one subnet allocation per purpose and zone and no overlaps among the six. There is no cleanup because no live resource changes. If you save a local answer file, keep only your own training examples.

Check whether the subnet plan still fits during a release

Mauli chose two ordinary AWS /25 app subnets. Each begins with 123 assignable IPv4 values. After several releases, Zone A usually consumes 91. A deployment model starts 20 fresh app workers before draining the old ones. Another 12 pending interfaces for managed components are expected in that same window. The question is whether the usual daily usage or the deployment's temporary peak should drive the capacity check.

Add the three quantities for the simultaneous case. Ninety-one plus 20 plus 12 equals 123. That exactly reaches the illustrative assignable capacity. There is no room for another address request, any measurement error or a delay while removing an old interface. An app team can coordinate a safer release batch, free intentionally unused lab resources with their owners, or prepare additional approved capacity. The answer depends on deployment and routing requirements. Increasing a count in a document cannot add free addresses to an already allocated subnet.

Make an independent check for the frontend. Example public subnet A is another /25 and has 112 assigned values before a scheduled deployment. A permitted change is expected to consume four more. The projected remaining count is 123 minus 116, or seven. AWS advises that Application Load Balancer Availability Zone subnets have a /27 or larger block and at least eight free IP addresses for scaling. The /25 has enough range size by that guideline. The projected seven free values would miss the capacity requirement. Subnet size and remaining free values are different checks.

Compare the two proposed reserve prefixes 172.16.3.0/25 and 172.16.3.128/25. Together they fit the aligned 172.16.3.0/24. When neither reserve has been assigned elsewhere, the owner could consider using their combined range for another planned subnet. That would give up using them as two separate independent reserves. A replacement plan needs the proper zone, route, group associations, target migration and safe verification. Do not assume a /24 automatically provides additional addresses to the existing /25 elsewhere in the range.

For your answer, give one required measurement for the app subnets and one for the public subnets. Use the observed available address count before a real release, along with the resources expected to exist during that release. Include where an address value is already allocated, which service owns it and how the deployment team knows old capacity has been released. Keep every estimate tied to a subnet and AZ. Free space in one zone does not place another subnet's interfaces in that zone.

Normalize an IPv6 address and keep routing prefix length separate

Use this expanded documentation address: 2001:0db8:0000:0000:0e00:0000:0000:0010. Count eight groups. Remove leading zeroes within each group. Two runs each contain two zero groups: groups three and four, and groups six and seven. For the canonical text form, RFC 5952 chooses the first run when the longest runs are tied. Compress the first run with :: and keep the other two zero groups as written groups. The result is 2001:db8::e00:0:0:10.

To verify the answer, count the groups that remain. The visible groups are 2001, db8, e00, 0, 0 and 10, so two groups are missing. Restore those two at the double colon. If you attempted to place a second double colon before 10, a reader could not tell how many groups each marker represents. One marker and a fixed limit of eight groups make the reconstruction unique.

Now give the original address a /64 prefix. This fixes the first four groups, namely 2001:0db8:0000:0000. Writing the address in a shorter form did not move the prefix or change its membership. A candidate beginning 2001:db8:0:1 differs in the fourth group and lies outside the same /64. A separate prefix is required for that second subnet in this worksheet.

python3 - <<'PY'
from ipaddress import IPv6Address, IPv6Interface

value = IPv6Address("2001:0db8:0000:0000:0e00:0000:0000:0010")
interface = IPv6Interface(f"{value}/64")
candidate = IPv6Address("2001:db8:0:1::25")
print("compressed:", value.compressed)
print("expanded:", value.exploded)
print("network:", interface.network)
print("candidate in network:", candidate in interface.network)
PY

Expect the compressed and expanded forms above, 2001:db8::/64 as the containing network, and false for the candidate. If you see a parser error, check for an extra double colon or a digit outside hexadecimal. If you want to practice restating an endpoint in a browser URL, put an IPv6 literal inside brackets before the port, as in http://[::1]:8080/. The local loopback example is syntax only unless your own service is already listening there. This is an offline parser exercise with no resource setup or cleanup.

Sort RFC 1918 addresses, shared space and documentation values

List the five entries before looking at the table. Label each as inside RFC 1918, special-purpose outside RFC 1918, or outside the three private blocks without assigning an owner. The final category is deliberately narrow. You need the IANA registry and the actual routing context to infer more than whether a sample matches the three private ranges.

SampleCheck and result
10.10.10.10First octet 10, inside 10.0.0.0/8.
172.32.1.1Second octet 32, immediately beyond the 172.16 to 172.31 private span.
192.168.100.1First two octets 192 and 168, inside 192.168.0.0/16.
100.64.1.1Inside Shared Address Space 100.64.0.0/10. Outside RFC 1918.
192.0.2.30Inside the reserved documentation block 192.0.2.0/24. Outside RFC 1918.

Suppose a router in your example reports the Shared Address Space value on its provider-side interface and a remote vendor sees a different IPv4. Write one possible route explanation. The provider could translate the shared address to an outside source as part of a carrier-grade NAT design. The interface output and vendor output describe different points on the path, and the number alone does not prove all details about the carrier. A proxy or other translating component may also be involved.

For a second case, the candidate office network uses 172.16.1.0/24 and must connect to the project network 172.16.0.0/22. Determine whether these blocks overlap. The /22 spans third-octet values zero through three. The office /24 lies entirely inside that range, so different-looking prefixes are still conflicting. Choose a non-overlapping option and check it against any other networks the office already connects. RFC 1918 allows address reuse across isolated networks, and connecting networks is what introduces the need to distinguish destinations.

The original lesson uses a historical class exercise. It can help when reading older documentation, but in this project use a supplied prefix length and range. The written address itself does not reveal the actual modern subnet mask. A machine at 172.16.1.25 could be configured in your project's /25 or in an entirely different prefix in another network. Read the interface and route table of the real environment when you need the active prefix.

Observe local TCP and UDP endpoints without contacting the internet

You need Python 3 with its standard socket module. All addresses in this exercise are 127.0.0.1. The program asks the OS for an available TCP port, then opens a local client connection to it. Separately, it sends a UDP datagram between two automatically allocated local endpoints. No external services, dependencies or system configuration changes are needed. The point is to compare what the two protocols expose to the receiving program.

python3 - <<'PY'
import socket

loopback = "127.0.0.1"
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as tcp_server:
    tcp_server.bind((loopback, 0))
    tcp_server.listen(1)
    tcp_server.settimeout(2)
    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as tcp_client:
        tcp_client.settimeout(2)
        tcp_client.connect(tcp_server.getsockname())
        tcp_client.sendall(b"tracking request")
        tcp_client.shutdown(socket.SHUT_WR)
        accepted, tcp_peer = tcp_server.accept()
        with accepted:
            accepted.settimeout(2)
            pieces = []
            while True:
                item = accepted.recv(1024)
                if not item:
                    break
                pieces.append(item)
            print("TCP destination:", accepted.getsockname())
            print("TCP source:", tcp_peer)
            print("TCP bytes:", b"".join(pieces).decode())

with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as udp_server:
    udp_server.bind((loopback, 0))
    udp_server.settimeout(2)
    with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as udp_client:
        udp_client.sendto(b"one status sample", udp_server.getsockname())
        received, udp_peer = udp_server.recvfrom(1024)
        print("UDP destination:", udp_server.getsockname())
        print("UDP source:", udp_peer)
        print("UDP datagram:", received.decode())
PY

Expect loopback on each line with an endpoint pair. The source port and destination port of the TCP example normally differ, and the actual values vary by run. The TCP sender transmits bytes and closes the sending side. The receiver reads until that stream ends. The UDP receiver reads one datagram and its sender's address. No TCP accept step is involved for the UDP datagram. This small success does not prove that a datagram is always delivered by an external network.

Explain the difference as a server response in your own words. A TCP listener accepts a connection and can read its byte stream in chunks. A UDP listener sees a datagram with a source that it could send a reply to while the conditions allow. TCP and UDP use separate transport port spaces, though this example lets the operating system choose independent numbers for them. In a VPC, a rule that authorizes a TCP port does not authorize UDP traffic to the same numeric port.

If a line times out, keep the loopback binding and check that the exact sample ran to completion. Do not change it to bind to an outside address. If you use a Python environment that blocks local network sockets, use the printed expectations on paper and explain where the data enters the receiving program. The context managers close all sockets before the program ends. There is no AWS or persistent local resource to clean up.

Compare a local address with an outside observation under the same address family

Start with the sample interface 192.168.45.25/24 on an office laptop and an outside IPv4 observer reporting 203.0.113.20. For each value write the observer, point in the path and address family. The local reading describes the network adapter. The outside reading describes the source presented on that request. The two IP values alone cannot reveal the source port a translator used, the identity of the person at the laptop or a complete packet route.

Students optionally use an approved Linux training machine and an approved HTTPS observation service. Obtain permission from the network owner and keep real addresses in private notes. The commands below use IPv4 in both places. The last one contacts an external AWS endpoint, so use it only if that path is allowed. Otherwise use the accompanying paper observations. No particular outside address is expected to appear on a real unrelated machine.

ip -4 addr show
ip route show default
curl -4 -f --connect-timeout 5 --max-time 10 https://checkip.amazonaws.com

The first output can show multiple local IPv4 addresses across adapters. Identify the interface that belongs to the intended path. The second can show a default route's next hop and device. More specific routes, VPN selection or a proxy can affect the actual request. The third returns one address the remote observer received for that HTTPS call. A mismatch may fit a translation design. Compare the same network and family before drawing a conclusion, since an IPv6 output and IPv4 interface reading describe different kinds of path.

Complete a second example using two observers. The home router's WAN panel says 100.64.1.1 while the HTTPS endpoint reports 203.0.113.20. The router's WAN sample is in Shared Address Space. A plausible interpretation is carrier-grade NAT further upstream. Explain why an outside IP observation and the home router's WAN status can both be right. Ask which evidence a provider could confirm under its design and what still belongs to the home connection.

If the shell lacks the Linux ip command, use your platform's approved read-only network view or stay with the example. If the public request fails, record whether the error concerns address lookup, connection or HTTP response. Check whether the training network permits the requested observation. Keep normal network settings in place. No configuration or AWS resources were created, and you should remove or redact any local scratch notes that contain real addresses before sharing a worksheet.

Fill in a NAT ledger from two simultaneous vendor requests

Use a sheet of paper or a table in your notes. Both app workers are in the private cloud network. Worker A uses 172.16.1.25:51020 and worker B uses 172.16.1.26:51020. They send HTTPS requests to the same sample vendor at 198.51.100.70:443. The public side of the translation uses 203.0.113.20. In this exercise the translator chose port 62020 for A and 62021 for B.

ObservationSource and destination evidenceQuestion to complete
A's request before translationSource 172.16.1.25:51020, destination 198.51.100.70:443Which source appears outside?
B's request after translationSource 203.0.113.20:62021, destination 198.51.100.70:443Which pair does its reply need as destination outside?
A's reply arrives at the boundarySource 198.51.100.70:443, destination 203.0.113.20:62020Which address and port are used as destination inside?
A reconnects after its earlier state expiredPrivate address and public egress belong to the same respective roles.Which flow details should you measure again?

Worked answers: A appears as 203.0.113.20:62020. B's reply is sent to 203.0.113.20:62021. A's matching reply is delivered to 172.16.1.25:51020 because the translation entry associates the outer pair with A. When A reconnects, the local and translated transport ports can change. Compare the exact observed source, port and time instead of reusing the old flow entry. The vendor selection and its reply are given values in this exercise, so you do not need to contact any endpoint.

Extend the ledger with a deliberately unrelated return request. A packet in the worksheet shows an outside destination port you never allocated. Name which entry would be missing under the example's rules. A new connection from the vendor does not count as a matching reply to A or B. A public customer listener has its own configured ingress path and should be drawn separately. Don't use the NAT gateway's observed outside IP as the website's target simply because it receives existing outbound replies.

Apply the same method to a two-zone deployment. Give each zone a separate documented outside source for a zonal design. Ask a partner to act as the vendor and prepare a table of the approved sources in both zones. Then simulate moving one worker. The exercise succeeds when you can show which route associates the worker with which source and what would be different in the vendor's observation. Clean up the private notes if they contain any values copied from a real training account.

Compare a paper route plan with one approved subnet's current routes

This optional lab needs permission to read a training VPC from its AWS console. The exercise uses existing resources and does not require creating an instance, gateway, public address, database or log. In a paper-only setting use the route table rows stated below. You can complete the same questions and then compare your results with a classmate.

  1. Find a tagged training subnet and record the Region, Availability Zone, VPC prefix, subnet IPv4 prefix and effective route table. In a real account only inspect the intended lab resource. Take note of explicit or main route association. In the paper project, use VPC 172.16.0.0/22 and app subnet 172.16.1.0/25.

  2. Write out one local route, one selected gateway route and any matching more specific exception. For the paper example use 172.16.0.0/22 → local, 0.0.0.0/0 → zonal public NAT gateway and 198.51.100.64/26 → approved private route. The exception uses a documentation block to demonstrate route priority. It stands in for a real permitted partner network and supported attachment.

  3. Compare the database at 172.16.2.25, the vendor at 203.0.113.70, and the alternate partner example at 198.51.100.70. Write the longest matching prefix beside each destination. The expected result is local for the database, default to NAT for the vendor, and the more specific private /26 for the partner. Don't add an unnecessary public association to an app merely because it uses a route to a NAT gateway.

  4. For any configured AWS NAT target, record which NAT mode the account uses before reading its next hop. In the zonal public paper example, inspect the public subnet's intended internet gateway route. If the allowed destination is a private partner route, identify the appropriate private attachment and reply path separately. You can label each target only by its purpose in the training worksheet rather than sharing real infrastructure IDs.

  5. Identify the resource or subnet policy relevant to one permitted flow. Write the protocol, expected port and source for the request. Account owners can document restricted access in their own environment. Request evidence from a permitted test, or use the instructor's allowed result. A route and an allowed policy show the configuration you want, and a representative response shows the useful result under that configuration.

If the real console does not list a matching route table, look up the subnet's VPC main association. Confirm region, account and view permissions if nothing appears. If a target is shown as blackhole, the route can match the destination even though the target is unavailable. Record that as a relevant error. Do not replace the target in a live network merely to make your notes match the lab example. The read-only inspection creates no resources and has no cloud cleanup.

Use given observations to diagnose a problem after stop and start

Imagine the direct-public training version of the web server was stopped and started between two classes. The old worksheet shows public IPv4 192.0.2.25, private IPv4 172.16.0.25, and a public DNS A record pointing at the old value. The instance identifier is still the same. The current console displays 192.0.2.37 as the ordinary auto-assigned public IPv4. A read through the approved internal path returns the training page. The old public DNS lookup still gives 192.0.2.25 from the test client's resolver. These are supplied observations using documentation values. No real cloud stop is part of this exercise.

First say what did and did not change in the supplied evidence. The local path can reach the current application, and the public association differs from the earlier observation. The resolver used by the test client points at an older destination. This provides an immediate reason to inspect the published DNS record and any cached responses. It does not prove every piece of the public path works with the current address. Confirm the intended name, listener and policy for that path after the approved update.

Propose two long-term designs. Use an Elastic IP if a single public IPv4 association needs to be stable for this authorized deployment. Or use an approved public load balancer and stable DNS name if users need a trusted hostname while backend instances change. A DNS record alone does not keep its underlying destination current. If you choose a stable front end, include how targets are registered and verified before moving traffic to them.

Now change one observation for a friend doing the worksheet. Keep the DNS result current, but say the current route supplies no public path. The next check should move toward the effective route, address association and policy. Or keep all the connection observations successful and have the test request return a valid HTTP error. The next check should move toward the responding application, selected host or request path. This exercise asks you to update your diagnosis when evidence changes.

As a cleanup exercise, list resources that would live separately if a student deployed a disposable lab for this scenario. Include retained EBS volumes, manually allocated public addresses, NAT resources, load balancer and training DNS records where relevant. Write who owns each and how you would verify that each lab-owned resource was retained or removed under the lab's approved instructions. A thought exercise creates none of them, and an existing shared network should not be deleted to finish this worksheet.

Work a second case in which the page loads but the delivery status is stale

Mauli's app shows the tracking screen, but the vendor's latest delivery status never appears. Internal app logs show that the database read worked and the vendor request did not return the known expected result. The worker was newly deployed in Zone B. A worker in Zone A continues to receive vendor responses. Both were supposed to use the same app configuration. Compare the transaction from the two workers before blaming the public listener that delivered the page.

Write down which steps are already verified. Public frontend and internal rendering worked for this sample. The database read succeeded according to the given observation. The vendor request remains an unknown path. Compare the actual names, address family and target port. Compare effective route choice and outside source under the selected NAT mode. Then review vendor allowlist evidence and response behavior with the approved owner. A newly placed worker can use a different egress source even when the same build and application settings are deployed.

If the vendor still sees the approved source and responds with an authorization message, look at the app's credential and request authorization within the approved environment. If the request never reaches the vendor, check routes, gateway state and applicable policy from the actual subnet. Name the test that distinguishes the two. A useful answer can say “I would compare the selected gateway and ask for one authorized log record for the known request and time.” It does not need to change a security group immediately.

After a correction, repeat the full synthetic tracking request, confirm the expected vendor response and check fresh delivery data under the approved scenario. Record those checks in one handoff. If ongoing traffic can use both zones, validate both paths before declaring that the deployment is complete. Keep proof of an observed useful operation separate from counting gateways or checking their state.

Submit a route worksheet another student can check

  1. Submit the eight /25 prefixes, their first and last values, and the ordinary AWS assignment count for one block. Under the third block underline the first four and last addresses. Another learner should be able to reproduce the result using the prefix and the stated reservation rule alone.

  2. Submit a connection table with separate rows for customer, load balancer, app, database and vendor as callers where applicable. Include which path uses translation and which goes through the VPC local route. State the protocol and actual chosen port even when the value is a common default. Add a test outcome and specify the authorized source for each test.

  3. Submit the IPv6 expanded form, its canonical short form and the containing /64. Change the fourth group in an alternate address and explain the membership result. Make a bracketed local example URL and mark it as syntax rather than a global service location.

  4. Write a short incident handoff from one given case. Include what succeeded before reporting the failing step, which address or route observation you need next, and what result would verify the correction. If your answer requests a new resource, explain why the required operation cannot be verified from the supplied observations or existing approved lab.

Explain the results in interview form

Why does an eight-way split add three bits to the prefix?

Each additional fixed bit doubles the number of equal subnets. Three extra bits produce eight combinations. Starting from /22 yields /25, whose seven remaining IPv4 bits produce 128 addresses. Verify the ranges are aligned and collectively cover the parent without overlap.

What does winning the longest prefix match establish?

It tells us how the applicable table selects a more specific destination among matching prefixes of different lengths. In the exercise, the partner's /26 beats the IPv4 default. Check actual AWS route state, target and policy before saying the request reaches its final service or the reply can get back.

Why can two workers use the same private source port?

Their addresses differ. The source endpoint of a transport flow includes the IP and port, with protocol context. A translation boundary can distinguish the two requests and assign state so expected replies reach the correct worker, even if it presents a shared outside IPv4.

Why does the IPv6 representation use only one compressed run?

The address always has eight groups. Showing one omitted run and the remaining groups tells the reader how many zero groups to restore. RFC 5952 provides a canonical choice of the first run when multiple longest runs tie. Other valid single-run spellings can still represent the same value.

What would you verify when one zone cannot reach the vendor?

Compare the permitted workers using the same test operation, name, address family and port. Then inspect each effective route and the source that the authorized vendor actually sees. Port policy, vendor authorization and translation resources all have distinct roles. Resolve the specific difference before modifying the path.

Check your answers after completing the worksheets

  1. What is the third prefix when 172.16.0.0/22 is split into eight equal blocks? A. 172.16.0.128/25. B. 172.16.1.0/25. C. 172.16.2.0/26.

    Show answer

    B. The first two /25 blocks use the lower and upper halves of the first third-octet range. The third starts at the beginning of the next range. The /25 ends at 172.16.1.127 and contains 128 values.

  2. Which value from the classification table belongs to Shared Address Space? A. 100.64.1.1. B. 10.10.10.10. C. 192.0.2.30.

    Show answer

    A. The address lies within 100.64.0.0/10. The 10 prefix is RFC 1918 private space. The 192.0.2.0/24 prefix is reserved for documentation. All three address blocks have different roles.

  3. Which string uses the RFC 5952 canonical form for the expanded sample? A. 2001:db8::e00:0:0:10. B. 2001:db8::e00::10. C. 2001:db8:0:0:e00::10.

    Show answer

    A. Two runs of zero groups tie for longest. The canonical form compresses the first. B uses two markers and is invalid. C uses one marker for the later run and can express the same IPv6 address, but it misses the canonical tied-run choice.

  4. Which observation best supports moving from public connectivity to app data checks? A. A vendor report mentions the company's address. B. The client reaches the intended tracking site, but the returned operation lacks the expected data. C. The VPC table page opens in the console.

    Show answer

    B. The frontend and response provide evidence of the public request path. Now inspect application behavior and data dependencies. An unrelated vendor report or the ability to open a console view does not demonstrate the customer's operation.

  5. What does the local UDP test receive with the sample datagram? A. A separate accepted TCP connection. B. The source endpoint and one message. C. Its subnet's public IPv4.

    Show answer

    B. The UDP receiver reads the datagram and its sender information. The TCP example uses a listener and accepts a connection for a byte stream. Both are confined to loopback and provide no evidence of a public IP or external reachability.

Revision cards

Eight subnets
Borrow three bits from the parent host portion. A /22 becomes eight /25 blocks of 128 values each.
IPv6 tie
In canonical wording, compress the first run when two longest zero runs tie. Keep the prefix length separate from the text format.
Translation ledger
Record original source, outer source, remote destination and protocol. Reverse the appropriate mapping for the matching reply.
Protocol test
TCP exposes an accepted byte stream in the lab. UDP returns one datagram and its sender. Capture the actual endpoint pairs.
Route observation
Read the effective table for the precise subnet and destination. Verify the target, reply path and policy.
End-to-end check
Use a representative authorized request. Compare the expected useful result with each relevant transport, policy and application observation.

References