Exp 3
Exp 3
Exp 3
Translation)
APPARATUS:
NetSim Software Version 12.0.18
THEORY:
Public Address:
A public IP address is assigned to every computer that connects to the Internet where
each IP is unique. Hence there cannot exist two computers with the same public IP
address all over the Internet. This addressing scheme makes it possible for the
computers to “find each other” online and exchange information. User has no control
over the IP address (public) that is assigned to the computer. The public IP address is
assigned to the computer by the Internet Service Provider as soon as the computer is
connected to the Internet gateway.
Private Address:
Private IP addresses are used for numbering the computers in a private network
including home, school and business LANs in airports and hotels which makes it
possible for the computers in the network to communicate with each other. For
example, if a network A consists of 30 computers each of them can be given an IP
starting from 192.168.0.1 to 192.168.0.30.
A device that is configured with NAT will have at least one interface to the inside
network and one to the outside network. In a typical environment, NAT is configured
at the exit device between a stub domain (inside network) and the backbone. When a
packet leaves the domain, NAT translates the locally significant source address into a
globally unique address. When a packet enters the domain, NAT translates the
globally unique destination address into a local address. If more than one exit point
exists, each NAT must have the same translation table. NAT can be configured to
advertise to the outside world only one address for the entire network. This ability
provides additional security by effectively hiding the entire internal network behind
that one address. If NAT cannot allocate an address because it has run out of
addresses, it drops the packet and sends an Internet Control Message Protocol
(ICMP) host unreachable packet to the destination.
NAT is secure since it hides network from the Internet. All communications from
internal private network are handled by the NAT device, which will ensure all the
appropriate translations are performed and provide a flawless connection between
internal devices and the Internet. In the above figure, a simple network of 4 hosts and
one router that connects this network to the Internet. All hosts in the network have a
private Class C IP Address, including the router's private interface (192.168.0.1),
while the public interface that's connected to the Internet has a real IP address
(203.31.220.134). This is the IP address the Internet sees as all internal IP addresses
are hidden.
Network Setup:
Open NetSim and click Examples > Experiments > Understanding-Public-IP-
Address-and-NAT
PROCEDURE:
The following set of procedures were done to generate this sample:
Step 1: A network scenario is designed in NetSim GUI comprising of 6 Wired
Nodes, 2 L2 Switches, and 4 Routers in the “Internetworks” Network
Library.
Step 4: Right click on the Application Flow App1 CBR and select Properties or click
on the Application icon present in the top ribbon/toolbar.
A CBR Application is generated from Wired Node 7 i.e. Source to Wired Node 10
i.e. Destination with Packet Size remaining 1460Bytes and Inter Arrival Time
remaining 20000µs.
Additionally, the “Start Time(s)” parameter is set to 50, while configuring the
application. This time is usually set to be greater than the time taken for OSPF
Convergence (i.e. Exchange of OSPF information between all the routers), and it
increases as the size of the network increases.
Step 5: Packet Trace is enabled, and hence we are able to track the route which the
packets have chosen to reach the destination.
Step 6: Run the Simulation for 100 Seconds.
Output:
After simulation open Packet Trace and filter Packet ID to 1.
RESULT: