*
*

OSI Network LayerIPv4Anatomia di un indirizzo IPv4 Network layer - interaction from host to organize The Network layer, or OSI layer 3, offers services to exchange the individual pieces of data end the network between identified finish devices. To attain this end-to-end transport, great 3 provides four simple processes: Addressing Encapsulation Routing Decapsulation Addressing First, the Network great must carry out a mechanism for addressing these end devices. If individual piece of data are to be directed to an finish device, that an equipment must have actually a unique address. In an IPv4 network, when this attend to is added to a device, the an equipment is then described as a host. Encapsulation Second, the Network great must administer encapsulation. Not only should the tools be determined with one address, the individual pieces - the Network great PDUs - must additionally contain these addresses. During the encapsulation process, class 3 receives the class 4 PDU and also adds a great 3 header, or label, to produce the layer 3 PDU. As soon as referring to the Network layer, we call this PDU a packet. Once a packet is created, the header should contain, among other information, the address of the hold to which it is being sent. This resolve is referred to as the destination address. The class 3 header additionally contains the deal with of the originating host. This deal with is called the source address. After ~ the Network layer completes its encapsulation process, the packet is sent out down to the Data link layer to be all set for transportation over the media. Routing Next, the Network class must carry out services to straight these packets come their location host. The resource and location hosts are not constantly connected to the exact same network. In fact, the packet could have to take trip through plenty of different networks. Follow me the way, each packet should be guided through the network to reach its last destination. Intermediary devices that attach the networks are referred to as routers. The function of the router is to select paths for and also direct packets toward their destination. This procedure is recognized as routing. Throughout the routing v an internetwork, the packet may traverse plenty of intermediary devices. Each route that a packet take away to with the next device is referred to as a hop. Together the packet is forwarded, its components (the transfer layer PDU), remain intact until the destination host is reached. Decapsulation Finally, the packet arrives at the location host and is processed at layer 3. The organize examines the destination address to verify that the packet was addressed to this device. If the attend to is correct, the packet is decapsulated through the Network layer and the layer 4 PDU contained in the packet is passed up to the ideal service at transport layer. Uneven the carry layer (OSI class 4), which manages the data transport between the processes running ~ above each end host, Network class protocols specify the packet structure and processing offered to lug the data from one organize to an additional host. Operation without regard to the application data lugged in every packet permits the Network great to bring packets for multiple varieties of communications in between multiple hosts.
*
Network layer Protocols Protocols applied at the Network layer that bring user data include: net Protocol variation 4 (IPv4) net Protocol variation 6 (IPv6) Novell Internetwork Packet Exchange (IPX) AppleTalk Connectionless Network business (CLNS/DECNet) The net Protocol (IPv4 and also IPv6) is the most widely-used class 3 data moving protocol and will be the emphasis of this course. Discussion of the various other protocols will certainly be minimal. The IP v4 Protocol - example Network layer Protocol role of IPv4 As presented in the figure, the Network layer services enforced by the TCP/IP protocol suite room the net Protocol (IP). Variation 4 that IP (IPv4) is right now the most widely-used version of IP. That is the just Layer 3 protocol the is supplied to carry user data over the Internet and is the focus of the CCNA. Therefore, it will be the instance we usage for Network layer protocols in this course. IP version 6 (IPv6) is developed and also being enforced in some areas. IPv6 will operate alongside IPv4 and also may replace it in the future. The services detailed by IP, as well as the packet header structure and also contents, space specified by one of two people IPv4 protocol or IPv6 protocol. These services and packet framework are used to encapsulate UDP datagrams or TCP segments for their trip throughout an internetwork. The attributes of every protocol are different. Understanding these features will allow you to know the operation of the services explained by this protocol. The web Protocol was designed together a protocol v low overhead. It offers only the features that are crucial to supply a packet native a resource to a destination over an interconnected device of networks. The protocol was no designed come track and also manage the circulation of packets. These features are perform by various other protocols in various other layers. IPv4 straightforward characteristics: Connectionless - No connection is established prior to sending data packets. Est initiative (unreliable) - No overhead is used to insurance packet delivery. Media independent - Operates individually of the tool carrying the data.
*
The IP v4 Protocol - Connectionless Connectionless Service an example of connectionless communication is sending a letter come someone there is no notifying the recipient in advance. As presented in the figure, the postal service still bring away the letter and also delivers it to the recipient. Connectionless data interactions works ~ above the same principle. IP packets are sent out without notifying the end host that they space coming. Connection-oriented protocols, such as TCP, need that manage data it is in exchanged to develop the connection too as extr fields in the PDU header. Because IP is connectionless, it requires no early exchange of control information to create an end-to-end connection prior to packets space forwarded, nor does that require added fields in the PDU header to preserve this connection. This procedure greatly reduce the overhead of IP. Connectionless packet distribution may, however, result in packets showing up at the location out that sequence. If out-of-order or absent packets develop problems because that the application using the data, then top layer solutions will have to resolve these issues. The IP v4 Protocol - finest Effort ideal Effort business (unreliable) The IP protocol does not burden the IP service with providing reliability. Contrasted to a dependable protocol, the IP header is smaller. Transferring these smaller headers requires less overhead. Much less overhead way less hold-up in delivery. This characteristic is preferable for a great 3 protocol. The mission of layer 3 is to transport the packets between the hosts while place as tiny burden on the network together possible. Great 3 is not concerned with or even conscious of the type of interaction contained within of a packet. This obligation is the function of the upper layers as required. The upper layers deserve to decide if the communication between services requirements reliability and also if this interaction can tolerate the overhead dependability requires. IP is regularly referred to together an unreliable protocol. Unreliable in this context does not mean that IP works appropriately sometimes and does not function well at other times. No one does it typical that the is unsuitable together a data communications protocol. Unreliable way simply that IP go not have actually the capacity to manage, and also recover from, undelivered or corrupt packets. Because protocols at various other layers can control reliability, IP is permitted to role very effectively at the Network layer. If we had reliability overhead in our Layer 3 protocol, then communications that execute not require relationships or dependability would be burdened v the bandwidth consumption and delay produced by this overhead. In the TCP/IP suite, the move layer can choose either TCP or UDP, based upon the requirements of the communication. Similar to all class isolation listed by network models, leaving the integrity decision come the deliver layer renders IP more adaptable and also accommodating for different varieties of communication. The header of one IP packet walk not encompass fields compelled for trustworthy data delivery. There room no acknowledgments that packet delivery. There is no error control for data. Nor is over there any kind of packet tracking; therefore, over there is no possibility for packet retransmissions.
*
The IP v4 Protocol - Media live independence Media live independence The Network great is likewise not burdened v the qualities of the media on which packets will certainly be transported. IPv4 and also IPv6 operate separately of the media that carry the data at lower layers the the protocol stack. As presented in the figure, any individual IP packet deserve to be connected electrically end cable, as optical signals end fiber, or wirelessly as radio signals. That is the responsibility of the OSI Data attach layer to take it an IP packet and prepare that for infection over the communications medium. This way that the carry of IP packets is not limited to any details medium. Over there is, however, one significant characteristic of the media the the Network layer considers: the maximum dimension of PDU that each medium have the right to transport. This characteristic is referred to as the Maximum infection Unit (MTU). Component of the manage communication in between the Data link layer and also the Network layer is the establishment of a maximum dimension for the packet. The Data connect layer passes the MTU increase to the Network layer. The Network layer climate determines how huge to produce the packets. In some cases, one intermediary maker - usually a router - will require to break-up up a packet when forwarding it from one media to a media through a smaller sized MTU. This procedure is dubbed fragmenting the packet or fragmentation.
*
IP v4 Packet - Packaging the deliver Layer PDU IPv4 encapsulates, or packages, the transport layer segment or datagram so that the network can deliver it come the location host. Click the procedures in the number to see this process. The IPv4 encapsulation continues to be in ar from the time the packet pipeline the Network great of the originating hold until it come at the Network layer of the destination host. The procedure of encapsulating data by layer enables the solutions at the different layers to develop and also scale there is no affecting other layers. This way that deliver layer segments can be conveniently packaged by present Network great protocols, such together IPv4 and also IPv6 or through any brand-new protocol that might be emerged in the future. Routers have the right to implement these different Network great protocols to operate concurrently end a network to and from the exact same or various hosts. The routing performed by these intermediary devices only considers the contents of the packet header the encapsulates the segment. In all cases, the data portion of the packet - the is, the encapsulated carry layer PDU - continues to be unchanged during the Network great processes.
*
IP v4 Packet Header As presented in the figure, one IPv4 protocol defines countless different areas in the packet header. These fields contain binary worths that the IPv4 services reference as they forward packets throughout the network. This food will take into consideration these 6 crucial fields: IP source Address IP Destination deal with Time-to-Live (TTL) Type-of-Service (ToS) Protocol Fragment offset IP Destination resolve The IP Destination address field contains a 32-bit binary worth that represents the packet location Network layer host address. IP source Address The IP resource Address field has a 32-bit binary value that represents the packet source Network layer organize address. Time-to-Live The Time-to-Live (TTL) is an 8-bit binary worth that indicates the remaining "life" that the packet. The TTL value is diminished by at least one every time the packet is handle by a router (that is, each hop). As soon as the value becomes zero, the router discards or fall the packet and it is gotten rid of from the network data flow. This mechanism prevents packets the cannot reach their destination from being forwarded indefinitely in between routers in a routing loop. If routing loops were allowed to continue, the network would become congested with data packets that will never reach their destination. Decrementing the TTL value at every hop ensures that it ultimately becomes zero and that the packet through the expired TTL field will be dropped. Protocol This 8-bit binary value indicates the data payload type that the packet is carrying. The Protocol field allows the Network class to happen the data come the appropriate upper-layer protocol. Example values are: 01 ICMP 06 TCP 17 UDP Type-of-Service The Type-of-Service field consists of an 8-bit binary worth that is offered to identify the priority of each packet. This value permits a Quality-of-Service (QoS) mechanism to be used to high priority packets, such as those transferring telephony voice data. The router processing the packets can be configured to decision which packet that is to forward first based top top the Type-of-Service value. Fragment balance out As mentioned earlier, a router may need to fragment a packet as soon as forwarding that from one medium to one more medium that has a smaller MTU. As soon as fragmentation occurs, the IPv4 packet offers the Fragment counter field and the MF flag in the IP header to reconstruct the packet as soon as it come at the location host. The fragment offset ar identifies the order in i m sorry to ar the packet fragment in the reconstruction. much more Fragments flag The much more Fragments (MF) flag is a single bit in the Flag field used through the Fragment counter for the fragmentation and reconstruction the packets. The more Fragments flag bit is set, it way that the is not the last fragment the a packet. As soon as a receiving host sees a packet arrive v the MF = 1, it examines the Fragment balance out to view where this fragment is to be placed in the reconstructed packet. When a receiving host receives a frame with the MF = 0 and a non-zero worth in the Fragment offset, it places that fragment together the last component of the rebuilded packet. An unfragmented packet has actually all zero fragmentation info (MF = 0, fragment counter =0). Don"t Fragment flag The Don"t Fragment (DF) flag is a single bit in the Flag ar that indicates that fragmentation the the packet is not allowed. If the Don"t Fragment flag little is set, then fragmentation of this packet is not permitted. If a router demands to fragment a packet to enable it to be passed bottom to the Data attach layer but the DF little is collection to 1, climate the router will certainly discard this packet.
*
variation - includes the IP version number (4). Header size (IHL) - specifies the dimension of the packet header. Packet length - This field gives the entire packet size, consisting of header and data, in bytes. to know - This field is mostly used for uniquely identifying fragments of an original IP packet. Header Checksum - The checksum field is offered for error checking the packet header. Choices - there is provision for added fields in the IPv4 header to administer other services however these are rarely used. Typical IP Packet The number represents a complete IP packet with common header field values. Ver = 4; IP version. IHL = 5; dimension of header in 32 little bit words (4 bytes). This header is 5*4 = 20 bytes, the minimum precious size. Complete Length = 472; dimension of packet (header and data) is 472 bytes. Identification = 111; initial packet i would (required if it is later fragmented). Flag = 0; denotes packet have the right to be fragmented if required. Fragment counter = 0; denotes the this packet is not right now fragmented (there is no offset). Time to Live = 123; denotes the great 3 processing time in seconds before the packet is reduce (decremented by at the very least 1 every time a maker processes the packet header). Protocol = 6; denotes the the data carried by this packet is a TCP segment .
*
Networks - splitting Hosts into teams Networks - Separating hosts into usual Groups one of the major roles of the Network great is to administer a mechanism for addressing hosts. Together the number of hosts top top the network grows, an ext planning is compelled to regulate and attend to the network. Separating Networks quite than having actually all master everywhere associated to one vast global network, the is more practical and also manageable to team hosts into specific networks. Historically, IP-based networks have their roots together one huge network. Together this solitary network grew, so did the issues related to its growth. To minimize these issues, the huge network was separated right into smaller networks the were interconnected. These smaller networks space often dubbed subnetworks or subnets. Network and also subnet room terms frequently used interchangeably to refer to any type of network mechanism made possible by the shared common communication protocols of the TCP/IP model. Similarly, together our networks grow, castle may come to be too huge to control as a single network. At the point, we must divide our network. As soon as we plan the department of the network, we need to team together those master with common factors right into the same network. As shown in the figure, networks can be grouped based upon factors that include: geographical location function Ownership
*
Grouping hosts Geographically we can team network hosts with each other geographically. Grouping hosts at the same ar - such as each building on a campus or every floor that a multi-level structure - into separate networks can improve network management and operation. Grouping master for details Purposes customers who have similar tasks typically use usual software, typical tools, and also have usual traffic patterns. We can regularly reduce the traffic required by the usage of certain software and tools by placing the resources to support them in the network v the users. The volume that network data traffic produced by different applications can vary significantly. Separating networks based on usage facilitates the effective allocation the network resources and also authorized accessibility to those resources. Network professionals need to balance the variety of hosts on a network through the lot of traffic generated by the users. For example, take into consideration a service that employs graphic designers who usage the network come share very large multimedia files. These documents consume most of the available bandwidth for many of the functioning day. The business likewise employs salespersons who just logged in when a work to document their sales transactions, i beg your pardon generates minimal network traffic. In this scenario, the best use of network resources would it is in to produce several small networks come which a couple of designers had accessibility and one bigger network that all the salespersons used. Group Hosts because that Ownership utilizing an organizational (company, department) basis for developing networks assists in controlling accessibility to the devices and also data as well as the management of the networks. In one large network, that is much more complicated to define and also limit the responsibility for the network personnel. Dividing hosts right into separate networks provides a border for security enforcement and also management of each network. Network design: http://www.cisco.com/univercd/cc/td/doc/cisintwk/idg4/nd2002.htm
*
Why different Hosts into Networks? - power As pointed out previously, as networks thrive larger they current problems that have the right to be at least partially alleviated by splitting the network into smaller interconnected networks. typical issues with huge networks are: Performance destruction Security issues address Management improving Performance large numbers the hosts associated to a solitary network can create volumes that data website traffic that may stretch, if not overwhelm, network resources such together bandwidth and also routing capability. Dividing huge networks so the hosts who require to connect are grouped together reduces the traffic throughout the internetworks. In enhancement to the actual data communications between hosts, network management and also control website traffic (overhead) also increases through the number of hosts. A far-ranging contributor to this overhead have the right to be network broadcasts. A transfer is a article sent indigenous one host to all other hosts on the network. Typically, a organize initiates a broadcast as soon as information about another unknown organize is required. Broadcasts are a necessary and also useful tool provided by protocols to enable data communication on networks. However, huge numbers of master generate large numbers the broadcasts the consume network bandwidth. And also because every other host has actually to procedure the broadcast packet the receives, the various other productive attributes that a hold is performing are likewise interrupted or degraded. Broadcasts are consisted of within a network. In this context, a network is additionally known together a transfer domain. Controlling the size of broadcast domain names by splitting a network right into subnets ensures the network and also host performances room not degraded to unacceptable levels.
*
*
Why separate Hosts into Networks? - protection The IP-based network the has end up being the net originally had a small number of trusted customers in U.S. Federal government agencies and also the research establishments that lock sponsored. In this tiny community, defense was not a far-ranging issue. The instance has changed as individuals, businesses, and organizations have emerged their own IP networks that link to the Internet. The devices, services, communications, and data space the building of those network owners. Network tools from various other companies and organizations carry out not require to attach to your network. Separating networks based on ownership method that access to and also from resources outside each network have the right to be prohibited, allowed, or monitored. Internetwork access within a agency or organization have the right to be likewise secured. Because that example, a college network have the right to be separated into administrative, research, and student subnetworks. Splitting a network based upon user accessibility is a method to certain communications and data native unauthorized access by customers both in ~ the organization and also outside it. Security between networks is applied in one intermediary device (a router or firewall appliance) at the perimeter that the network. The firewall function performed by this an equipment permits just known, reliable data to access the network. IP network security: http://www.cisco.com/univercd/cc/td/doc/cisintwk/ics/cs003.htm
*
Why separate Hosts into Networks? - resolve Management The Internet is composed of numerous hosts, every of which is determined by its distinct Network layer address. To intend each hold to know the deal with of every other hold would impose a handling burden on these network gadgets that would certainly severely degrade your performance. Dividing big networks so that hosts who need to communicate are grouped with each other reduces the unnecessary overhead of every hosts needing to recognize all addresses. Because that all other destinations, the master only need to recognize the deal with of an intermediary device, come which they send packets because that all other destinations addresses. This intermediary maker is called a gateway. The gateway is a router on a network the serves as an leave from that network.
*
exactly how Do We different Hosts right into Networks? - hierarchical Addressing To have the ability to divide networks, we need hierarchical addressing. A hierarchical attend to uniquely identifies each host. It likewise has level that aid in forwarding packets across internetworks, which enables a network to it is in divided based on those levels. To assistance data communications in between networks end internetworks, Network great addressing schemes are hierarchical. Ordered Network layer addresses work in lot the exact same way. Great 3 addresses supply the network section of the address. Routers forward packets between networks by referring just to the part of the Network layer address that is compelled to direct the packet toward the location network. By the time the packet arrives at the destination host network, the totality destination address of the host will have been offered to provide the packet. If a huge network requirements to be divided into smaller sized networks, additional layers that addressing have the right to be created. Making use of a hierarchical addressing scheme method that the higher levels that the resolve (similar to the country in the postal address) can be retained, with the middle level denoting the network addresses (state or city) and also the lower level the individual hosts. Dividing the Networks - Networks native Networks If a huge network needs to be divided, additional layers that addressing can be created. Using ordered addressing means that the higher levels the the resolve are retained; with a subnetwork level and then the organize level. The reasonable 32-bit IPv4 deal with is hierarchical and is comprised of 2 parts. The very first part identify the network and also the second component identifies a host on the network. Both parts are forced for a finish IP address. For convenience IPv4 addresses are separated in four groups the eight bits (octets). Every octet is converted to the decimal value and also the complete address written together the four decimal worths separated by a dot (period), f or example - 192.168.18.57 In this example, together the figure shows, the very first three octets, (192.168.18), deserve to identify the network part of the address, and the last octet, (57) identify the host. This is hierarchical addressing due to the fact that the network part indicates the network on i beg your pardon each distinctive host resolve is located. Routers only need to know exactly how to reach every network, rather than needing to understand the place of every individual host. V IPv4 ordered addressing, the network part of the deal with for all hosts in a network is the same. To divide a network, the network part of the address is extended to use bits native the host section of the address. These borrowed host bits space then used as network bits to stand for the different subnetworks in ~ the range of the initial network. Given that an IPv4 deal with is 32 bits, when organize bits are offered to division a network the an ext subnetworks created results in fewer hosts for each subnetwork. Regardless of the variety of subnetworks created however, every 32 bits are compelled to recognize an separation, personal, instance host. The number of bits that an address used together the network portion is dubbed the prefix length. For instance if a network uses 24 bits come express the network section of an attend to the prefix is stated to be /24. In the tools in one IPv4 network, a different 32-bit number dubbed a subnet mask suggests the prefix. Prolonging the prefix size or subnet mask enables the development of this subnetworks. In this method network administrators have actually the adaptability to division networks come meet various needs, such together location, regulating network performance, and also security, when ensuring each host has actually a distinctive address.
*
Routing - exactly how Our Data Packets room Handled maker Parameters - Supporting communication Outside our Network in ~ a network or a subnetwork, hosts connect with each other without the require for any kind of Network layer intermediary device. As soon as a organize needs to interact with one more network, an intermediary device, or router, acts as a gateway come the various other network. As a component of the configuration, a host has actually a default gateway address defined. As shown in the figure, this gateway address is the deal with of a router user interface that is connected to the exact same network together the host. Store in mind the it is no feasible because that a specific host to know the address of every maker on the web with which it may need to communicate. To interact with a device on an additional network, a organize uses the address of this gateway, or default gateway, to forward a packet exterior the regional network. The router additionally needs a route that defines where to forward the packet next. This is referred to as the next-hop address. If a course is easily accessible to the router, the router will forward the packet come the next-hop router that supplies a route to the location network.
*
IP Packets - transporting Data end to end as you know, the function of the Network layer is to transfer data indigenous the hold that originates the data come the host that uses it. During encapsulation at the resource host, one IP packet is constructed at class 3 to transfer the layer 4 PDU. If the location host is in the very same network as the resource host, the packet is delivered in between the two hosts on the local media without the need for a router. However, if the destination host and resource host room not in the exact same network, the packet might be transferring a carry layer PDU across many networks and also through countless routers. As it does, the information included within is not altered by any kind of routers when forwarding decisions are made. At each hop, the forwarding decisions are based upon the details in the IP packet header. The packet v its Network layer encapsulation additionally is basically undamaged throughout the complete process, from the source host to the destination host. If communication is in between hosts in various networks, the neighborhood network it is intended the packet indigenous the resource to that gateway router. The router examines the network section of the packet destination address and forwards the packet come the suitable interface. If the location network is directly associated to this router, the packet is forwarded straight to the host. If the destination network is not straight connected, the packet is forwarded on come a second router the is the next-hop router. The packet forwarding then becomes the responsibility of this 2nd router. Many routers or hops along the means may procedure the packet prior to reaching the destination.
*
A Gateway - The means Out of our Network The gateway, also known as the default gateway, is necessary to send a packet out of the local network. If the network portion of the destination address of the packet is different from the network that the originating host, the packet has to be routed external the original network. To execute this, the packet is sent to the gateway. This gateway is a router interface linked to the local network. The gateway interface has actually a Network layer address that matches the network resolve of the hosts. The hosts are configured to acknowledge that attend to as the gateway. Default Gateway The default gateway is configured ~ above a host. On a windows computer, the net Protocol (TCP/IP) Properties devices are offered to go into the default gateway IPv4 address. Both the organize IPv4 address and the gateway attend to must have actually the exact same network (and subnet, if used) portion of their corresponding addresses. Organize gateway configuration: http://www.microsoft.com/technet/community/columns/cableguy/cg0903.mspx
*
As presented in the figure, the IP deal with of the default gateway of a host deserve to be viewed by issuing the ipconfig or route regulates at the command line of a home windows computer. The course command is also used in a Linux or UNIX host.
*
No packet can be forwarded without a route. Whether the packet is originating in a organize or being forwarded by one intermediary device, the an equipment must have a route to identify where to front the packet. A organize must either forward a packet come the organize on the regional network or come the gateway, as appropriate. To forward the packets, the organize must have routes that represent these destinations. A router renders a forwarding decision because that each packet that arrives in ~ the gateway interface. This forwarding process is referred to as routing. To forward a packet come a location network, the router requires a route to the network. If a path to a location network does not exist, the packet can not be forwarded. The destination network might be a variety of routers or hops away from the gateway. The course to the network would only show the next-hop router to which the packet is to it is in forwarded, no the last router. The routing procedure uses a route to map the destination network address to the next hop and also then forwards the packet to this next-hop address.
*
A route - The route to a Network A course for packets because that remote destinations is included using the default gateway address as the next hop. Although it is not typically done, a host can likewise have routes manually included through configurations. Like finish devices, routers also add routes because that the connected networks to their routing table. As soon as a router user interface is configured with an IP attend to and subnet mask, the interface becomes component of the network. The routing table now includes that network together a directly linked network. All various other routes, however, have to be configured or got via a routing protocol. To forward a packet the router must understand where come send it. This details is easily accessible as courses in a routing table. The routing table stores information about connected and remote networks. Connected networks are straight attached to one of the router interfaces. This interfaces are the gateways for the master on various local networks. Far networks space networks that room not directly connected to the router. Routes to these networks have the right to be manually configured on the router by the network administrator or learned instantly using dynamic routing protocols. Paths in a routing table have actually three key features: destination network Next-hop Metric The router matches the destination resolve in the packet header through the destination network the a course in the routing table and also forwards the packet come the next-hop router mentioned by that route. If there space two or much more possible courses to the exact same destination, the metric is supplied to decision which route appears on the routing table. As presented in the figure, the routing table in a Cisco router can be examined through the present ip path command. Note: The routing process and the role of metrics room the topic of a later course and also will be extended in information there. As you know, packets cannot be forwarded by the router without a route. If a path representing the location network is no on the routing table, the packet will certainly be dropped (that is, no forwarded). The equivalent route could be either a associated route or a course to a remote network. The router may additionally use a default course to forward the packet. The default course is supplied when the destination network is not stood for by any type of other course in the routing table.
*
hold Routing Table A organize creates the routes offered to front the packets it originates. These routes are obtained from the linked network and the configuration of the default gateway. Hosts automatically include all linked networks to the routes. These courses for the regional networks allow packets come be yielded to hosts the are associated to this networks. Hosts also require a regional routing table come ensure that Network great packets are directed to the correct location network. Unlike the routing table in a router, which includes both local and also remote routes, the regional table of the host frequently contains the direct connection or connections to the network and also its very own default route to the gateway. Configuring the default gateway resolve on the organize creates the neighborhood default route. As shown in the figure, the routing table the a computer host can be check at the command heat by issuing the netstat -r, route, or route print commands. In part circumstances, you may want to indicate an ext specific courses from a host. You deserve to use the following choices for the route command to change the routing table contents: route add route DELETE route change
*
The location Network Routing Table Entries The location network displayed in a routing table entry, referred to as a route, to represent a variety of hold addresses and also sometimes a range of network and also host addresses. The hierarchical nature of class 3 addressing method that one route entry might refer to a big general network and also another entry might refer come a subnet of that same network. When forwarding a packet, the router will select the most certain route. Returning to the earlier postal addressing example, take into consideration sending the very same letter from Japan to 170 West Tasman Drive mountain Jose, California USA. Which address would you use: "USA" or "San Jose California USA" or "West Tasman Drive mountain Jose, California USA" or "170 West Tasman Drive mountain Jose, California USA"? The fourth and also most particular address would be used. However, for another letter whereby the street number to be unknown, the 3rd option would carry out the best address match. In the exact same way, a packet destined come the subnet that a bigger network would be routed using the course to the subnet. However, a packet handle to a different subnet within the same larger network would be routed using the an ext general entry. As displayed in the figure, if a packet arrives at a router with the destination attend to of 10.1.1.55, the router forwards the packet come a next-hop router linked with a route to network 10.1.1.0. If a route to 10.1.1.0 is not noted on the routing, however a path to 10.1.0.0 is available, the packet is forwarded to the next-hop router for that network. Therefore, the precedence of route an option for the packet going come 10.1.1.55 would be: 1. 10.1.1.0 2. 10.1.0.0 3. 10.0.0.0 4. 0.0.0.0 (Default route if configured) 5. Reduce
*
Default course A router have the right to be configured to have actually a default route. A default path is a path that will enhance all location networks. In IPv4 networks, the deal with 0.0.0.0 is supplied for this purpose. The default course is supplied to front packets for which there is no entry in the routing table because that the destination network. Packets with a destination network attend to that go not match a more specific course in the routing table room forwarded to the next-hop router connected with the default route.
*
The following Hop - whereby the Packet Goes next A next-hop is the resolve of the maker that will process the packet next. For a organize on a network, the deal with of the default gateway (router interface) is the next-hop for every packets destined for one more network. In the routing table of a router, each course lists a next hop for each destination resolve that is incorporated by the route. As each packet arrives at a router, the location network resolve is examined and also compared to the paths in the routing table. As soon as a matching route is determined, the following hop attend to for that path is supplied to front of the packet towards its destination. The router then forwards the packet the end the interface to which the next-hop router is connected. The next-hop router is the gateway to networks past that intermediary destination. Networks directly connected to a router have actually no next-hop resolve because over there is no intermediate Layer 3 an equipment between the router and that network. The router deserve to forward packets directly out the interface onto the network to the destination host. Part routes deserve to have many next-hops. This indicates that there room multiple routes to the same destination network. These space parallel routes that the router deserve to use to forward packets.
*
Packet Forwarding - moving the Packet towards its location Routing is excellent packet-by-packet and also hop-by-hop. Every packet is treated individually in every router along the path. At each hop, the router examines the destination IP deal with for every packet and then check the routing table for forwarding information. The router will do one of three points with the packet: front it come the next-hop router front it to the destination host Drop the Packet Examination together an intermediary device, a router procedures the packet at the Network layer. However, packets that arrive at a router"s interfaces are encapsulated as a Data link layer (Layer 2) PDU. As present in the figure, the router an initial discards the class 2 encapsulation so that the packet have the right to be examined. Following Hop choice In the router, the destination deal with in a packet header is examined. If a equivalent route in the routing table reflects that the location network is directly associated to the router, the packet is forwarded to the interface to which the network is connected. In this case, over there is no next-hop. Come be put onto the connected network, the packet needs to be very first re-encapsulated through the class 2 protocol and also then forwarded the end the interface. If the route equivalent the location network the the packet is a remote network, the packet is forwarded to the indicated interface, encapsulated through the great 2 protocol, and also sent come the next-hop address.
*
making use of the Default route As presented in the figure, if the routing table does no contain a more specific path entry because that an getting here packet, the packet is forwarded come the interface suggested by a default route, if one exists. At this interface, the packet is encapsulated through the class 2 protocol and also sent come the next-hop router. The default path is also known together the Gateway of last Resort. This process may happen a number of times until the packet will its destination network. The router at every hop knows only the address of the next-hop; that does not recognize the details the the pathway come the remote location host. Furthermore, not all packets going come the same destination will it is in forwarded to the exact same next-hop at each router. Routers along the way may learn new routes when the interaction is taking place and also forward later packets to different next-hops. Default routes are important due to the fact that the gateway router is not likely to have actually a course to every feasible network ~ above the Internet. If the packet is forwarded using a default route, the should at some point arrive in ~ a router that has actually a certain route to the destination network. This router may be the router to which this network is attached. In this case, this router will certainly forward the packet over the neighborhood network come the location host.
*
together a packet passes v the hops in the internetwork, every routers require a course to front a packet. If, at any router, no path for the location network is found in the routing table and also there is no default route, the packet is dropped. IP has actually no provision to return a packet to the previous router if a details router has nowhere to send the packet. Such a function would detract native the protocol"s efficiency and also low overhead. Other protocols are provided to report such errors.
*
Routing Processes: just how Routes room Learned Routing Protocols - sharing the paths Routing calls for that every hop, or router, follow me the course to a packet"s location have a route to forward the packet. Otherwise, the packet is reduce at that hop. Each router in a route does not require a path to every networks. That only demands to recognize the following hop top top the course to the packet"s destination network. The routing table includes the info that a router provides in the packet forwarding decisions. For the routing decisions, the routing table requirements to stand for the many accurate state that network pathways the the router deserve to access. Out-of-date routing information means that packets may not it is in forwarded come the most proper next-hop, bring about delays or packet loss. This path information can be manually configured on the router or learned dynamically from various other routers in the very same internetwork. After ~ the interfaces the a router space configured and also operational, the network connected with each interface is set up in the routing table as a directly connected route.
*
revolution Routing courses to far networks through the linked next hops can be manually configured top top the router. This is recognized as revolution routing. A default course can likewise be statically configured. If the router is linked to a variety of other routers, expertise of the internetworking framework is required. To ensure that the packets room routed to use the best possible next hops, each known location network demands to either have actually a path or a default route configured. Since packets space forwarded in ~ every hop, every router must be configured with static routes to next hops that reflect its place in the internetwork. Further, if the internetwork structure alters or if new networks end up being available, these changes have to it is in manually update on every router. If update is not done in a fashionable fashion, the routing details may it is in incomplete or inaccurate, bring about packet delays and possible packet loss.
*
Dynamic Routing Although that is important for every routers in an internetwork to have actually up-to-date extensive route knowledge, maintaining the routing table by hands-on static configuration is not constantly feasible. Therefore, dynamic routing protocols room used. Routing protocols room the collection of rules through which routers dynamically share their routing information. As routers become aware of alters to the networks for which lock act as the gateway, or changes to links in between routers, this information is passed on to various other routers. As soon as a router receives info about new or adjusted routes, the updates its own routing table and, in turn, passes the info to other routers. In this way, every routers have accurate routing tables that room updated dynamically and can learn about routes to remote networks that are numerous hops way. An instance of router sharing routes is presented in the figure. Usual routing protocols are: Routing details Protocol (RIP) amplified Interior Gateway Routing Protocol (EIGRP) open up Shortest Path very first (OSPF) although routing protocols administer routers v up-to-date routing tables, there room costs. First, the exchange that route details adds overhead that consumes network bandwidth. This overhead have the right to be an issue, specifically for low bandwidth links between routers. Second, the route details that a router receives is processed broadly by protocols such together EIGRP and also OSPF to do routing table entries. This means that routers employing these protocols have to have sufficient processing volume to both perform the protocol"s algorithms and also to carry out timely packet routing and also forwarding. Static routing does no produce any kind of network overhead and places entries straight into the routing table; no processing is required by the router. The expense for static routing is administrative - the manual configuration and also maintenance the the routing table come ensure efficient and effective routing. In countless internetworks, a mix of static, dynamic, and default courses are offered to provide the essential routes.


You are watching: Which osi layer header contains the address of a destination host that is on another network


See more: Hachured Contour Lines On A Topographic Map Represent _____, Maps Using Hachure And Contour Methods

The configuration of routing protocols on routers is one integral ingredient of the CCNA and also will be covered generally by a later course. Routing basics: http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm
*
arrival to internetworking: http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/introint.htm