Hop (networking)

An illustration of hops in a wired network (assuming a 0-origin hop count [1]). The hop count between the computers in this case is 2.

In wired computer networking a hop occurs when a packet is passed from one network segment to the next. Data packets pass through routers as they travel between source and destination. The hop count refers to the number of network devices through which data passes from source to destination (depending on routing protocol, this may include the source/destination, that is, the first hop is counted as hop 0 or hop 1[1]).

Since store and forward and other latencies are incurred through each hop, a large number of hops between source and destination implies lower real-time performance.

Hop count

In wired networks, the hop count refers to the number of networks or network devices through which data passes between source and destination (depending on routing protocol, this may include the source/destination, that is, the first hop is counted as hop 0 or hop 1[1]). Thus, hop count is a rough measure of distance between two hosts. For a routing protocol using 1-origin hop counts[1] (such as RIP), a hop count of n means that n networks separate the source host from the destination host.[1][2] Other protocols such as DHCP use the term "hop" to refer to the number of times a message has been forwarded.[3]

On a layer 3 network such as Internet Protocol (IP), each router along the data path constitutes a hop. By itself, this metric is, however, not useful for determining the optimum network path, as it does not take into consideration the speed, load, reliability, or latency of any particular hop, but merely the total count. Nevertheless, some routing protocols, such as Routing Information Protocol (RIP), use hop count as their sole metric.[4]

Each time a router receives a packet, it modifies the packet, decrementing the time to live (TTL). The router discards any packets received with a zero TTL value. This prevents packets from endlessly bouncing around the network in the event of routing errors. Routers are capable of managing hop counts, but other types of network devices (e.g. Ethernet hubs and bridges) are not.

Hop limit

Known as time to live (TTL) in IPv4, and hop limit in IPv6, this field specifies a limit on the number of hops a packet is allowed before being discarded. Routers modify IP packets as they are forwarded, decrementing the respective TTL or hop limit fields. Routers do not forward packets with a resultant field of 0 or less. This prevents packets from following a loop forever.

Next hop

When configuring network devices the hop may refer to next hop.[5] When a hop forwards network traffic the next hop is what the local hop considers to be the next element towards the final destination. A routing table usually consists of a list of possible destination networks or IP addresses for which the next hop is known. By only storing next-hop information, next-hop routing or next-hop forwarding reduces the size of routing tables. A given gateway only knows one step along the path, not the complete path to a destination. If no next hop is known a hop may silently discard a packet or return an error depending on the type of network. Devices in consumer networks are often only provided with routes for the local network as well as a default gateway as the traffic can only ever reach the local network or be forwarded to the internet service provider.[6] Routers require multiple routes to be able to forward traffic between different networks.[7] In practice routes are configured either implicitly with address assignment by means of a netmask, by manual assignment using tools such as route, or dynamically using configuration protocols like DHCP or routing protocols.

In TCP/IP networks using Ethernet as the link layer the destination is always an IP address, however the next hop is not technically required to be of the same address family. As the packet needs to be forwarded on the link layer the next hop needs only to resolve to a link layer address such as a MAC address. On Linux for instance the next hop is required to be either an IP address or an interface. The address families of the destination address and the next hop need not match, therefore it is possible to forward IPv4 traffic on an IPv6 network and vice versa. If no address is provided the destination is assumed to be present on the local link, otherwise the next hop is used. Either address is then passed to NDP or ARP for IPv6 and IPv4 respectively to be resolved to the link layer address required to pass the packet along on the network stack. In other scenarios link layer resolution may require different methods such as a virtual private network which needs to determine the peer to send the packet to. What is common to forwarding is that the next hop needs to be logically connected to the current hop, thereby building an uninterrupted chain between source and destination. A logical connection does not necessitate a physical connection as the packet may be passed on to a virtual tunnel.[citation needed]

Source routing describes networks in which data is encoded in the packet that allows a hop (such as the source of the packet) to influence routing decisions on intermediary hops.[8] This allows for advanced teletraffic engineering used to improve network delay, decrease network congestion, or meet other requirements.

Diagnostics

The traceroute command can be used to measure the number of router hops from one host to another. Hop counts are often useful to find faults in a network or to discover if routing is indeed correct.

Wireless ad hoc networking

In a wireless ad hoc network, commonly, every participating node is also acting as a router. This means that the terms "hop" and "hop count" are often the subject of confusion. Often, the sending node is simply counted as the first hop, thus yielding the same number for "hops" for both interpretations of "hop" as "traversed routers" and "jumps from node to node". For example, RFC 6130 defines a "1-hop neighbor" as any other node that is directly reachable via the wireless interface.

See also

