CN111682968B - Network access management method and system for communication equipment - Google Patents

Network access management method and system for communication equipment Download PDF

Info

Publication number
CN111682968B
CN111682968B CN202010478867.3A CN202010478867A CN111682968B CN 111682968 B CN111682968 B CN 111682968B CN 202010478867 A CN202010478867 A CN 202010478867A CN 111682968 B CN111682968 B CN 111682968B
Authority
CN
China
Prior art keywords
equipment
nlp
item
remote
central
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
CN202010478867.3A
Other languages
Chinese (zh)
Other versions
CN111682968A (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.)
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies Co Ltd
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 China Information And Communication Technology Group Co ltd, Fiberhome Telecommunication Technologies Co Ltd filed Critical China Information And Communication Technology Group Co ltd
Priority to CN202010478867.3A priority Critical patent/CN111682968B/en
Publication of CN111682968A publication Critical patent/CN111682968A/en
Application granted granted Critical
Publication of CN111682968B publication Critical patent/CN111682968B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a communication equipment network access management method and a system, relating to the technical field of communication.A MAC address of network equipment is used as an equipment identifier, and IP addresses are not needed for communication and management among equipment, thereby greatly saving IP address resources of clients and improving the configuration efficiency of communication equipment; the method for managing the communication connection between the devices is simplified, and the effects of simple operation and convenient application are achieved; meanwhile, the invention realizes the management effect of synchronous management of VLAN and zero configuration of remote equipment when traversing a third-party network through the inconsistency of the priority of heartbeat messages among the equipment.

Description

