It is made of thousands of different networks connected together. One network may use Ethernet, another may use Wi-Fi, another may belong to an ISP, and another may use a completely different internal technology.
The process of making these different networks communicate with each other is called internetworking.
Internetworking means connecting two or more independent networks so that devices on those networks can communicate.
Routers forward packets between IP networks using logical addresses and routing tables.
A gateway is a broader term for a device or software system that connects different networks or performs protocol conversion when required.
Tunneling encapsulates one packet inside another protocol so it can travel through an intermediate network, while fragmentation divides a packet into smaller pieces when packet size is greater than the permitted MTU.
What Is Internetworking?
Internetworking means connecting separate computer networks so that devices belonging to different networks can communicate.
The word can be understood very easily:
For example, your college LAN may be one network and the web server you are accessing may be part of another network thousands of kilometres away.
Routers and Internet Protocol make it possible for packets to move through many networks before reaching the destination.
192.168.1.0/24
Connects Networks
10.10.0.0/16
Why Is Internetworking Needed?
No single local network can practically contain every computer in the world.
Different organisations create their own networks.
Internetworking allows those networks to communicate.
Connect Different LANs
Networks belonging to different buildings or departments can communicate.
Long-Distance Communication
Hosts can communicate even when they are on networks located far away.
Resource Sharing
Users can access servers, applications and services located on other networks.
Different Technologies
Ethernet, wireless and provider networks can participate in one larger internetwork.
Scalability
Instead of building one huge LAN, networks can remain separate but communicate through routers.
The Internet
The Internet itself works because many independent networks are interconnected.
How Does Internetworking Work?
Suppose Host A wants to send a packet to Host B on another network.
Main Features of Internetworking
- Connects multiple independent networks.
- Uses logical addressing such as IP addresses.
- Uses routers for packet forwarding.
- Can connect networks using different Data Link technologies.
- Supports long-distance communication.
- Can use gateways when translation between unlike systems is required.
- Can use tunneling to carry one protocol across another network.
- Must handle packet-size and MTU differences.
Main Challenges in Internetworking
Different Addressing
Networks must use a common logical addressing method for end-to-end routing.Different Frame Formats
Ethernet, Wi-Fi and other links use different Data Link Layer frames.Different MTUs
One link may support larger packets than another.Routing
Packets need a correct path through multiple networks.Protocol Differences
Some systems may require protocol translation or tunneling.Congestion
Connecting many networks creates shared traffic and possible bottlenecks.Role of a Router in Internetworking
A router is the main device used to connect IP networks.
It works mainly at the Network Layer.
192.168.1.0/24
Chooses Next Hop
10.0.0.0/8
How Does a Router Work?
- Receives a Data Link Layer frame.
- Removes the incoming frame header and trailer.
- Examines the destination IP address in the packet.
- Searches the forwarding or routing information.
- Selects a next hop or outgoing interface.
- Updates relevant Network Layer forwarding fields such as TTL or Hop Limit.
- Places the packet inside a new Data Link Layer frame suitable for the next link.
- Transmits it.
Routing Table
A router needs information about reachable networks.
This information is stored in its routing or forwarding tables.
What Is a Next Hop?
A packet usually does not travel directly from source to final destination in one step.
A router often forwards it to another router.
What Is a Default Gateway?
A host normally uses its default gateway when the destination is outside the host's local network.
For example:
8.8.8.8 is not inside the host's local 192.168.1.0/24 network.
Therefore the host sends the packet toward its default gateway.
What Is a Gateway?
The word gateway is broader than router.
A gateway connects networks or systems and may perform protocol conversion, data translation or application-level conversion when two sides do not use the same communication rules.
Depending on the system, a gateway may work at different protocol layers.
Protocol / Format A
Convert
Protocol / Format B
How Does a Gateway Work?
Suppose two systems use different communication methods.
A gateway can:
- Receive data from the first system.
- Interpret the protocol or data format.
- Convert it into a form understood by the second system.
- Forward the translated information.
Router vs Gateway
Router
- Mainly forwards packets between IP networks.
- Uses IP addresses and routing information.
- Main function belongs to the Network Layer.
- Normally does not translate application protocols.
Gateway
- Broader networking term.
- Can connect unlike systems.
- May perform protocol or format conversion.
- May operate at different protocol layers.
Internetworking Between Heterogeneous Networks
Heterogeneous means “different”.
Different networks may use:
- Different physical media
- Different frame formats
- Different MTUs
- Different speeds
- Different local addressing methods
The Network Layer provides a common logical packet-delivery mechanism above these local differences.
What Is Tunneling in Computer Networks?
Tunneling is a technique in which one packet is placed inside another packet so that it can travel through a network that otherwise does not directly carry the original protocol in the required way.
Encapsulation
Decapsulation
How Does Tunneling Work?
Encapsulation in Tunneling
Encapsulation means adding another protocol header around existing data.
Conceptually:
The intermediate network processes the outer header.
The inner packet remains protected inside the tunnel encapsulation until the tunnel endpoint is reached.
Decapsulation
At the tunnel exit, the additional outer tunnel header is removed.
The original inner packet is then forwarded according to its own protocol information.
Decapsulation: Remove outer header.
Examples of Tunneling
What Is MTU?
MTU stands for:
It represents the maximum packet size that a link can carry according to its Data Link Layer technology and configuration.
A commonly used Ethernet IP MTU is:
MTU = 2000 bytes
1800 bytes
MTU = 1500 bytes
The packet can fit inside Network A, but not inside Network B.
This is where packet-size handling becomes important.
What Is Fragmentation?
Fragmentation means dividing one large IP datagram into smaller fragments so each fragment can travel over a link having a smaller MTU.
Why Is Fragmentation Needed?
Different networks may support different packet sizes.
For example:
The packet cannot fit into one frame on the outgoing link.
In IPv4, fragmentation may therefore occur if fragmentation is allowed.
How Does IPv4 Fragmentation Work?
- Router receives a datagram.
- Router checks the outgoing link MTU.
- If the packet fits, it is forwarded normally.
- If it is too large and fragmentation is permitted, the router divides it into smaller fragments.
- Each fragment receives its own IPv4 header.
- Identification, MF and Fragment Offset fields help the destination reassemble the original datagram.
IPv4 Identification Field
All fragments belonging to the same original IPv4 datagram use the same Identification value.
This helps the destination determine which fragments belong together.
MF — More Fragments Flag
MF stands for:
For normal IPv4 fragmentation:
- MF = 1 → More fragments follow.
- MF = 0 → This is the final fragment.
Fragment Offset
Fragment Offset tells the destination where the current fragment belongs inside the original datagram.
It is measured in units of:
Reassembly of Fragments
IPv4 fragments are reassembled at the final destination.
Reassembles Original Datagram
IPv4 Fragmentation
IPv4 supports fragmentation.
If an IPv4 router needs to forward a packet through a smaller-MTU link:
- It may fragment the packet if the DF flag does not prohibit fragmentation.
- Each fragment receives an IPv4 header.
- The destination performs reassembly.
IPv6 Fragmentation
IPv6 handles fragmentation differently.
IPv6 routers do not fragment transit packets.
If an IPv6 packet is too large for the next link, the router indicates the problem so the source can adjust.
If IPv6 fragmentation is required, it is performed by the source using the IPv6 Fragment extension header.
IPv4 vs IPv6 Fragmentation
| Point | IPv4 | IPv6 |
|---|---|---|
| Router Fragmentation | Can occur when required and permitted | Routers do not fragment transit packets |
| Source Fragmentation | Possible | Performed by source when required |
| Fragment Information | Present in IPv4 header fields | Uses Fragment extension header |
| Reassembly | Destination host | Destination host |
| Path MTU Discovery | Useful | Especially important |
DF — Don't Fragment Flag
IPv4 contains a flag called:
If DF is set and the packet is too large for the outgoing MTU, the router cannot fragment that packet.
The packet is discarded and an appropriate ICMP message may be returned to help the sender determine the MTU problem.
Path MTU Discovery
A complete network path may contain many links.
The smallest MTU on that route limits the largest packet that can travel end-to-end without fragmentation.
Bottleneck
In this example:
Solved IPv4 Fragmentation Numerical
Suppose:
Step 1: Find Original Data Size
Step 2: Find Maximum Data Per Full Fragment
Available space after IPv4 header:
But non-final fragment data should be a multiple of 8.
Step 3: Divide the Data
Step 4: Total Fragment Length
| Fragment | Data Bytes | Total Length | Offset | MF |
|---|---|---|---|---|
| 1 | 976 | 996 | 0 | 1 |
| 2 | 976 | 996 | 122 | 1 |
| 3 | 976 | 996 | 244 | 1 |
| 4 | 252 | 272 | 366 | 0 |
Offset Calculation
Simple Tunneling Overhead Numerical
Suppose a tunnel uses:
Ignoring any other tunnel headers:
This is a simplified calculation. Real tunnel overhead depends on the exact tunneling and security protocols being used.
Important Internetworking Design Issues
Addressing
Hosts and networks need logical addresses that work across the internetwork.Routing
Routers must select paths toward destination networks.Different MTUs
Networks may support different maximum packet sizes.Protocol Differences
Translation or tunneling may be required between unlike systems.Congestion
Heavy traffic may overload common links and routers.Failure Handling
Routes must adapt when links or routers fail.Packet Lifetime
TTL or Hop Limit prevents looping packets from remaining forever.Security
Packets crossing many networks may need authentication, encryption or filtering.Scalability
The internetwork should continue working efficiently as networks grow.Real-Life Examples of Internetworking
Why Is the Internet Called an Internetwork?
The Internet is not one physical network.
It is a huge collection of independent networks connected together.
These include:
- Home networks
- University networks
- Mobile networks
- ISP networks
- Cloud networks
- Corporate networks
- Government networks
Internet Protocol and routing allow all these networks to communicate.
Common Exam Mistakes
Not exactly. Internetworking mainly refers to connecting separate networks.
Wrong. A router mainly forwards packets between IP networks. Gateway is a broader term and may perform protocol conversion.
Wrong. Tunneling encapsulates a packet inside another packet. Fragmentation divides a packet into smaller pieces.
Wrong. IPv4 Fragment Offset is measured in units of 8 bytes.
Wrong. MF = 0 identifies the final fragment.
Wrong. The final fragment is often smaller.
Wrong. Reassembly is performed at the final destination.
Wrong. IPv6 routers do not perform transit fragmentation.
Wrong. The additional outer headers consume bytes.
Wrong. Path MTU is determined by the smallest MTU along the route.
40 Important Internetworking Questions With Answers
20 Internetworking MCQs With Answers
A. Connecting multiple networks
B. Formatting one hard disk
C. Creating one HTML page
D. Compressing files
A. Router
B. Keyboard
C. Printer
D. Monitor
A. IP addresses
B. Font names
C. File extensions
D. Screen size
A. Destination is on another network
B. Destination is always local
C. Monitor is off
D. Browser cache is full
A. Protocol conversion
B. Only screen rendering
C. Only file naming
D. Keyboard scanning
A. Encapsulating one packet inside another
B. Deleting packets
C. Increasing monitor size
D. Converting frames into passwords
A. Decapsulation
B. Fragmentation
C. Multiplexing
D. Modulation
A. Maximum Transmission Unit
B. Minimum Tunnel Unit
C. Maximum Transfer User
D. Main Transmission Utility
A. Divide a large packet into smaller pieces
B. Join routers
C. Encrypt passwords
D. Compress websites
A. 8-byte units
B. 16-byte units
C. 1 KB units
D. Seconds
A. More Fragments
B. Main Frame
C. Maximum Flow
D. Multiple Format
A. Final fragment
B. More fragments follow
C. Fragment lost
D. Router failed
A. Destination host
B. Every router
C. Source router only
D. DNS server
A. Router
B. HTML parser
C. Keyboard
D. Switch only
A. Do not fragment transit packets
B. Always fragment every packet
C. Use IPv4 Fragment Offset
D. Do not use MTU
A. Don't Fragment
B. Data Frame
C. Dynamic Forwarding
D. Destination Format
A. Smallest MTU on the route
B. Largest MTU on the route
C. Average packet size
D. Router memory
A. Adds header overhead
B. Removes all headers
C. Eliminates MTU concerns
D. Increases physical bandwidth automatically
A. Router mainly forwards packets; gateway may also translate protocols
B. Router and gateway always mean exactly the same thing
C. Fragmentation and tunneling are identical
D. IPv6 routers fragment all packets
A. A network of networks
B. One single Ethernet LAN
C. One router only
D. One computer
Frequently Asked Questions
What is internetworking in simple words?
Internetworking means connecting separate networks so devices on those networks can communicate.
What is the role of a router in internetworking?
A router examines destination IP addresses and forwards packets from one network toward another network.
What is the difference between a router and a gateway?
A router mainly forwards IP packets between networks, while a gateway is a broader device or software function that may also translate protocols or data formats.
What is tunneling?
Tunneling encapsulates an original packet inside another protocol so it can travel across an intermediate network.
What is fragmentation?
Fragmentation divides a large IP datagram into smaller fragments so it can cross a link with a smaller MTU.
What is Fragment Offset?
Fragment Offset tells the destination where a fragment's data belongs inside the original IPv4 datagram and is measured in units of 8 bytes.
Where are IPv4 fragments reassembled?
They are reassembled at the final destination host.
Can IPv6 routers fragment packets?
IPv6 routers do not fragment transit packets. The source handles IPv6 fragmentation when required.
What is Path MTU?
Path MTU is the smallest MTU among all the links used by an end-to-end route.
What is DF in IPv4?
DF means Don't Fragment. When it is set, IPv4 routers are not allowed to fragment that packet.
Why does tunneling create overhead?
Because tunneling adds one or more outer protocol headers around the original packet.
Why is the Internet called a network of networks?
Because it consists of many independent networks connected through routers and common Internet protocols.
Quick Internetworking Revision
Final Memory Trick:
Router moves packets between networks.
Gateway can translate between different systems.
Tunnel wraps one packet inside another.
Fragmentation breaks one big packet into smaller pieces.
