The network layer provides services to the transport layer. It
can be based on either virtual circuits or datagrams. In both cases, its main
job is routing packets from the source to the destination. In virtual-circuit
subnets, a routing decision is made when the virtual circuit is set up. In
datagram subnets, it is made on every packet.
Many routing algorithms are used in computer networks. Static
algorithms include shortest path routing and flooding. Dynamic algorithms
include distance vector routing and link state routing. Most actual networks use
one of these. Other important routing topics are hierarchical routing, routing
for mobile hosts, broadcast routing, multicast routing, and routing in
peer-to-peer networks.
Subnets can easily become congested, increasing the delay and
lowering the throughput for packets. Network designers attempt to avoid
congestion by proper design. Techniques include retransmission policy, caching,
flow control, and more. If congestion does occur, it must be dealt with. Choke
packets can be sent back, load can be shed, and other methods applied.
The next step beyond just dealing with congestion is to
actually try to achieve a promised quality of service. The methods that can be
used for this include buffering at the client, traffic shaping, resource
reservation, and admission control. Approaches that have been designed for good
quality of service include integrated services (including RSVP), differentiated
services, and MPLS.
Networks differ in various ways, so when multiple networks are
interconnected problems can occur. Sometimes the problems can be finessed by
tunneling a packet through a hostile network, but if the source and destination
networks are different, this approach fails. When different networks have
different maximum packet sizes, fragmentation may be called for.
The Internet has a rich variety of protocols related to the
network layer. These include the data transport protocol, IP, but also the
control protocols ICMP, ARP, and RARP, and the routing protocols OSPF and BGP.
The Internet is rapidly running out of IP addresses, so a new version of IP,
IPv6, has been developed.
No comments:
Post a Comment
silahkan membaca dan berkomentar