Communication equipment network access management method and system
Technical Field
The invention relates to the technical field of communication, in particular to a network access management method and a network access management system for communication equipment.
Background
Along with the expansion of network scale, the sites of communication equipment arrangement are gradually expanded to towns and villages, the distance between the sites is gradually lengthened, the construction environment requires that the sites are removed as soon as possible in the process of engineering opening, the configuration of the equipment is avoided, and the opening personnel can electrify the equipment.
The existing communication network generally includes a network management server and a plurality of remote communication devices, each of which is in signal connection with the network management server, and each of the remote communication devices is responsible for a regional communication service.
If the communication equipment is configured according to the preset requirement in advance, the work flow has high requirements on the pre-configuration quality of fixed-point installation personnel and a network, the implementation scheme of the current communication equipment configuration mainly comprises two methods, namely a DHCP method and an OSPF method, which both need to configure an IP address for each site.
Therefore, a new operation mode is urgently needed to solve the above problem, and the communication device performs efficient configuration work.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a communication equipment network access management method and a system, which can save IP address resources and improve the configuration efficiency of communication equipment.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
the invention discloses a network access management method of communication equipment, which comprises the following steps:
the method comprises the steps that both a central device and a far-end device send heartbeat messages carrying device information to adjacent devices, wherein the device information comprises MAC addresses, link expenses and site priorities;
the central equipment and the remote equipment store the equipment information in the received heartbeat message locally in the form of NLP items; if the NLP item with the same MAC address exists locally, the NLP item with the shortest communication path is selected according to the equipment information and stored locally;
the central equipment and the remote equipment inform other adjacent equipment of the stored NLP item information;
the central equipment takes the MAC address of each remote equipment as a communication identifier and establishes two-layer link connection with each remote equipment.
On the basis of the above technical solution, the central device and the remote device both notify other adjacent devices of the stored NLP entry information, and specifically includes the following steps:
when the central device or the remote device stores a new NLP item, the central device or the remote device sends an announcement to other neighbor devices, the announcement message comprises the MAC address, the link cost and the site priority of the new NLP item, and the link cost of the NLP item is increased by 1 every time the new NLP item passes through one site.
On the basis of the above technical solution, if there is an NLP entry with the same MAC address locally, the central device or the remote device selects the NLP entry with the shortest communication path according to the device information and stores the NLP entry locally, which specifically includes the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link overhead, and selecting an NLP item with small overhead;
if the link cost is the same, comparing the port indexes, and selecting an NLP item with a small index value;
and when the selected optimal NLP item is a new NLP item, acquiring the site priority of the new NLP item, updating the local NLP item if the site priority is high, and not updating if the site priority is high.
On the basis of the technical scheme, the method further comprises the following steps:
after the central equipment or the far-end equipment receives the heartbeat message of the adjacent equipment, the timer of the adjacent equipment is refreshed, if the heartbeat message of the adjacent equipment is still not received when the timer is due, the NLP item of the adjacent equipment is deleted, and the NLP item is notified to other adjacent equipment to be updated.
On the basis of the technical scheme, the method further comprises the following steps:
when a third-party network needs to be passed through, the remote equipment configures the site priority of the remote equipment to be high priority, and passes through the third-party network through the heartbeat message to synchronize the local VLAN identification to the remote equipment of the opposite end;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
The invention also provides a communication equipment configuration system in the communication network, which comprises a central device and at least one remote device, wherein the central device is connected with the network management server, and the remote device is connected with the central device or other remote devices;
the central device or the remote device is configured to: sending a heartbeat message carrying equipment information to adjacent equipment, wherein the equipment information comprises an MAC address, link overhead and site priority; storing the equipment information in the received heartbeat message in a local place in the form of NLP (non line segment) items; if NLP items with the same MAC address exist locally, the NLP item of the shortest communication path is selected according to the equipment information and stored locally; notifying other adjacent equipment of the stored NLP item information;
the central device is further configured to: and establishing two-layer link connection with each remote device by taking the MAC address of each remote device as a communication identifier.
On the basis of the above technical solution, the central device or the remote device announcing the stored NLP entry information to other neighboring devices specifically includes the following steps:
when the central device or the remote device stores a new NLP item, the central device or the remote device sends an announcement to other neighbor devices, the announcement message comprises the MAC address, the link cost and the site priority of the new NLP item, and the link cost of the NLP item is increased by 1 every time the new NLP item passes through one site.
On the basis of the technical scheme, if the local NLP entries with the same MAC addresses exist, the central device or the remote device selects the optimal NLP entries to be stored locally according to the link overhead and the site priority, and the method specifically comprises the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link overhead, and selecting an NLP item with small overhead;
if the link cost is the same, comparing the port indexes, and selecting an NLP (non-line-of-sight) entry with a small index value;
and when the selected optimal NLP item is a new NLP item, acquiring the site priority of the new NLP item, updating the local NLP item if the site priority is high, and not updating if the site priority is high.
On the basis of the above technical solution, the central device or the remote device is further configured to:
after the central equipment or the far-end equipment receives the heartbeat message of the adjacent equipment, the timer of the adjacent equipment is refreshed, if the heartbeat message of the adjacent equipment is still not received when the timer is due, the NLP item of the adjacent equipment is deleted, and the NLP item is notified to other adjacent equipment to be updated.
On the basis of the above technical solution, the remote device is further configured to:
when a third-party network needs to be passed through, the station priority of the third-party network is configured to be high, and a heartbeat message passes through the third-party network to synchronize a local VLAN (virtual local area network) identifier to a remote device of an opposite terminal;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
Compared with the prior art, the invention has the advantages that:
1. the invention takes the MAC address of the network equipment as the equipment identification, and the communication and management between the equipment do not need IP addresses, thereby greatly saving the IP address resources of the client and improving the configuration efficiency of the communication equipment; and the method for managing the communication connection between the devices is simplified, and the effects of simple operation and convenient application are achieved.
2. The invention realizes the management effect of synchronous management of the VLAN and zero configuration of the remote equipment when traversing a third-party network through the inconsistency of the priority of heartbeat messages among the equipment.
Drawings
Fig. 1 is a flowchart illustrating steps of a network access management method for a communication device according to an embodiment of the present invention;
FIG. 2 is a diagram of the message content of a heartbeat message in an embodiment of the present invention;
fig. 3 is a message structure for establishing a two-layer connection between a central device and a remote device in an embodiment of the present invention;
fig. 4 is a schematic diagram of state transition of an NLP protocol of a device port according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of establishing a two-layer connection between a central device and a remote device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network access management system of a communication device in an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
The embodiment of the invention provides a network access management method and system for communication equipment.
In order to achieve the technical effect, the general idea of the application is as follows:
referring to fig. 1, a method for managing network access of a communication device according to an embodiment of the present invention includes the following steps:
s1, the central device and the remote device send heartbeat messages carrying device information to the adjacent devices, wherein the device information comprises MAC addresses, link spending and site priority;
s2, the central equipment and the remote equipment store the equipment information in the received heartbeat message locally in the form of NLP items; if the NLP item with the same MAC address exists locally, the NLP item with the shortest communication path is selected according to the equipment information and stored locally;
s3, the central equipment and the remote equipment all announce the stored NLP item information to other adjacent equipment;
and S4, the central equipment establishes two-layer link connection with each remote equipment by taking the MAC address of each remote equipment obtained from the local NLP entry as a communication identifier.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
The network access management method of the communication equipment of the embodiment of the invention specifically comprises the following steps:
the central device is connected with the Network Management server, executes a normal configuration file, sets an IP address, configures an SNMP (Simple Network Management Protocol) server address and the like.
The network ports of the central device and the remote device start an NLP (Neighbor learning Protocol) Protocol, Protocol messages are sent in a heartbeat form at regular time, and the message content is shown in fig. 2 and includes the MAC address of the local station, the priority of the station, the link overhead, and the like. The protocol message between the stations only allows single-hop operation, and the receiving station does not perform software forwarding any more and only processes the protocol message at the receiving station. The priority of the heartbeat message sent by the central equipment is higher than that of the heartbeat message sent by the far-end equipment.
After the central device or the remote device receives the heartbeat message of the adjacent device, the timer of the adjacent device is updated, if the heartbeat message of the adjacent device is still not received after the overtime, the NLP item of the adjacent device and the learned NLP item information are deleted, and the notification is sent to other adjacent devices of the site.
When the central device or the remote device learns the new NLP item information, the information is notified to other adjacent devices of the site. The announced message includes the MAC address, site priority, and link overhead in the new NLP entry, while the device of the receiving site binds the receiving port with the corresponding NLP entry. The link overhead increases by 1 (ignoring link layer rate differences) for each station traversed by NLP information.
When the station learns the MAC address and already exists in the local NLP entry, the shortest path selection needs to be performed. The selection principle of the items is to compare the link cost and preferentially select the items with low cost; if the cost is the same, the port indexes are compared, and the entry with the small index value is preferentially selected. When the optimal NLP entry is selected as a new NLP entry, if the priority of the new NLP entry is higher, the new NLP entry is updated, and otherwise, the entry is kept unchanged.
As a preferred embodiment, when each station learns NLP entries of all neighboring devices, it does not send any notification message, but only needs to send a heartbeat message. As shown in fig. 3, a NLP protocol state transition diagram for a device port is shown. When the NLP items between each equipment and each adjacent equipment are obtained in the communication network, each equipment stops sending the own destination site information to each adjacent equipment.
The central equipment can learn the MAC address information of other remote equipment sites through an NLP protocol, but can communicate with the remote equipment without depending on the protocol. As long as the MAC address information of the remote device can be obtained, the two-layer connection between the central device and the remote device can be established by using the site MAC address as the communication identifier, the message structure is as shown in fig. 4, and the message structure mainly includes establishing a TCP/UDP connection similar to an IP protocol family, and the processing modes of the application layer data of three or more layers remain unchanged, but the IP layer encapsulation is realized by using the MAC address identifier and a private encapsulation method.
Furthermore, the remote device only sends the message with the destination MAC address of the received message as the MAC address of the local site and the Ethernet type as the private definition type to the local CPU for processing, and other messages are forwarded according to the two-layer logic. And when the remote equipment receives the message and judges that the message is of the two-layer connection type, the outer-layer class IP package is stripped, and the class three-layer data processing is carried out. And when the remote equipment sends the two-layer connection message, packaging the similar IP data format according to the attribute of the destination site and the message type. The specific class three-layer processing mode is basically consistent with the common TCP/IP processing mode, and is not described in detail.
As shown in fig. 5, establishing a two-layer connection based on a central device and a remote device includes the following steps:
the central equipment locally inquires an MAC address corresponding to the remote equipment to be connected and initiates a management operation message;
the remote equipment judges whether a destination MAC sent by the central equipment to manage the operation message is matched with a local site or not, and the protocol type is 0xFF 28;
if yes, the remote equipment and the central equipment establish two-layer connection, and a subsequent network management operation processing flow is carried out; if not, the remote device executes a normal two-layer forwarding process.
After the connection between the center device and the far-end device is established, the center device can realize the basic functions of network management such as configuration, management, upgrade, query and the like of the far-end device. Meanwhile, the relay conversion function from the L2 SNMP to the standard SNMP is realized at the central site, and the zero configuration management of the graphical network management on the remote equipment can be realized. It should be noted that, since each remote device is not configured with an IP address, the IP address is not needed to be used in the path calculation and interaction process.
In the embodiment of the invention, the MAC address of the network equipment is used as the equipment identifier, and the communication and management between the equipment do not need IP addresses, thereby greatly saving the IP address resources of clients and improving the configuration efficiency of the communication equipment; and the method for managing the communication connection between the devices is simplified, and the effects of simple operation and convenient application are achieved.
In another implementation manner of the embodiment of the present invention, after the central device and all the remote devices complete the two-layer link connection, when a new remote device is added to the communication network, the method further includes the following steps:
the newly-added remote equipment does not need to set an IP address, and exchanges heartbeat messages carrying equipment information with the newly-added remote equipment and the adjacent equipment; when the central equipment or the remote equipment learns new NLP item information, the central equipment or the remote equipment notifies other adjacent equipment of the site;
because the newly added remote device may change the NLP entry of the shortest communication path between the original remote device and the central device, if each device receives the heartbeat message of the newly added remote device or receives the notification of the NLP entry learned to the new site sent by the adjacent device of the newly added remote device, it needs to send the heartbeat message carrying the device information to the adjacent device again, and then triggers the central device and the remote device to update the NLP entry of the shortest communication path again according to the received heartbeat message.
It should be noted that, the sending of the heartbeat message is based on the self-starting of the NLP protocol, and after receiving the heartbeat message, the device only performs single-hop processing, that is, the device only performs local processing after receiving the heartbeat message, and does not forward the received heartbeat message;
after receiving the heartbeat message and acquiring the local MAC address and the local link overhead information in the heartbeat message, each device stores the received local MAC address and the local link overhead information locally in the form of NLP entries.
As a preferred embodiment, if an NLP entry with the same MAC address exists locally, the central device or the remote device selects the NLP entry with the shortest communication path according to the device information and stores the NLP entry locally, which specifically includes the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link expenses, and selecting NLP items with small expenses;
if the link cost is the same, comparing the port indexes, and selecting an NLP item with a small index value;
and when the selected optimal NLP item is a new NLP item, acquiring the site priority of the new NLP item, updating the local NLP item if the site priority is high, and not updating if the site priority is high.
As a preferred embodiment, the method further comprises the steps of:
after the central equipment or the far-end equipment receives the heartbeat message of the adjacent equipment, the timer of the adjacent equipment is refreshed, if the heartbeat message of the adjacent equipment is still not received when the timer is due, the NLP item of the adjacent equipment is deleted, and the NLP item is notified to other adjacent equipment to be updated.
In another implementation manner of the embodiment of the present invention, when the central device needs to traverse the third-party network, the method further includes a third-party network traversing process, and the method further includes the following steps:
when a third-party network needs to be passed through, the remote equipment configures the site priority of the remote equipment to be high priority, and the remote equipment passes through the third-party network through a heartbeat message to synchronize a local VLAN (virtual local area network) identifier to the remote equipment of an opposite terminal;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
In another implementation manner of the embodiment of the present invention, if the remote device needs to be managed, the following two methods may be adopted:
(1) the central device directly manages the remote devices: after establishing two-layer link connection between the central equipment and the remote equipment, sending a management command through a specific Ethernet message;
(2) the network management server indirectly manages the remote equipment through the central equipment: the network management server sends a management instruction to the remote equipment, after a specific conversion program is carried out by the central equipment, the remote equipment executes a configuration command through a two-layer link channel established by the central equipment and the remote equipment, and simultaneously, information such as the state, the alarm, the performance and the like of the remote equipment can also be sent to the central equipment through the two-layer channel and is pushed to the network management server after the specific conversion program.
Based on the same inventive concept, an embodiment of the present invention provides a communication device network access management system, which, as shown in fig. 6, includes a central device and at least one remote device, where the central device is connected to a network management server, and the remote device is connected to the central device or other remote devices;
the central device or the remote device is configured to: sending a heartbeat message carrying equipment information to adjacent equipment, wherein the equipment information comprises an MAC address, link overhead and site priority; storing the equipment information in the received heartbeat message locally in the form of NLP (NLP entry); if the NLP item with the same MAC address exists locally, the NLP item with the shortest communication path is selected according to the equipment information and stored locally; notifying other adjacent equipment of the stored NLP item information;
the central device is further configured to: and establishing two-layer link connection with each remote device by taking the MAC address of each remote device obtained from the local NLP entry as a communication identifier.
As a preferred embodiment, the method for notifying the stored NLP entry information to other adjacent devices by the central device or the remote device specifically includes the following steps:
when the central device or the remote device stores a new NLP item, the central device or the remote device sends an announcement to other neighbor devices, the announcement message comprises the MAC address, the link cost and the site priority of the new NLP item, and the link cost of the NLP item is increased by 1 every time the new NLP item passes through one site.
In another implementation manner in the embodiment of the present invention, if there are NLP entries with the same MAC address locally, the central device or the remote device selects an optimal NLP entry according to the link overhead and the site priority and stores the selected optimal NLP entry locally, which specifically includes the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link overhead, and selecting an NLP item with small overhead;
if the link cost is the same, comparing the port indexes, and selecting an NLP item with a small index value;
and when the selected optimal NLP item is a new NLP item, acquiring the site priority of the new NLP item, updating the local NLP item if the site priority is high, and not updating if the site priority is high.
In another implementation manner of the embodiment of the present invention, the central device or the remote device is further configured to:
after the central equipment or the far-end equipment receives the heartbeat message of the adjacent equipment, the timer of the adjacent equipment is refreshed, if the heartbeat message of the adjacent equipment is still not received when the timer is due, the NLP item of the adjacent equipment is deleted, and the NLP item is notified to other adjacent equipment to be updated.
In another implementation manner of the embodiment of the present invention, the remote device is further configured to:
when a third-party network needs to be passed through, the station priority of the third-party network is configured to be high, and a heartbeat message passes through the third-party network to synchronize a local VLAN (virtual local area network) identifier to a remote device of an opposite terminal;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
Based on the same inventive concept, embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements all or part of the method steps of the first embodiment.
The present invention can implement all or part of the flow in the first embodiment, and can also be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Based on the same inventive concept, an apparatus according to an embodiment of the present invention further includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the first embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A network access management method for communication equipment is characterized by comprising the following steps:
the method comprises the steps that both a central device and a far-end device send heartbeat messages carrying device information to adjacent devices, wherein the device information comprises MAC addresses, link expenses and site priorities;
the central equipment and the remote equipment store the equipment information in the received heartbeat message locally in the form of NLP items; if the NLP item with the same MAC address exists locally, the NLP item with the shortest communication path is selected according to the equipment information and stored locally;
the central equipment and the remote equipment inform other adjacent equipment of the stored NLP item information;
the central equipment takes the MAC address of each remote equipment as a communication identifier and establishes two-layer link connection with each remote equipment;
the central device and the remote device both notify the stored NLP entry information to other adjacent devices, specifically including the following steps:
when the central equipment or the remote equipment stores a new NLP item, the central equipment or the remote equipment sends an announcement to other neighbor equipment, the announcement message comprises the MAC address, the link cost and the site priority of the new NLP item, and the link cost of the NLP item is increased by 1 every time the new NLP item passes through one site;
if the NLP entries with the same MAC address exist locally, the central device or the remote device selects the NLP entry with the shortest communication path according to the device information and stores the NLP entry locally, which specifically includes the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link overhead, and selecting an NLP item with small overhead;
if the link cost is the same, comparing the port indexes, and selecting an NLP item with a small index value;
and when the selected optimal NLP entry is a new NLP entry, acquiring the site priority of the new NLP entry, updating the local NLP entry if the site priority is high, and not updating if the site priority is high.
2. The method of claim 1, further comprising the steps of:
after the central device or the remote device receives the heartbeat message of the adjacent device, the timer of the adjacent device is refreshed, if the heartbeat message of the adjacent device is still not received when the timer expires, the NLP entry of the adjacent device is deleted, and the NLP entry is notified to other adjacent devices for updating.
3. The method of claim 1, wherein: the method further comprises the steps of:
when a third-party network needs to be passed through, the remote equipment configures the site priority of the remote equipment to be high priority, and passes through the third-party network through the heartbeat message to synchronize the local VLAN identification to the remote equipment of the opposite end;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
4. A communication equipment network access management system is characterized by comprising a central device and at least one remote device, wherein the central device is connected with a network management server, and the remote device is connected with the central device or other remote devices;
the central device or the remote device is configured to: sending a heartbeat message carrying equipment information to adjacent equipment, wherein the equipment information comprises an MAC address, link overhead and site priority; storing the equipment information in the received heartbeat message locally in the form of NLP (NLP entry); if the NLP item with the same MAC address exists locally, the NLP item with the shortest communication path is selected according to the equipment information and stored locally; notifying other adjacent equipment of the stored NLP item information;
the central device is further configured to: establishing two-layer link connection with each remote device by taking the MAC address of each remote device as a communication identifier;
the method for notifying the stored NLP item information to other adjacent equipment by the central equipment or the remote equipment specifically comprises the following steps:
when the central equipment or the remote equipment stores a new NLP item, the central equipment or the remote equipment sends an announcement to other neighbor equipment, the announcement message comprises the MAC address, the link cost and the site priority of the new NLP item, and the link cost of the NLP item is increased by 1 every time the new NLP item passes through one site;
if NLP entries with the same MAC addresses exist locally, the central equipment or the remote equipment selects the optimal NLP entries to be stored locally according to link overhead and site priority, and the method specifically comprises the following steps:
when the central equipment or the remote equipment receives the new NLP item information, judging whether NLP items with the same MAC address exist locally;
if yes, comparing the link overhead, and selecting an NLP item with small overhead;
if the link cost is the same, comparing the port indexes, and selecting an NLP item with a small index value;
and when the selected optimal NLP item is a new NLP item, acquiring the site priority of the new NLP item, updating the local NLP item if the site priority is high, and not updating if the site priority is high.
5. The system of claim 4, wherein the central device or remote device is further configured to:
after the central equipment or the far-end equipment receives the heartbeat message of the adjacent equipment, the timer of the adjacent equipment is refreshed, if the heartbeat message of the adjacent equipment is still not received when the timer is due, the NLP item of the adjacent equipment is deleted, and the NLP item is notified to other adjacent equipment to be updated.
6. The system of claim 4, wherein: the remote device is further configured to:
when a third-party network needs to be passed through, the station priority of the third-party network is configured to be high priority, and a heartbeat message passes through the third-party network to synchronize a local VLAN (virtual local area network) identifier to a remote device of an opposite terminal;
and the remote equipment of the opposite terminal receives the VLAN identification in the heartbeat message and carries the VLAN identification when the receiving port of the remote equipment sends the heartbeat message according to the priority rule.
CN202010478867.3A 2020-05-29 2020-05-29 Network access management method and system for communication equipment Active CN111682968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010478867.3A CN111682968B (en) 2020-05-29 2020-05-29 Network access management method and system for communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010478867.3A CN111682968B (en) 2020-05-29 2020-05-29 Network access management method and system for communication equipment