References

  1. ^ a b c d e Comer, Douglas (2014). Internetworking with TCP/IP. Volume one (Sixth ed.). Harlow. p. 294 (footnotes). ISBN 978-1-292-05623-4. OCLC 971612806.{{cite book}}: CS1 maint: location missing publisher (link)
  2. ^ Comer, Douglas (2014). Internetworking with TCP/IP (Sixth ed.). Upper Saddle River, New Jersey. pp. 293, 655. ISBN 978-0-13-608530-0. OCLC 855671923.{{cite book}}: CS1 maint: location missing publisher (link)
  3. ^ Comer, Douglas (2014). Internetworking with TCP/IP. Volume one (Sixth ed.). Harlow. p. 466. ISBN 978-1-292-05623-4. OCLC 971612806.{{cite book}}: CS1 maint: location missing publisher (link)
  4. ^ RFC 1058, Routing Information Protocol, C. Hendrik, The Internet Society (June 1988)
  5. ^ "CCNP Practical Studies: Layer 3 Switching > Introduction to Layer 3 Switching". www.ciscopress.com. Retrieved 2019-07-05.
  6. ^ Salter, Jim (2016-04-17). "The Ars guide to building a Linux router from scratch". Ars Technica. Retrieved 2024-12-18.
  7. ^ Beijnum, Iljitsch van (2008-01-17). "Internet routing shows growing pains?again". Ars Technica. Retrieved 2024-12-18.
  8. ^ "2.2.10. Disable Source Routing | Red Hat Product Documentation". docs.redhat.com. Retrieved 2024-12-18.

Read other articles:

У этого термина существуют и другие значения, см. Дезертир (значения). Серия телесериала «Аватар: Легенда об Аанге»Дезертирангл. The Deserter Дезертир Джонг Джонг готовит Аангак обучению Основная информация Номер серии Сезон 1Серия 16 Режиссёр Лорен Макмаллан Автор сцен

 

 

Tercera División 1953-54Datos generalesSede Fecha 13 de septiembre de 195318 de julio de 1954Datos estadísticosParticipantes 111 equipos Intercambio de plazas Ascenso(s): Real BetisCF ExtremaduraCD JuvenilLevante UDCD San FernandoClub SestaoCD Tarrasa Descenso(s): CD MarconiCD NavalUD SevillanaRCD Córdoba desapareceCronología Tercera División 1952-53 Tercera División 1953-54 Tercera División 1954-55 [editar datos en Wikidata] La temporada 1953–54 de la Tercera División de ...

 

 

Demitz-Thumitz Brasão Mapa Demitz-ThumitzMapa da Alemanha, posição de Demitz-Thumitz acentuada Administração País  Alemanha Estado Saxônia Região administrativa Dresden Distrito Bautzen Prefeito Gisela Pallas Partido no poder Wählervereinigung DePoRo Estatística Coordenadas geográficas 51° 08' 29 N 14° 08' 44 E Área 21,07 km² Altitude 250 m População 2.920[1] (31/12/2009) Densidade populacional 138,59 hab./km² Outras Informações Placa de veículo BZ C...

присілок Мостки Мостки Країна  Росія Суб'єкт Російської Федерації Новгородська область Муніципальний район Чудовський район Поселення Трегубовське сільське поселення Код ЗКАТУ: 49250821005 Код ЗКТМО: 49650421176 Основні дані Населення 23 Поштовий індекс 174207 Географічні координ

 

 

American politician Howard C. Lawrence c. 1933 Howard Cyrus Lawrence (August 14, 1890 – May 20, 1961)[1] was an American politician from the U.S. state of Michigan. Biography Lawrence was born in Sebewa Township, Michigan in Ionia County, the son of Cyrus S. Lawrence and Margaret (Neidhardt) Lawrence. He resided in Ionia, Saginaw and Grand Rapids. Lawrence married Clara Louise Luther on May 1, 1913. Lawrence was a banker and a business partner and executive secretary to Governor of ...

 

 

العلاقات السلوفاكية المالاوية سلوفاكيا مالاوي   سلوفاكيا   مالاوي تعديل مصدري - تعديل   العلاقات السلوفاكية المالاوية هي العلاقات الثنائية التي تجمع بين سلوفاكيا ومالاوي.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه ...

American author (born 1943) Joyce MeyerMeyer speaking in 2015BornPauline Joyce Hutchison (1943-06-04) June 4, 1943 (age 80)St. Louis, Missouri, U.S.OccupationBible teacher, author, speakerSpouseDave Meyer (2nd husband)Websitejoycemeyer.org Pauline Joyce Meyer (née Hutchison; June 4, 1943)[1] is an American Charismatic Christian author, speaker, and president of Joyce Meyer Ministries. Joyce and her husband, Dave, have four grown children and live outside St. Louis, Missouri. Her...

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: This Train Don't Stop There Anymore – news · newspapers · books · scholar · JSTOR (July 2016) (Learn how and when to remove this template message) 2001 single by Elton JohnThis Train Don't Stop There AnymoreUK CD Single No. 1 versionSingle by Elton Johnfrom the...

 

 

