Академический Документы
Профессиональный Документы
Культура Документы
The internet is not a network at all, but a vast collection of different networks
that use certain common protocols and provide certain common services
Collection of networks is an Internet
Ethernet standard enable the computers in a local network to exchange
messages with each other.
Most Ethernet networks also use Internet protocols such as TCP or UDP
and IP.
They provide defined and well-supported methods for accomplishing flow
control and flexible addressing and routing of messages
TCP/IP reference model holds the Internet together
TCP/IP makes universal services possible to all machines on the Internet
Actual meaning a machine is on the Internet if it runs the TCP/IP protocol
stack, has an IP address, and can send IP packets to all the other machines
on the Internet
Internet has 4 main applications:
E-mail
News
Remote login
File transfer
To communicate over the Internet, a computer must have three things:
An IP address to identify the computer on the Internet Internet
Service Provider (ISP) can provide IP addresses
Ability to send and receive IP data grams
A connection to the router that can access the Internet
Connectionless internetworking
Datagram model
In this model the only service the network layer offers to
the transport layer is the ability to inject datagram into
the subnet (A sub network is a logically visible subdivision of
an IP network. The practice of dividing a network into sub networks
is called subnetting) and hope for the best.
IP addresses
A computer that uses the Internet Protocol must have an
IP address
A network administrator may manually assign an IP
address to each computer
Every host and router on the Internet have an IP
address, which encodes its network number and host
number
It is unique no two machines on the Internet have the
same IP address
All IP addresses are 32bits long and are used in the
source address and destination address fields of IP
packets.
IP addresses
The computer that uses IP must have an IP address.
The conventional way to express an IP address is in dotted-quad
format eg. 192.168.111.1
Assigning address
Each IP datagram includes the IP addresses of the datagrams
source and destination
A computers IP address must be unique within the network or
networks that the computer can communicate with
For communicating over internet, the address must be different from
the address of every other computer on the internet
Internet Corporation for Assigned Names and Numbers (ICANN) is
at the top which manages, assigning and allocation of IP addresses
Class A 0
Class B 10
Class C 110
Class D 1110
Class E 1111
Network
Network
Network
Host
Host
Host
Multicast address
Reserved fro future use
Classless addressing
With classless addressing the network address and IP
prefix are often expressed in the form:
xxx.xxx.xxx.xxx/n
Where, xxx.xxx.xxx.xxx is the lowest IP address in the
network and n is the no. of bits in the network address
portion of the IP address.
Eg. With a network address and IP prefix of
192.0.2.0/24,
The network address is 192.0.2
The final 8-bits in the IP address are 0 host address
SUBNETS
The part of the network (Ethernets) are called subnets.
Subnetting is the process of dividing a network into groups called
sub networks or subnets
The hosts within a subnet are typically physically near to each
other
Routers use network address to decide where to route traffic on
the Internet
Routers can use subnet IDs to decide where to route traffic within
a network
Subnetting helps to solve the shortage of available network
addresses.
In a subnet, the host address portion of an IP address has two
parts: a subnet ID and a host ID
Subnet ID same for all hosts in the subnet
Host ID unique in the subnet
The network address portion of the IP address is the same for all
of the hosts in all of the subnets in the network.
Subnet mask
Determining which bits in the host address are the subnet ID
requires using a 32-bit value is called the subnet mask
In the subnet mask, the bits that correspond to the bits in the
network address and the subnet ID are ones and the bits that
correspond to the bits in the host ID are zeros
Example- in class B network, 2 bytes-network address and two
bytes-host address.
The subnet mask for class B network with 8-bits of subnet ID is:
255.255.255.0 (255.255 network address, 255 subnet ID, 0
host address)
Program code can use subnet mask to determine if a source
address and destination address are in the same subnet.
To do this - perform (logical AND of the source address with
subnet mask) and compare the result with the (logical AND of
the destination address with subnet mask). If the result matches,
the destination is in the same subnet and the source can use
direct routing.
IP Header
Field
no.of bits
Version
Type of service
Total length
16
Identification
16
Flags
Fragment offset
13
Time to live
Protocol
Header checksum
Source addr.
16
32
Destination addr.
32
IP address of destination
Options
varies
A network may use any variety of ways of assigning IP address to its hosts.
One way network administrator configure the address to each host.
But, it makes more sense to have a single-location in charge of assigning IP
addresses.
The Dynamic Host Configuration Protocol (DHCP- RFC2131) defines three
ways of doing this
They are: manual, automatic and dynamic.
Method of assigning
IP addr.
Stores addr. In a
single server?
Method of adding a
Host
Method of removing
a host
DHCP Manual
Yes
Manual
Manual
No
DHCP Automatic
Yes
Automatic
Manual
No
DHCP Dynamic
Yes
Automatic
Automatic
Yes
Congestion
When too many packets are present in the subnet, performance degrades.
This situation is called congestion.
At very high traffic, performance collapses completely and almost no
packets are delivered.
Causes:
If streams of packets begin arriving on different lines and all need the
same output line
In sufficient memory to hold all the packets
Slow processors
Low bandwidth