Publications (2)

Publication Number Publication Date
CN111682968A CN111682968A (en) 2020-09-18
CN111682968B true CN111682968B (en) 2022-08-30

Family

ID=72453745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010478867.3A Active CN111682968B (en) 2020-05-29 2020-05-29 Network access management method and system for communication equipment

Country Status (1)

Country Link
CN (1) CN111682968B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112090065B (en) * 2020-09-23 2023-09-19 努比亚技术有限公司 Network delay regulation and control method, equipment and computer readable storage medium
CN113438162B (en) * 2021-05-21 2022-11-04 翱捷科技股份有限公司 Method and device for realizing two-layer forwarding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801820A (en) * 2012-08-10 2012-11-28 杭州华三通信技术有限公司 MAC address publishing method and device in EVI network
CN103078969A (en) * 2013-02-01 2013-05-01 杭州华三通信技术有限公司 Method and equipment for announcing media access control (MAC) address information
CN103117913A (en) * 2013-01-31 2013-05-22 杭州华三通信技术有限公司 Method and equipment for informing MAC (media access control) address information
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944818B (en) * 2013-01-23 2018-08-28 中兴通讯股份有限公司 A kind of method and system for returning Message processing in access stacking network more

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801820A (en) * 2012-08-10 2012-11-28 杭州华三通信技术有限公司 MAC address publishing method and device in EVI network
CN103117913A (en) * 2013-01-31 2013-05-22 杭州华三通信技术有限公司 Method and equipment for informing MAC (media access control) address information
CN103078969A (en) * 2013-02-01 2013-05-01 杭州华三通信技术有限公司 Method and equipment for announcing media access control (MAC) address information
CN105471651A (en) * 2015-12-04 2016-04-06 武汉烽火网络有限责任公司 VLAN synchronization method in two-layer network, local switch and remote switch

