CN107819726B - Method, device and system for efficiently using IS-IS protocol interface identifier - Google Patents

Method, device and system for efficiently using IS-IS protocol interface identifier Download PDF

Info

Publication number
CN107819726B
CN107819726B CN201610819693.6A CN201610819693A CN107819726B CN 107819726 B CN107819726 B CN 107819726B CN 201610819693 A CN201610819693 A CN 201610819693A CN 107819726 B CN107819726 B CN 107819726B
Authority
CN
China
Prior art keywords
intermediate system
interface
hello message
designated
hello
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610819693.6A
Other languages
Chinese (zh)
Other versions
CN107819726A (en
Inventor
吴强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610819693.6A priority Critical patent/CN107819726B/en
Publication of CN107819726A publication Critical patent/CN107819726A/en
Application granted granted Critical
Publication of CN107819726B publication Critical patent/CN107819726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/321Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers

Abstract

The invention discloses a method for efficiently using an IS-IS protocol interface identifier, which comprises the following steps: if a first interface of a first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message; after a second interface of the second intermediate system receives the second hello message, a second interface ID is distributed to the second interface of the second intermediate system, and the specified intermediate system is determined according to the preset condition; and setting the pseudo node identification created by the specified intermediate system to the system-ID of the specified intermediate system plus the interface ID. The invention also discloses a device and a system for efficiently using the IS-IS protocol interface identifier. The invention solves the technical problem that in the IS-IS system, if a certain intermediate system IS elected as a designated intermediate system, the topology calculation IS incorrect due to the fact that the pseudo nodes are repeated.

Description

Method, device and system for efficiently using IS-IS protocol interface identifier
Technical Field
The invention relates to the technical field of computer networks, in particular to a method, a device and a system for efficiently using an IS-IS protocol interface identifier.
Background
The IS-IS (Intermediate System-to-Intermediate System) routing protocol IS a dynamic, link state-based interior gateway protocol. After the IS-IS protocol establishes the neighborhood through hello message interactive negotiation, each Intermediate System (IS) generates an LSP (Link State Packet, Link State message) to describe the Link State information of the Intermediate System (IS), and sends the Link State information to the network, and also stores the LSP sent by all Intermediate System (IS) devices on the network topology to form an LSDB (Link State DataBase ). IS-IS to use the link state database LSDB to calculate the best route to the destination address by the shortest path first algorithm. On the network, any Intermediate System (IS) will send its own generated LSP out of all outgoing interfaces with neighbors; receiving an LSP from one interface and sending it out from the other interface causes all IS-saved LSPs in the network to eventually follow a uniform propagation process called LSP flooding.
In a Local Area Network (LAN) Network, after an IS-IS neighbor IS established, a DIS (Designated Intermediate System) needs to be selected, the DIS creates a dummy node representing the LAN Network, and all the IS are connected to the dummy node, that IS, connected to the LAN Network. The dummy node IS identified by the system-ID of the IS (intermediate system) bearing the DIS plus the interface ID of the connecting LAN network interface. For example: the IS (intermediate system) bearing DIS has a system-ID of 1111.1111.1111 and an interface ID of 03 connecting to the LAN network interface, and the identification of the dummy node IS 1111.1111.1111.03. The interface ID of an interface identifies what is referred to herein as a pseudo node number, that is, pseudo node number 03 identifying a pseudo node is only one byte, and then ranges from 1 to FF. Obviously, an IS (intermediate system) cannot have more than 255 interfaces connected to different LAN networks, and if 300 interfaces are connected to different LAN networks, where 1 to 255 are assigned interface IDs of 1 to FF, and 256 to 300 are assigned only interface IDs of 1 to FF, even if 1 to 255 have no neighbors, and only the active interfaces occupy one interface ID, the pseudo node numbers of the broadcast network interfaces exceeding 255 will all be defined as FF, and if the IS (intermediate system) elects DIS by itself, the problem of pseudo node duplication will occur. The topology may be incorrectly calculated and the route may not be correctly calculated, eventually resulting in data traffic being dropped.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a system for efficiently using an IS-IS protocol interface identifier, aiming at solving the technical problem that in an IS-IS system, if a certain intermediate system IS elected as a specified intermediate system, the topology calculation IS incorrect due to the fact that a pseudo node IS repeated.
In order to achieve the above object, the present invention provides a method for efficiently using IS-IS protocol interface identifiers, which comprises:
if a first interface of a first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message;
after a second interface of a second intermediate system receives the second hello message, distributing a second interface ID for the second interface of the second intermediate system, and determining a designated intermediate system according to a preset condition;
and if the first intermediate system is determined to be the designated intermediate system, setting the pseudo node identification created by the designated intermediate system as the system-ID of the first intermediate system plus a first interface ID, and if the second intermediate system is determined to be the designated intermediate system, setting the pseudo node identification corresponding to the designated intermediate system as the system-ID of the second intermediate system plus a second interface ID.
Preferably, the second hello packet includes:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
Preferably, after the step of receiving the second hello packet at the second interface of the second intermediate system, the method further includes:
and judging whether the second hello message contains the MAC address of a second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and determining the appointed intermediate system according to a preset condition.
Preferably, the step of determining the designated intermediate system according to the preset condition includes:
judging the selection priority of the first intermediate system and the second intermediate system;
and if the selection priority of the first intermediate system is greater than that of the second intermediate system, determining that the first intermediate system is the designated intermediate system, and if the selection priority of the first intermediate system is less than that of the second intermediate system, determining that the second intermediate system is the designated intermediate system.
Preferably, the method further comprises:
respectively detecting whether all interfaces of the first intermediate system and the second intermediate system receive hello messages, if any one interface is detected to receive the hello message, allocating an interface ID for the interface receiving the hello message, wherein for the interface which does not receive the hello message, the interface ID is not allocated for the interface.
In order to achieve the above object, the present invention further provides an apparatus for efficient use of IS-IS protocol interface identifiers, the apparatus comprising:
the first transceiving module is used for allocating a first interface ID to a first interface of a first intermediate system and periodically broadcasting a second hello message if the first interface receives the first hello message broadcasted by a second intermediate system;
the second transceiver module is configured to, after receiving the second hello packet at the second interface of the second intermediate system, allocate a second interface ID to the second interface of the second intermediate system, and determine the designated intermediate system according to a preset condition;
and the setting module is used for setting the pseudo node identification created by the appointed intermediate system as the system-ID of the first intermediate system plus the first interface ID if the first intermediate system is determined to be the appointed intermediate system, and setting the pseudo node identification corresponding to the appointed intermediate system as the system-ID of the second intermediate system plus the second interface ID if the second intermediate system is determined to be the appointed intermediate system.
Preferably, the second hello packet includes:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
Preferably, the first transceiver module is further configured to:
after a second interface of a second intermediate system receives the second hello message, whether the second hello message contains the MAC address of the second intermediate system is judged, if yes, the state of the neighbor of the first intermediate system is set to be UP on the second intermediate system, and the appointed intermediate system is determined according to preset conditions.
Preferably, the second transceiver module includes:
the judging module is used for judging the selection priority of the first intermediate system and the second intermediate system;
a determining module, configured to determine that the first intermediate system is the designated intermediate system if the selection priority of the first intermediate system is greater than the selection priority of the second intermediate system, and determine that the second intermediate system is the designated intermediate system if the selection priority of the first intermediate system is less than the selection priority of the second intermediate system.
Preferably, the apparatus further comprises:
the detection module is used for respectively detecting whether all the interfaces of the first intermediate system and the second intermediate system receive hello messages, if any one of the interfaces is detected to receive the hello message, an interface ID is allocated to the interface receiving the hello message, and if the interface does not receive the hello message, the interface ID is not allocated to the interface not receiving the hello message.
In order to achieve the above object, the present invention further provides an IS-IS protocol system, which at least includes a first intermediate system and a second intermediate system;
the first intermediate system is the first intermediate system, and the second intermediate system is the second intermediate system.
The invention provides a method, a device and a system for efficiently using an IS-IS protocol interface identifier, which comprises the following steps: if a first interface of a first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message; after a second interface of a second intermediate system receives the second hello message, distributing a second interface ID for the second interface of the second intermediate system, and determining a designated intermediate system according to a preset condition; and if the first intermediate system is determined to be the designated intermediate system, setting the pseudo node identification created by the designated intermediate system as the system-ID of the first intermediate system plus a first interface ID, and if the second intermediate system is determined to be the designated intermediate system, setting the pseudo node identification created by the designated intermediate system as the system-ID of the second intermediate system plus a second interface ID. After the first intermediate system and the second intermediate system establish a neighbor relation and determine the designated intermediate system, the pseudo node identification created by the designated intermediate system is set as the system-ID of the designated intermediate system plus the interface ID, and the interface ID is distributed to the interface only under the condition that the interface receives the hello message, so that the interface ID is more efficiently utilized, and the technical problem that the topology calculation is incorrect due to the fact that the pseudo node is repeated after a certain intermediate system is elected as the designated intermediate system is solved.
Drawings
FIG. 1 IS a schematic flow chart diagram of a first embodiment of a method for efficient use of IS-IS protocol interface identifiers of the present invention;
FIG. 2 IS a schematic diagram of a local network topology of the IS-IS protocol of the present invention;
FIG. 3 is a schematic diagram illustrating a detailed procedure for determining a designated intermediate system according to a predetermined condition in the present invention;
FIG. 4 IS a functional block diagram of a first embodiment of an apparatus for efficient use of IS-IS protocol interface identifiers in accordance with the present invention;
FIG. 5 is a functional block diagram illustrating a second transceiver module shown in FIG. 2 according to the present invention;
fig. 6 IS a functional block diagram of a second embodiment of the device for efficient use of IS-IS protocol interface identification according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Referring to fig. 1, fig. 1 IS a schematic flow chart of a first embodiment of a method for efficient use of IS-IS protocol interface identifiers according to the present invention; in this embodiment, the method for efficiently using the IS-IS protocol interface identifier includes the following steps:
step S10, if the first interface of the first intermediate system receives the first hello packet broadcast by the second intermediate system, a first interface ID is allocated to the first interface, and the second hello packet is broadcast periodically.
In this embodiment, if a first interface of a first intermediate system receives a first hello packet broadcast by a second intermediate system, a first interface ID is allocated to the first interface, and a second hello packet is broadcast periodically, specifically, the method includes the following steps:
step one, after a first interface broadcast type of a first intermediate system is UP, an interface ID of the first intermediate system is 0, a hello message is periodically sent at the moment, and an interface identifier in the hello message is set to be a system-ID of the first intermediate system and the interface ID of the first interface;
step two, a second interface with a broadcast type of UP of a second intermediate system receives a hello message sent by the first intermediate system, sets a neighbor state as INIT, triggers a second IS intermediate system to distribute a second interface ID for the second interface and sends a first hello message, wherein an interface identifier in the first hello message IS set as a system-ID of the second intermediate system plus the second interface ID;
and step three, if a first interface of the first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message.
The broadcast type of a first interface of a first IS intermediate system IS UP, after a first hello message broadcast by a second intermediate system IS received, the neighbor state IS set to INIT, the first intermediate system IS triggered to distribute a first interface ID for the first interface, and the second hello message IS broadcast periodically. The interface identification of the second hello message is set to be the system-ID of the first intermediate system plus the first interface ID, and meanwhile, the second hello message also carries the MAC address of the neighbor second intermediate system.
Wherein the system-ID IS used to uniquely identify the host or router within the area, and the interface ID IS the Circuit-ID in IS-IS system.
Step S20, after the second hello packet is received by the second interface of the second intermediate system, allocating a second interface ID to the second interface of the second intermediate system, and determining the designated intermediate system according to a preset condition.
In this embodiment, after the second interface of the second intermediate system receives the second hello packet broadcast by the first intermediate system, a second interface ID is allocated to the second interface of the second intermediate system, and the specified intermediate system is determined according to a preset condition.
And if the neighbor state of the neighbor of the first intermediate system is INIT after the second hello message sent by the first intermediate system is received, setting the neighbor state of the neighbor of the first intermediate system to be UP, and triggering the designated intermediate system election of the neighbor on the second interface of the second intermediate system.
Step S30, if it is determined that the first intermediate system is the designated intermediate system, setting the pseudo node identifier created by the designated intermediate system as the system-ID of the first intermediate system plus the first interface ID, and if it is determined that the second intermediate system is the designated intermediate system, setting the pseudo node identifier corresponding to the designated intermediate system as the system-ID of the second intermediate system plus the second interface ID.
In this embodiment, after determining the designated intermediate system, the designated intermediate system creates a dummy node, and if the first intermediate system is selected as the designated intermediate system, the dummy node identifier is set to be the system-ID of the first intermediate system plus the first interface ID of the first intermediate system, and if the second intermediate system is selected as the designated intermediate system, the dummy node identifier is set to be the system-ID of the second intermediate system plus the second interface ID of the second intermediate system.
For example, referring to fig. 2, fig. 2 IS a schematic diagram of a local network topology of the IS-IS protocol of the present invention, and the system-ID of the first intermediate system R1 IS: 1111.1111.1111, interface ID of interface 1 is 01; the system-ID of the second intermediate system R2 is: 2222.2222.2222, interface 2 has interface ID 02, if the first intermediate system R1 is selected as the designated intermediate system, the pseudo node ID is set to 1111.1111.1111.01; if the second intermediate system R2 is selected as the designated intermediate system, the pseudo node identification is set to 2222.2222.2222.02.
If the first intermediate system is selected as the designated intermediate system, setting the interface identifier as the system-ID of the second intermediate system and the second interface ID in a hello message broadcasted by the second intermediate system, carrying the MAC address of the first intermediate system to send periodically, and finishing the establishment of the neighbor; if the second intermediate system is selected as the designated intermediate system, in a hello message broadcasted by the second intermediate system, the interface identifier is set to be the system-ID of the first intermediate system plus the first interface ID, and the hello message is periodically sent with the MAC address of the first intermediate system, and the neighbor establishment is completed.
The method for efficiently using the IS-IS protocol interface identifier in the embodiment comprises the following steps: if a first interface of a first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message; after a second interface of a second intermediate system receives the second hello message, distributing a second interface ID for the second interface of the second intermediate system, and determining a designated intermediate system according to a preset condition; and if the first intermediate system is determined to be the designated intermediate system, setting the pseudo node identification created by the designated intermediate system as the system-ID of the first intermediate system plus a first interface ID, and if the second intermediate system is determined to be the designated intermediate system, setting the pseudo node identification created by the designated intermediate system as the system-ID of the second intermediate system plus a second interface ID. In this embodiment, after the first intermediate system and the second intermediate system establish a neighbor relationship and determine the designated intermediate system, the pseudo node identifier created by the designated intermediate system is set as the system-ID of the designated intermediate system plus the interface ID, and the interface ID is allocated to the interface only when the interface receives the hello packet, so that the interface ID is used more efficiently, and the technical problem that the topology calculation is incorrect due to the fact that the pseudo node is repeated after a certain intermediate system elects the designated intermediate system is solved.
Further, based on the embodiment described in fig. 1, in this embodiment, the second hello packet in step S20 includes:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
Wherein, after the step of receiving the second hello packet broadcast by the first intermediate system by the second interface of the second intermediate system, the method further comprises: and judging whether the second hello message contains the Mac address of the second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and determining the designated intermediate system according to a preset condition.
Referring to fig. 3, fig. 3 is a schematic diagram of a refining step of determining a designated intermediate system according to a preset condition in the present invention, and in this embodiment, the step of determining the designated intermediate system according to the preset condition includes:
step S21, determining a selection priority of the first intermediate system and the second intermediate system;
step S22, if the selection priority of the first intermediate system is greater than the selection priority of the second intermediate system, determining that the first intermediate system is the designated intermediate system, and if the selection priority of the first intermediate system is less than the selection priority of the second intermediate system, determining that the second intermediate system is the designated intermediate system.
In this embodiment, whether all the interfaces of the first intermediate system and the second intermediate system receive hello messages is detected, and if it is detected that any one of the interfaces receives a hello message, an interface ID is allocated to the interface that receives the hello message, wherein for the interface that does not receive a hello message, an interface ID is not allocated to the interface that does not receive a hello message.
And when the interface does not receive any hello message, the interface ID is not distributed, and the interface ID is distributed to the interface only when the hello message is received, so that the interface ID occupied by the invalid interface is eliminated.
The method for efficiently using the IS-IS protocol interface identifier in the embodiment comprises the following steps: after a second interface of a second intermediate system receives the second hello message, judging whether the second hello message contains an MAC address of the second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and judging the selection priority of the first intermediate system and the second intermediate system; and if the selection priority of the first intermediate system is greater than that of the second intermediate system, determining that the first intermediate system is the designated intermediate system, and if the selection priority of the first intermediate system is less than that of the second intermediate system, determining that the second intermediate system is the designated intermediate system. And respectively detecting whether all the interfaces of the first intermediate system and the second intermediate system receive hello messages, if any one of the interfaces is detected to receive the hello message, allocating an interface ID to the interface receiving the hello message, wherein the interface ID is not allocated to the interface not receiving the hello message. In this embodiment, after the first intermediate system and the second intermediate system establish a neighbor relationship and determine the designated intermediate system, the pseudo node identifier created by the designated intermediate system is set as the system-ID of the designated intermediate system plus the interface ID, and the interface ID is allocated to the interface only when the interface receives the hello packet, so that the interface ID is used more efficiently, and the technical problem that the topology calculation is incorrect due to the fact that the pseudo node is repeated after a certain intermediate system elects the designated intermediate system is solved.
Referring to fig. 4, fig. 4 IS a functional block diagram of a first embodiment of the device for efficient use of IS-IS protocol interface identification according to the present invention; in this embodiment, the device for efficiently using the IS-IS protocol interface identifier includes:
the first transceiver module 310 is configured to, if a first interface of a first intermediate system receives a first hello packet broadcast by a second intermediate system, allocate a first interface ID to the first interface, and periodically broadcast a second hello packet.
In this embodiment, if a first interface of a first intermediate system receives a first hello packet broadcast by a second intermediate system, a first interface ID is allocated to the first interface, and a second hello packet is broadcast periodically, specifically, the method includes the following steps:
step one, after the broadcast type of the first interface of the first intermediate system is UP, the interface ID of the first interface is 0, the hello message is periodically sent at this time, and the interface identifier in the hello message is set to be the system-ID of the first intermediate system plus the interface ID of the first interface.
And step two, a second interface with the broadcast type of UP of the second intermediate system receives the hello message sent by the first intermediate system, sets the neighbor state as INIT, triggers the second IS intermediate system to distribute a second interface ID for the second interface and sends the first hello message, wherein the interface identifier in the first hello message IS set as the system-ID of the second intermediate system plus the second interface ID.
And step three, if a first interface of the first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message.
The broadcast type of a first interface of a first IS intermediate system IS UP, after a first hello message broadcast by a second intermediate system IS received, the neighbor state IS set to INIT, the first intermediate system IS triggered to distribute a first interface ID for the first interface, and the second hello message IS broadcast periodically. The interface identification of the second hello message is set to be the system-ID of the first intermediate system plus the first interface ID, and meanwhile, the second hello message also carries the MAC address of the neighbor second intermediate system.
Wherein the system-ID IS used to uniquely identify the host or router within the area, and the interface ID IS the Circuit-ID in IS-IS system.
The second transceiver module 320 is configured to, after the second hello packet is received by the second interface of the second intermediate system, allocate a second interface ID to the second interface of the second intermediate system, and determine the designated intermediate system according to a preset condition.
In this embodiment, after the second interface of the second intermediate system receives the second hello packet broadcast by the first intermediate system, a second interface ID is allocated to the second interface of the second intermediate system, and the specified intermediate system is determined according to a preset condition.
And if the neighbor state of the neighbor of the first intermediate system is INIT after the second hello message sent by the first intermediate system is received, setting the neighbor state of the neighbor of the first intermediate system to be UP, and triggering the designated intermediate system election of the neighbor on the second interface of the second intermediate system.
A setting module 330, configured to set, if it is determined that the first intermediate system is the designated intermediate system, the pseudo node identifier created by the designated intermediate system to be the system-ID of the first intermediate system plus the first interface ID, and if it is determined that the second intermediate system is the designated intermediate system, set, as the system-ID of the second intermediate system plus the second interface ID, the pseudo node identifier corresponding to the designated intermediate system.
In this embodiment, after determining the designated intermediate system, the designated intermediate system creates a dummy node, and if the first intermediate system is selected as the designated intermediate system, the dummy node identifier is set to be the system-ID of the first intermediate system plus the first interface ID of the first intermediate system, and if the second intermediate system is selected as the designated intermediate system, the dummy node identifier is set to be the system-ID of the second intermediate system plus the second interface ID of the second intermediate system.
For example, referring to fig. 2, fig. 2 IS a schematic diagram of a local network topology of the IS-IS protocol of the present invention, and the system-ID of the first intermediate system R1 IS: 1111.1111.1111, interface 1 has an interface ID of 01; the system-ID of the second intermediate system R2 is: 2222.2222.2222, interface 2 has interface ID 02, if the first intermediate system R1 is selected as the designated intermediate system, the pseudo node ID is set to 1111.1111.1111.01; if the second intermediate system R2 is selected as the designated intermediate system, the pseudo node identification is set to 2222.2222.2222.02.
If the first intermediate system is selected as the designated intermediate system, setting the interface identifier as the system-ID of the second intermediate system and the second interface ID in a hello message broadcasted by the second intermediate system, carrying the MAC address of the first intermediate system to send periodically, and finishing the establishment of the neighbor; if the second intermediate system is selected as the designated intermediate system, in a hello message broadcasted by the second intermediate system, the interface identifier is set to be the system-ID of the first intermediate system plus the first interface ID, and the hello message is periodically sent with the MAC address of the first intermediate system, and the neighbor establishment is completed.
The device 300 for efficient use of IS-IS protocol interface identifier according to the above embodiment includes: a first transceiver module 310, configured to, if a first interface of a first intermediate system receives a first hello packet broadcast by a second intermediate system, allocate a first interface ID to the first interface, and periodically broadcast a second hello packet; the second transceiver module 320, after receiving the second hello packet at the second interface of the second intermediate system, allocates a second interface ID to the second interface of the second intermediate system, and determines to designate the intermediate system according to a preset condition; a setting module 330, configured to set, if it is determined that the first intermediate system is the designated intermediate system, the pseudo node identifier created by the designated intermediate system to be the system-ID of the first intermediate system plus the first interface ID, and if it is determined that the second intermediate system is the designated intermediate system, set, as the system-ID of the second intermediate system plus the second interface ID, the pseudo node identifier created by the designated intermediate system. In this embodiment, after the first intermediate system and the second intermediate system establish a neighbor relationship and determine the designated intermediate system, the pseudo node identifier created by the designated intermediate system is set as the system-ID of the designated intermediate system plus the interface ID, and the interface ID is allocated to the interface only when the interface receives the hello packet, so that the interface ID is used more efficiently, and the technical problem that the topology calculation is incorrect due to the fact that the pseudo node is repeated after a certain intermediate system elects the designated intermediate system is solved.
Further, based on the embodiment described in fig. 4, in this embodiment, the second hello packet in the second transceiver module 310 includes:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
Wherein, after the second interface of the second intermediate system receives the second hello packet broadcast by the first intermediate system, the method further comprises: and judging whether the second hello message contains the Mac address of the second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and determining the designated intermediate system according to a preset condition.
Referring to fig. 5, fig. 5 is a detailed functional block diagram of the second transceiver module shown in fig. 2 according to the present invention; in this embodiment, the second transceiver module 320 includes:
a determining module 321, configured to determine a selection priority of the first intermediate system and the second intermediate system.
A determining module 322, configured to determine that the first intermediate system is the designated intermediate system if the selection priority of the first intermediate system is greater than the selection priority of the second intermediate system, and determine that the second intermediate system is the designated intermediate system if the selection priority of the first intermediate system is less than the selection priority of the second intermediate system.
Referring to fig. 6, fig. 6 IS a functional block diagram of a second embodiment of the device for efficient use of IS-IS protocol interface identification according to the present invention. In this embodiment, the device 300 for efficiently using the IS-IS protocol interface identifier further includes:
the detecting module 340 is configured to detect whether all interfaces of the first intermediate system and the second intermediate system receive hello packets, and allocate an interface ID to an interface that receives a hello packet if it is detected that any interface receives a hello packet, where, for an interface that does not receive a hello packet, an interface ID is not allocated to the interface.
And when the interface does not receive any hello message, the interface ID is not distributed, and the interface ID is distributed to the interface only when the hello message is received, so that the interface ID occupied by the invalid interface is eliminated.
The device 300 for efficient use of IS-IS protocol interface identifier according to the above embodiment includes: after a second interface of a second intermediate system receives the second hello message, judging whether the second hello message contains an MAC address of the second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and judging the selection priority of the first intermediate system and the second intermediate system; and if the selection priority of the first intermediate system is greater than that of the second intermediate system, determining that the first intermediate system is the designated intermediate system, and if the selection priority of the first intermediate system is less than that of the second intermediate system, determining that the second intermediate system is the designated intermediate system. And respectively detecting whether all the interfaces of the first intermediate system and the second intermediate system receive hello messages, if any one of the interfaces is detected to receive the hello message, allocating an interface ID to the interface receiving the hello message, wherein the interface ID is not allocated to the interface not receiving the hello message. In this embodiment, after the first intermediate system and the second intermediate system establish a neighbor relationship and determine the designated intermediate system, the pseudo node identifier created by the designated intermediate system is set as the system-ID of the designated intermediate system plus the interface ID, and the interface ID is allocated to the interface only when the interface receives the hello packet, so that the interface ID is used more efficiently, and the technical problem that the topology calculation is incorrect due to the fact that the pseudo node is repeated after a certain intermediate system elects the designated intermediate system is solved.
Furthermore, the invention also discloses an IS-IS protocol system, which at least comprises a first intermediate system and a second intermediate system.
In this example. The first intermediate system in the IS-IS protocol system IS the first intermediate system described in the embodiment, and the second intermediate system IS the second intermediate system described in the above embodiment, which IS not described herein again. The method for efficiently using the IS-IS protocol interface identifier in the above embodiment IS also applicable to IS-IS protocol systems having three or more intermediate systems.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A method for efficient use of IS-IS protocol interface identification, the method comprising:
if a first interface of a first intermediate system receives a first hello message broadcast by a second intermediate system, allocating a first interface ID for the first interface, and periodically broadcasting a second hello message;
after a second interface of a second intermediate system receives the second hello message, distributing a second interface ID for the second interface of the second intermediate system, and judging the selection priority of the first intermediate system and the second intermediate system;
if the selection priority of the first intermediate system is greater than that of the second intermediate system, determining that the first intermediate system is a designated intermediate system, and setting a pseudo node identifier created by the designated intermediate system as a system-ID of the first intermediate system plus a first interface ID;
if the selection priority of the first intermediate system is smaller than that of a second intermediate system, determining that the second intermediate system is a designated intermediate system, and setting a pseudo node identifier created by the designated intermediate system as a system-ID of the second intermediate system plus a second interface ID;
respectively detecting whether all interfaces of a first intermediate system and a second intermediate system receive hello messages, if any one interface is detected to receive the hello message, allocating an interface ID for the interface receiving the hello message, wherein for the interface which does not receive the hello message, the interface ID is not allocated for the interface;
wherein the system-ID IS used for uniquely identifying the host or the router in the area, and the interface ID refers to the Circuit-ID in the IS-IS system.
2. The IS-IS protocol interface identifier efficient use method of claim 1, wherein the second hello packet comprises:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
3. The IS-IS protocol interface identification efficient method of claim 2, wherein the step of receiving the second hello packet at the second interface of the second intermediate system further comprises:
and judging whether the second hello message contains the MAC address of a second intermediate system, if so, setting the state of the neighbor of the first intermediate system to be UP on the second intermediate system, and determining the appointed intermediate system according to a preset condition.
4. An apparatus for efficient use of IS-IS protocol interface identification, the apparatus comprising:
the first transceiving module is used for allocating a first interface ID to a first interface of a first intermediate system and periodically broadcasting a second hello message if the first interface receives the first hello message broadcasted by a second intermediate system;
a second transceiver module, configured to allocate a second interface ID to a second interface of a second intermediate system after the second hello packet is received by the second interface of the second intermediate system;
a setting module, configured to determine the selection priority of the first intermediate system and the second intermediate system, determine that the first intermediate system is a designated intermediate system if the selection priority of the first intermediate system is greater than the selection priority of the second intermediate system, set a pseudo node identifier created by the designated intermediate system as a system-ID of the first intermediate system plus a first interface ID, and determine that the second intermediate system is the designated intermediate system if the selection priority of the first intermediate system is less than the selection priority of the second intermediate system, and set the pseudo node identifier created by the designated intermediate system as a system-ID of the second intermediate system plus a second interface ID;
the detection module is used for respectively detecting whether all interfaces of the first intermediate system and the second intermediate system receive hello messages, if any one interface is detected to receive the hello message, an interface ID is distributed to the interface receiving the hello message, and if the interface does not receive the hello message, the interface ID is not distributed to the interface not receiving the hello message;
wherein the system-ID IS used for uniquely identifying the host or the router in the area, and the interface ID refers to the Circuit-ID in the IS-IS system.
5. The IS-IS protocol interface identifier efficient-to-use apparatus of claim 4, wherein the second hello packet comprises:
the MAC address of the second intermediate system and the interface identification of the first interface, wherein the interface identification of the first interface is the system-ID of the first intermediate system plus the first interface ID.
6. The IS-IS protocol interface identification efficient use apparatus of claim 5, wherein the first transceiver module IS further configured to:
after a second interface of a second intermediate system receives the second hello message, whether the second hello message contains the MAC address of the second intermediate system is judged, if yes, the state of the neighbor of the first intermediate system is set to be UP on the second intermediate system, and the appointed intermediate system is determined according to preset conditions.
7. An IS-IS protocol system, characterized in that the IS-IS protocol system comprises at least a first intermediate system and a second intermediate system;
wherein the first intermediate system is the first intermediate system of any one of claims 1 to 3 or claims 4 to 6 and the second intermediate system is the second intermediate system of any one of claims 1 to 3 or claims 4 to 6.
CN201610819693.6A 2016-09-12 2016-09-12 Method, device and system for efficiently using IS-IS protocol interface identifier Active CN107819726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610819693.6A CN107819726B (en) 2016-09-12 2016-09-12 Method, device and system for efficiently using IS-IS protocol interface identifier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610819693.6A CN107819726B (en) 2016-09-12 2016-09-12 Method, device and system for efficiently using IS-IS protocol interface identifier

Publications (2)

Publication Number Publication Date
CN107819726A CN107819726A (en) 2018-03-20
CN107819726B true CN107819726B (en) 2021-12-24

Family

ID=61600655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610819693.6A Active CN107819726B (en) 2016-09-12 2016-09-12 Method, device and system for efficiently using IS-IS protocol interface identifier

Country Status (1)

Country Link
CN (1) CN107819726B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506374B (en) * 2015-09-06 2019-03-12 中兴通讯股份有限公司 A kind of dummy node identification method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103004147A (en) * 2012-09-25 2013-03-27 华为技术有限公司 Message forwarding path determining method, network device and control device
CN103391249A (en) * 2013-06-26 2013-11-13 杭州华三通信技术有限公司 Neighborship establishing method and device in IS-IS (intermediate system to intermediate system) network
CN105282041A (en) * 2014-07-18 2016-01-27 中兴通讯股份有限公司 Method and device of flooding on the basis of ISIS (intermediate system to intermediate system)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8102883B2 (en) * 2009-03-04 2012-01-24 Telefonaktiebolaget L M Ericsson (Publ) LDP IGP synchronization for broadcast networks
WO2012078523A1 (en) * 2010-12-11 2012-06-14 Eastlake Donald E Systems and methods for pseudo-link creation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103004147A (en) * 2012-09-25 2013-03-27 华为技术有限公司 Message forwarding path determining method, network device and control device
CN103391249A (en) * 2013-06-26 2013-11-13 杭州华三通信技术有限公司 Neighborship establishing method and device in IS-IS (intermediate system to intermediate system) network
CN105282041A (en) * 2014-07-18 2016-01-27 中兴通讯股份有限公司 Method and device of flooding on the basis of ISIS (intermediate system to intermediate system)

Also Published As

Publication number Publication date
CN107819726A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
US10405188B2 (en) Relay selection routing method and relay selection routing apparatus based on direct communication of terminal
US7414996B2 (en) Address autoconfiguration in ad hoc networks
JP3860175B2 (en) Efficient IP address assignment and duplicate detection method in ad hoc network environment
US9306838B2 (en) Method for avoiding a loop in a network
CN107889185B (en) Networking method of wireless data acquisition system of electric meter
KR100941325B1 (en) Method and apparatus for removing phantom children in an ad-hoc communication system
EP2161880A1 (en) A method for processing ether rig net message and an ether rig net protection system using the method
CN102395126B (en) Mobile Ad hoc network address configuration realization method based on tree structure
US9191312B2 (en) Method and system for implementing PW control bit capability negotiation
WO2014167549A1 (en) Smf-type communication method for a manet network, network node and mobile network which implement this communication method
CN103297340A (en) Routing convergence method and device in multi-protocol label switching (MPLS) and border gateway protocol (BGP) networking
CN104038427A (en) Router renewing method and device
CN102428690B (en) A method for assigning a network address for communicating in a segmented network
CN111935763A (en) Method and network system for improving data transmission reliability in wireless grid network
CN107819726B (en) Method, device and system for efficiently using IS-IS protocol interface identifier
WO2007126231A1 (en) Method of assigning address in wireless personal area network
JP2007181056A (en) Path selection method
WO2016184022A1 (en) Ip accessibility information announcement method and routing determining method and device
KR100733828B1 (en) Method for allocating address and providing multicast routing protocol for fast convergence and robust connectivity in ad hoc networks
EP2728815B1 (en) Method and rbridge for avoiding esadi protocol packet storms
US9226219B2 (en) System and method for route learning and auto-configuration
CN103973558B (en) A kind of route advertising method and device
CN113169938B (en) Method for multi-channel discovery with partially disjoint paths
KR101535633B1 (en) Data transmission method and apparatus and data transmission system in ad -hoc network
CN113726663B (en) Routing processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant