Class Note 22.02.21
Class Note 22.02.21
Class Note 22.02.21
Network
To separate the addresses used inside the home or business and the ones used
for the Internet, the Internet authorities have reserved three sets of addresses
as private addresses.
Any organization can use an address out of this set without permission from
the Internet authorities. Everyone knows that these reserved addresses are for
private networks. They are unique inside the organization, but they are not
unique globally. No router will forward a packet that has one of these
addresses as the destination address.
Network Address Translation
The number of home users and small businesses that want to use the
Internet is ever increasing. In the beginning, a user is connected to the
Internet with a dial-up line, which means that user was connected for a
specific period of time. An ISP with a block of addresses could dynamically
assign an address to this user. An address was given to a user when it was
needed. But today, home users and small businesses can be connected by
an ADSL and cable modem. In most situation, however only a portion of
computers in small network need access to the internet simultaneously. So
the number of allocated addresses does not have to match with the number
of computers in the network.
The site must be connected to the global Internet through router that runs
the NAT software.
A NAT implementation
Figure shows the private network uses private addresses. The router that
connects the network to the global address uses one private address and one
global address. The rest of the Internet sees only the NAT router with the
Address 200.24.5.8. But the private network is invisible to the rest of the
Internet.
Addresses Translation in a NAT
All the outgoing packets go through the NAT router, which replaces the source
address in the packet with global NAT address. All incoming packets also pass
through the NAT router, which replaces the destination address in the packet
with the appropriate private address.
Translation using one IP Address
In its simplest form, a translation table has only two columns; the private
address and the external address. When router translates the source address of
the outgoing packet, it also makes note of the destination address-where the
packet is going. When the response comes back from the destination, the
router uses the source address of the packet (as the external address) to find
the private address of the packet.
A private network cannot run a server program for clients outside of its
network if it is using NAT technology. Only one private network host can
access the external host.
NAT address translation table
An ISP that serves dial-up customers can use NAT technology to conserve
addresses. For example, suppose an ISP is granted 1000 addresses, but has
100,000 customers. Each of the customer is assigned a private network
address.
IPv6 Addresses
Despite all short-term solutions, address depletion is still a long-term problem
for the Internet. This and other problems in the IP protocol itself have been the
motivation for IPv6.
Only leading zero can be dropped. We can remove zeros all together and
replace them with double colon. Abbreviation is allowed only once per
address.
Network Layer
The network layer is responsible for the host-to-host delivery of messages.
This delivery includes many issues such as the design of logical addresses to
uniquely define any host connected to the Internet. It also requires some
routing protocols that help the network-layer packets to find their way from
the source to the destination.
If the packet is fragmented at the source or at routers along the path, the
network layer is responsible for waiting until all fragments arrive,
reassembling them and delivering them to the upper layer protocol. Routers
just inspect the addresses for the purpose of forwarding the packet to the
next network on the path.
Desirable Properties of a Router
Correctness and Simplicity: The packets are to be correctly delivered.
Simpler the routing algorithm, it is better since overhead is low. With
increasing complexity of the routing algorithms the overhead also
increases.
Fairness: Every node connected to the network should get a fair chance
of transmitting their packets. This is generally done on a first come first
serve basis.
• Every node keeps information about every other node in the network
• In case of adaptive routing, the routing calculations are done and updated
for all nodes.
This is essentially, a ‘divide and conquer’ strategy. The network is divided into
different regions and a router for a particular region knows only about its own
domain and other routers. Thus the network is viewed at two levels:
The sub-network level, where each node in a region has information about
its peers in the same region and about the region’s interface with other
regions. Different regions may have different ‘local’ routing algorithms.
One way of measuring the shortest path length is the number of hops. Another
metric is the geographic distance in kilometers. However, many other metrics
besides hops and physical distance are also possible. For example, each arc could
be labeled with the mean queueing and transmission delay for some standard test
packet as determined by hourly test runs. With this graph labeling, the shortest
path is the fastest path rather than the path with the fewest arcs or kilometers.
Cont.
Cont.
In the general case, the labels on the arcs could be computed as a function of
the distance, bandwidth, average traffic, communication cost, mean queue
length, measured delay, and other factors. By changing the weighting function,
the algorithm would then compute the ''shortest'' path measured according to
any one of a number of criteria or to a combination of criteria.
Several algorithms for computing the shortest path between two nodes of a graph
are known. This one is due to Dijkstra (1959). Each node is labeled (in
parentheses) with its distance from the source node along the best known path.
Initially, no paths are known, so all nodes are labeled with infinity. As the
algorithm proceeds and paths are found, the labels may change, reflecting better
paths. A label may be either tentative or permanent. Initially, all labels are
tentative. When it is discovered that a label represents the shortest possible path
from the source to that node, it is made permanent and never changed thereafter.
Cont.
Cont.
Example
Thank You