Also Published As

Publication number Publication date
CN111682968A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN107733793B (en) Forwarding table item maintenance method and device
CN105577502B (en) Service transmission method and device
CN109660442B (en) Method and device for multicast replication in Overlay network
US20170331641A1 (en) Deployment Of Virtual Extensible Local Area Network
CN108964940B (en) Message sending method and device and storage medium
CN103118148B (en) A kind of ARP buffering updating method and equipment
US20130144995A1 (en) Control apparatus, a communication system, a communication method and a recording medium having recorded thereon a communication program
CN106878288B (en) message forwarding method and device
CN110430076B (en) Route management method and device
CN108156067B (en) Method and system for realizing Ethernet-based virtual private network
CN111682968B (en) Network access management method and system for communication equipment
CN106850380B (en) Method and system for realizing three-layer virtual special network of multi-protocol label switching
CN104301238A (en) Message processing method, device and system
CN113037883B (en) Method and device for updating MAC address table entries
CN105637806A (en) Method and apparatus for determining network topology, and centralized network state information storage device
EP3461079B1 (en) Path establishment method and device, and network node
US20160344689A1 (en) Network Management of Devices Residing Behind a Network Device
CN108512949B (en) MAC address synchronization method and system
WO2018161827A1 (en) Address self-learning method and device, and switch
CN112953832B (en) Processing method and device for MAC address table entry
CN112910771B (en) Connection establishment method, device, equipment and storage medium
WO2017206565A1 (en) Apparatus management method, device, and controller
CN112838985B (en) Heterogeneous network communication method, system and controller
CN111131030B (en) Route processing method, equipment and medium under EVPN
CN108259292B (en) Method and device for establishing tunnel

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