Pour des articles plus généraux, voir Combiné nordique aux Jeux olympiques et Jeux olympiques d'hiver de 2018. Cet article est une ébauche concernant le combiné nordique. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Combiné nordique aux Jeux olympiques de 2018 Généralités Sport Combiné nordique Organisateur(s) CIO Éditions 23e Lieu(x) Pyeongchang Date du 12 février 2018au 20 février 2018 Épreuves...

Graduate theological institution in Lexington, KY This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Lexington Theological Seminary – news · newspapers · books · scholar · JSTOR (November 2015) Lexington Theological SeminaryTypePrivateEstablished1865Religious affiliationChristian Church (Disciples of ...

 

 

Sporting event delegationPalau at the2023 Pacific GamesNational federationPalau National Olympic Committee19 November 2023 (2023-11-19) – 2 December 2023 (2023-12-02)Competitors23 (14 men and 9 women) in 4 sportsMedalsRanked 21st Gold 0 Silver 0 Bronze 3 Total 3 Pacific Games appearances1999200320072011201520192023 Palau is scheduled to compete at the 2023 Pacific Games in Honiara from 19 November to 2 December 2023.[1] This will be Palau...

 

 

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Hurling records in Ireland – news · newspapers · books · scholar · JSTOR (June 2019) (Learn how and when to remove this template message) This page details hurling records in Ireland. All-Ireland Championship Final Team Most wins: 36 (Kilkenny), 1904, 1905, 1907, 1909, 1911, 191...

Activities involving dances from multiple traditions This article uses bare URLs, which are uninformative and vulnerable to link rot. Please consider converting them to full citations to ensure the article remains verifiable and maintains a consistent citation style. Several templates and tools are available to assist in formatting, such as reFill (documentation) and Citation bot (documentation). (June 2022) (Learn how and when to remove this template message) Romanian dance instructors Sonia...

 

 

SODIS в Индонезии Дезинфекция с помощью солнечного света (англ. Solar water disinfection SODIS[1]) — метод дезинфекции воды с использованием только солнечного света и пластиковых бутылок. SODIS является доступным и эффективным способом для децентрализованной очистки воды, как пр...

 

 

Para otros usos de este término, véase Seminario Conciliar de San Ildefonso (desambiguación). Seminario Conciliar de San IldefonsoTipo Seminario católicoFundación 1 de octubre de 1847Fundador Cardenal-Arzobispo Payá y Rico (Obispo de Toledo)LocalizaciónDirección Plaza de San Andrés, n.º 3, Toledo, EspañaEspaña EspañaAdministraciónRector José María Anaya HigueraSitio web seminariomayortoledo.com/[editar datos en Wikidata] El Seminario Conciliar de San Ildefo...

Association football team in Indonesia Football clubPersewar WaropenFull namePersatuan Sepakbola WaropenNickname(s)Mutiara Bakau(The Mangrove Pearl)Short nameWAR PWARFounded1 May 2005; 18 years ago (2005-05-01)GroundMandala StadiumCapacity30,000ChairmanYermias BisaiManagerYulens BonaiCoachEduard IvakdalamLeagueLiga 22021Liga 2/1st round (Group D), 3rd Home colours Away colours Current season Persatuan Sepakbola Waropen (commonly known as Persewar) is an Indonesian football c...

 

 

Diseases more prevalent in low-income populations See also: Neglected tropical diseases This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article is missing information about historical attitudes towards poor people as illness-prone (e.g., the great unwashed). Please expand the article to include this information. Further details may exist on the talk page. (January 2016) This article ...

 

 

Road & Track País Estados Unidos Idioma InglésCategoría AutomotrizEspecialidad revista del automóvil Fundación 1947Primera edición junio de 1947 DesarrolloEditor Matt DeLorenzoCompañía Hachette Filipacchi Media U.SCirculaciónFrecuencia MensualCirculación 723 245ISSN 0035-7189[www.roadandtrack.com Página web oficial][editar datos en Wikidata] Road & Track es una revista estadounidense de automóviles. La empresa propietaria de la revista es Hachette Filipacchi Medi...

Pine Bluff Ciudad Centro de Pine Bluff Pine BluffLocalización de Pine Bluff en Arkansas Ubicación de Arkansas en EE. UU.Coordenadas 34°13′42″N 92°00′11″O / 34.228444444444, -92.003194444444Entidad Ciudad • País  Estados Unidos • Estado  Arkansas • Condado JeffersonSuperficie   • Total 120.7 km² • Tierra 115.45 km² • Agua (4.35%) 5.24 km²Altitud   • Media 67 m s. n. m.Población (2010...

 

 

Book by Isaac Asimov Opus 100 Dust-jacket from the first editionAuthorIsaac AsimovCountryUnited StatesLanguageEnglishPublisherHoughton MifflinPublication date1969Media typePrint (Hardback, paperback)Pages318ISBN978-0-395-07351-3 Opus 100 is a collection by American writer and scientist Isaac Asimov. It was published by Houghton Mifflin on 16 October 1969. Asimov chose to celebrate the publication of his hundredth book by writing about his previous 99 books, including excerpts from short ...

 

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!