CN112804144A - Information configuration method and network equipment - Google Patents

Information configuration method and network equipment Download PDF

Info

Publication number
CN112804144A
CN112804144A CN201911111851.2A CN201911111851A CN112804144A CN 112804144 A CN112804144 A CN 112804144A CN 201911111851 A CN201911111851 A CN 201911111851A CN 112804144 A CN112804144 A CN 112804144A
Authority
CN
China
Prior art keywords
bgp
network device
information
configuration information
configuration
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.)
Granted
Application number
CN201911111851.2A
Other languages
Chinese (zh)
Other versions
CN112804144B (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 Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911111851.2A priority Critical patent/CN112804144B/en
Publication of CN112804144A publication Critical patent/CN112804144A/en
Application granted granted Critical
Publication of CN112804144B publication Critical patent/CN112804144B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an information configuration method and network equipment. The method comprises the following steps: a first network device obtaining target Border Gateway Protocol (BGP) configuration information of a second network device; and sending the target BGP configuration information to the second network equipment based on a network configuration protocol (NETCONF) session channel between the second network equipment and the target BGP configuration information, wherein the target BGP configuration information is used for configuring BGP neighbor information by the second network equipment.

Description

Information configuration method and network equipment
Technical Field
The invention relates to the technical field of internet, in particular to an information configuration method and network equipment.
Background
In an actual Internet Protocol (IP) network, especially in a large-scale enterprise or operator network, a Border Gateway Protocol (BGP) is increasingly deployed and applied due to its rich routing properties and routing characteristics. The IBGP peer needs to be configured in the network is N × N BGP neighbor relations, so that the difficulty of implementation and later-stage network analysis is increased, and a Route Reflector (RR, Route Reflector) is generated.
Currently, the configuration of the BGP protocol and the neighborhood of each network device (including the route reflector and the client) relies mainly on manual configuration by a network engineer. With the rapid development of services, the network scale is larger and larger, and even in the scenario of configuring route reflectors in the network, the configuration workload of network devices is cumbersome and huge. Especially, when a large-scale network is newly built, routing protocol deployment of a large number of network devices is often involved, and under the condition of such large-scale network protocol deployment, planning preparation, configuration proofreading and configuration deployment in the early stage are complex and prone to errors. Therefore, the existing mode depending on manual configuration has the defects of low efficiency, complexity, easy error and the like.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an information configuration method and a network device.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides an information configuration method, which comprises the following steps:
the first network equipment obtains target BGP configuration information of second network equipment;
and sending the target BGP Configuration information to the second Network device based on a Network Configuration Protocol (NETCONF) session channel between the second Network device and the target BGP Configuration information, wherein the target BGP Configuration information is used for the second Network device to configure BGP neighbor information.
In the foregoing solution, the obtaining target BGP configuration information of the second network device includes:
the first network equipment generates first BGP configuration information of the second network equipment based on the configured BGP neighbor information;
acquiring second BGP configuration information stored in the second network equipment based on the NETCONF session channel;
and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
In the foregoing solution, before the sending the target BGP configuration information to the second network device, the method further includes:
the first network equipment obtains BGP automatic configuration information; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information;
under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, the first network equipment initiates and establishes a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
In the above scheme, the passing of the authentication by the second network device includes: the first network device sends configured first authentication information to a second network device in the specific state;
and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
In the foregoing solution, before the first network device establishes a NETCONF session channel with the second network device, the method further includes:
the first network equipment initializes the BGP automatic configuration function and obtains first authentication information.
In the above scheme, the method further comprises: the first network equipment obtains a configuration success message of the second network equipment, wherein the configuration success message is used for representing that the second network equipment completes configuration of BGP neighbor information;
wherein the first network device is a route reflector device; the second network device is a client device.
An embodiment of the present invention further provides a network device, where the network device is a first network device, and the network device includes: an acquisition unit and a configuration unit; wherein,
the obtaining unit is configured to obtain target BGP configuration information of the second network device;
the configuration unit is configured to send the target BGP configuration information to the second network device based on a NETCONF session channel with the second network device, where the target BGP configuration information is used for configuring BGP neighbor information by the second network device.
In the foregoing solution, the obtaining unit is configured to generate first BGP configuration information of the second network device based on configured BGP neighbor information; acquiring second BGP configuration information stored in the second network equipment based on the NETCONF session channel established by the channel establishing unit; and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
In the foregoing solution, the network device further includes a channel establishing unit, configured to obtain BGP automatic configuration information before the configuration unit sends the target BGP configuration information to the second network device; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information; under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, initiating and establishing a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
In the above solution, the channel establishing unit is further configured to send configured first authentication information to the second network device in the specific state; and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
In the foregoing solution, the device further includes a function initialization unit, configured to initialize a BGP auto-configuration function to obtain the first authentication information before the channel establishing unit establishes the NETCONF session channel with the second network device.
In the foregoing solution, the configuration unit is further configured to obtain a configuration success message of the second network device, where the configuration success message is used to characterize that the second network device completes configuration of BGP neighbor information;
wherein the first network device is a route reflector device; the second network device is a client device.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method according to an embodiment of the present invention.
The embodiment of the present invention further provides a network device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method according to the embodiment of the present invention are implemented.
The information configuration method and the network equipment provided by the embodiment of the invention comprise the following steps: the first network equipment obtains target BGP configuration information of second network equipment; and sending the target BGP configuration information to the second network equipment based on a NETCONF session channel between the second network equipment and the target BGP configuration information, wherein the target BGP configuration information is used for the second network equipment to configure BGP neighbor information. By adopting the technical scheme of the embodiment of the invention, the NETCONF session channel between the first network equipment and the second network equipment is established, namely, the automatic configuration of BGP configuration information of all the second network equipment (namely clients) which are connected with the first network equipment (namely, a route reflector) in an articulated way is realized through the NETCONF, and a user only needs to manage the BGP configuration information in the first network equipment (namely, the route reflector), so that the configuration efficiency of the network equipment is greatly improved, and the problem that the manual configuration mode is complicated and has errors is avoided.
Drawings
Fig. 1 is a schematic flow chart of an information configuration method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of an information configuring method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating an information configuring method according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware component structure of a network device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides an information configuration method. Fig. 1 is a schematic flow chart of an information configuration method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: the first network equipment obtains target BGP configuration information of second network equipment;
step 102: and sending the target BGP configuration information to the second network equipment based on a NETCONF session channel between the second network equipment and the target BGP configuration information, wherein the target BGP configuration information is used for the second network equipment to configure BGP neighbor information.
The information configuration method of the embodiment is applied to a network using BGP. The network devices in the network can be divided into CLIENTs (CLIENTs) and Route Reflectors (RR) according to functions, and the first network device in this embodiment can be a route reflector, and the second network device can be a CLIENT. For example, the network may include a plurality of clients, and in this embodiment, one client (i.e., the second network device) is taken as an example for illustration.
In this embodiment, a first network device and a second network device are both configured with a BGP auto-configuration function, and after initializing the BGP auto-configuration function, the first network device and the second network device start their NETCONF functions, that is, in this embodiment, the first network device establishes a NETCONF session channel with the second network device through the NETCONF function, and sends target BGP configuration information for the second network device to configure BGP neighbor information to the second network device based on the NETCONF session channel.
In an optional embodiment, the first network device may directly obtain target BGP configuration information used for configuring the BGP neighbor information by the second network device, where the target BGP configuration information may be manually configured in the first network device by an engineer. Because the network only includes one first network device, or each Autonomous System (AS) of the network may include one first network device, in this embodiment, manual configuration of BGP neighbor information for the second network device is performed only in a very small number of first network devices, so that data amount of information configuration in the network devices is greatly reduced, and configuration efficiency is improved.
In an optional embodiment of the present invention, before the sending the target BGP configuration information to the second network device, the method further includes: the first network device establishes a NETCONF session channel with the second network device.
It should be noted that, the establishing of the NETCONF session channel between the first network device and the second network device may be performed before step 101, or may be performed after step 101, which is not limited in this embodiment.
For example, when the first network device establishes the NETCONF session channel with the second network device before step 101, as shown in fig. 2, the establishing, by the first network device, the NETCONF session channel with the second network device may include:
step 1001: the first network equipment obtains BGP automatic configuration information; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information;
step 1002: under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, the first network equipment initiates and establishes a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
In this embodiment, the BGP auto-configuration information includes information of at least one second network device that needs to auto-configure BGP neighbor information, where the information of the at least one second network device may include related information such as an IP address, a protocol parameter, and a protocol state of each second network device. The first network device may poll each second electronic device based on information of each second electronic device in the BGP auto-configuration information, and determine a status of each second electronic device based on a polling result.
The state of the second electronic device includes a specific state, where the second network device being in the specific state indicates that the second network device has not successfully established the BGP neighbor relationship, and the second network device having not successfully established the BGP neighbor relationship may indicate that the second network device has not established the neighbor relationship with the first network device. For example, the state machine of the second network device may have a plurality of states, wherein the specific state may be that the state machine is in a down state. As an embodiment, the first network device may send a polling message to the second network device, and in case of not receiving a response message of the second network device, may determine that the second network device is in a specific state, i.e., a down state.
In an optional embodiment of the present invention, the authenticating by the second network device includes: the first network device sends configured first authentication information to a second network device in the specific state; and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
In this embodiment, the first network device and the second network device may be authenticated through a Secure Shell (SSH) mechanism. For example, the first network device and the second network device may be preconfigured with default authentication information, for example, the first network device may be preconfigured with first authentication information, the second network device may be preconfigured with second authentication information, and the first authentication information and the second authentication information are compared to determine whether the authentication passes. The authentication information (including the first authentication information and the second authentication information) may include a default account and a password.
In an optional embodiment of the present invention, before the first network device establishes a NETCONF session channel with a second network device, the method further includes: the first network equipment initializes the BGP automatic configuration function and obtains first authentication information.
In this embodiment, when the first network device and the second network device initialize their own BGP auto-configuration functions, they start their own NETCONF functions on the one hand, and start their own SSH functions on the other hand. For example, when the first network device starts the SSH function of itself, the first authentication information may be obtained in advance, and when the second network device starts the SSH function of itself, the second authentication information may be obtained in advance.
In an alternative embodiment of the present invention, as shown in fig. 2, step 101 comprises:
step 1011: the first network equipment generates first BGP configuration information of the second network equipment based on the configured BGP neighbor information;
step 1012: acquiring second BGP configuration information stored in the second network equipment based on the NETCONF session channel;
step 1013: and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
In this embodiment, the first network device may configure the BGP neighbor information in a manual configuration manner, where the BGP neighbor information may include at least one of the following information corresponding to each second network device: peer ip (Peer ip), autonomous system number (AS number), Peer address family, capability carried under the address family, and protocol group attribute. The first network device may obtain the first BGP configuration information corresponding to the second electronic device from the BGP neighbor information.
In this embodiment, the first network device reads, based on the NETCONF session channel, second BGP configuration information that is already stored in the second network device, where an information type included in the second BGP configuration information may be the same as an information type included in the first BGP configuration information (or BGP neighbor information), or may be less than an information type included in the first BGP configuration information (or BGP neighbor information). For example, if the information content included in the second BGP configuration information is empty, the first network device reads, from the second network device, the second BGP configuration information whose information content is empty; or, if the information content included in the second BGP configuration information is different from the information content of the first BGP configuration information, the first network device deletes or modifies the BGP configuration information in the second network device by comparing and detecting the collision between the first BGP configuration information and the second BGP configuration information, so as to generate target BGP configuration information of the second network device.
As an embodiment, if the information content that the second BGP configuration information may include is empty, the first network device uses the first BGP configuration information as the target BGP configuration information. As another embodiment, if the information content included in the second BGP configuration information is different from the information content of the first BGP configuration information, the first network device modifies the information content of the second BGP configuration information according to the first BGP configuration information, or may supplement the information content of the second BGP configuration information, for example, supplement Peer-to-Peer connection interface (Peer-interface) configuration information, to generate the target BGP configuration information.
In an optional embodiment of the invention, the method further comprises: and the first network equipment obtains a configuration success message of the second network equipment, wherein the configuration success message is used for representing that the second network equipment completes the configuration of BGP neighbor information.
In this embodiment, after the second network device completes the configuration of the BGP neighbor information based on the target BGP configuration information, the first network device obtains a configuration success message of the second network device. Optionally, the first network device monitors the state of the second network device according to a preset period.
By adopting the technical scheme of the embodiment of the invention, the NETCONF session channel between the first network equipment and the second network equipment is established, namely, the automatic configuration of BGP configuration information of all the second network equipment (namely clients) which are connected with the first network equipment (namely, a route reflector) in an articulated way is realized through the NETCONF, and a user only needs to manage the BGP configuration information in the first network equipment (namely, the route reflector), so that the configuration efficiency of the network equipment is greatly improved, and the problem that the manual configuration mode is complicated and has errors is avoided.
The information configuration method according to the embodiment of the present invention is described below with reference to a specific example, in this example, the first network device is specifically a routing transmitter, and the second network device is specifically a client. In practical applications, a plurality of clients may be included in the network, and only one client is illustrated in this example. FIG. 3 is a schematic flow chart illustrating an information configuring method according to an embodiment of the present invention; as shown in fig. 3, the method includes:
step 201: the route reflector and the client machine initialize the BGP automatic configuration function; the initializing BGP automatic configuration function comprises initializing a NETCONF function and an SSH function of the BGP automatic configuration function.
Here, the route reflector and the client initialize their SSH functions to obtain configured authentication information, i.e. the route reflector obtains configured first authentication information and the client obtains configured second authentication information, respectively. The first authentication information and the second authentication information can both comprise a default account and a password.
Step 202: the route reflector obtains BGP automatic configuration information; the BGP automatic configuration information comprises information of at least one client needing automatic configuration of BGP neighbor information.
Optionally, the BGP auto-configuration information may further include key information such as an IP address, protocol parameters, and protocol status of each client.
Step 203: the route reflector determines a client in a particular state in the BGP auto-configuration information and sends first authentication information to the client.
In this embodiment, the route reflector polls each client in the BGP auto-configuration information, determines that a client is in a specific state (e.g., down state) when it is determined that the client does not respond, and the route reflector is in an active configuration state, and sends the first authentication information to the client.
Step 204: the client receives the first authentication information and authenticates based on the second authentication information of the client. After the authentication is passed, the client is in a passive response state.
Here, the client authentication is passed, allowing the route reflector to follow the BGP auto-configuration flow.
Step 205: the route reflector initiates and establishes a NETCONF session channel to the client.
In this embodiment, the route reflector initiates and establishes a NETCONF session channel to the client based on a NETCONF protocol.
Step 206: the route reflector obtains configured BGP neighbor information, and generates first BGP configuration information of the client based on the BGP neighbor information.
In this embodiment, the BGP neighbor information may include at least one of the following information corresponding to each client: peer ip (Peer ip), autonomous system number (AS number), Peer address family, capability carried under the address family, and protocol group attribute. The route reflector may obtain the first BGP configuration information corresponding to the client from the BGP neighbor information.
Step 207: the route reflector obtains second BGP configuration information stored in the client based on the established NETCONF session channel.
Step 208: and the route reflector compares and detects conflict based on the first BGP configuration information and the second BGP configuration information, and generates target BGP configuration information of the client.
In this embodiment, the route reflector deletes or modifies the BGP configuration information in the client by comparing the first BGP configuration information with the second BGP configuration information and performing collision detection, thereby generating target BGP configuration information of the client.
For example, if the information content that the second BGP configuration information may include is empty, the route reflector uses the first BGP configuration information as the target BGP configuration information of the client. For another example, if the information content included in the second BGP configuration information is different from the information content of the first BGP configuration information, the route reflector modifies the information content of the second BGP configuration information according to the first BGP configuration information, or may supplement the information content of the second BGP configuration information, for example, supplement Peer-to-Peer interface (Peer-interface) configuration information, to generate the target BGP configuration information of the client.
Step 209: and the route reflector sends the target BGP configuration information to the client through the NETCONF session channel so that the client automatically completes the configuration of BGP neighbor information.
Because all the large networks in the existing network comprise route reflectors, the technical scheme of the embodiment of the invention has simpler and more efficient configuration of BGP neighbor information of the network equipment of the whole network under the condition that the steps are successfully completed and are all in line with expectations. If network management equipment exists in the network, the network management equipment can only manage BGP configuration of the route reflector, and all client configurations hung below the network management equipment are automatically generated and complete all configuration work based on the configuration of the route reflector, so that the work efficiency of network equipment deployment is greatly improved. While other configurations that are not available or difficult to automatically generate due to other personalization requirements (such as routing-policy) may be replenished after the automatic configuration is completed.
The embodiment of the invention also provides network equipment, which is the first network equipment in the embodiment. Fig. 4 is a first schematic structural diagram of a network device according to an embodiment of the present invention; as shown in fig. 4, the network device includes: an acquisition unit 32 and a configuration unit 33; wherein,
the obtaining unit 32 is configured to obtain target BGP configuration information of the second network device;
the configuring unit 33 is configured to send the target BGP configuration information to the second network device based on a NETCONF session channel between the second network device and the target BGP configuration information, where the target BGP configuration information is used for configuring BGP neighbor information by the second network device.
In an optional embodiment of the present invention, the obtaining unit 32 is configured to generate first BGP configuration information of the second network device based on configured BGP neighbor information; acquiring second BGP configuration information stored in the second network device based on the NETCONF session channel established by the channel establishing unit 31; and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
In an optional embodiment of the present invention, the network device further includes a channel establishing unit 31, configured to obtain BGP auto-configuration information before the configuring unit 33 sends the target BGP configuration information to the second network device; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information; under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, initiating and establishing a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
In an optional embodiment of the present invention, the channel establishing unit 31 is further configured to send the configured first authentication information to the second network device in the specific state; and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
In an optional embodiment of the present invention, as shown in fig. 5, the device further includes a function initializing unit 34, configured to initialize a BGP auto-configuration function to obtain the first authentication information before the channel establishing unit 31 establishes the NETCONF session channel with the second network device.
In an optional embodiment of the present invention, the configuring unit 33 is further configured to obtain a configuration success message of the second network device, where the configuration success message is used to characterize that the second network device completes configuration of BGP neighbor information;
wherein the first network device is a route reflector device; the second network device is a client device.
In the embodiment of the present invention, the channel establishing Unit 31 and the function initializing Unit 34 in the network device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the network device in actual application; the configuration unit 33 in the network device can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol and the like) and a transceiving antenna in practical application; in practical application, the obtaining unit 32 in the network device may be implemented by a CPU, a DSP, an MCU, or an FPGA in the network device in combination with a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna.
It should be noted that: in the network device provided in the foregoing embodiment, when configuring information, only the division of each program module is described as an example, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the network device is divided into different program modules to complete all or part of the processing described above. In addition, the network device and the information configuration method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The embodiment of the invention also provides network equipment, which is the first network equipment in the embodiment. Fig. 6 is a schematic diagram of a hardware structure of a network device according to an embodiment of the present invention, as shown in fig. 6, the network device 50 includes a memory 52, a processor 51, and a computer program stored in the memory 52 and capable of running on the processor 51, and when the processor 51 executes the computer program, the steps of the method according to the embodiment of the present invention are implemented.
Optionally, a communication interface 53 is also included in the network device 50. The various components in network device 50 are coupled together by a bus system 54. It will be appreciated that the bus system 54 is used to enable communications among the components. The bus system 54 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 54 in fig. 6.
It will be appreciated that the memory 52 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 52 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 51, or implemented by the processor 51. The processor 51 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 51. The processor 51 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 51 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 52, and the processor 51 reads the information in the memory 52 and performs the steps of the aforementioned method in conjunction with its hardware.
In an exemplary embodiment, the network Device 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 52, comprising a computer program, which is executable by the processor 51 of the network device 50 to perform the steps of the aforementioned method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
The computer readable storage medium provided by the embodiment of the present invention stores thereon a computer program, which when executed by a processor implements the steps of the method described in the embodiment of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. An information configuration method, characterized in that the method comprises:
a first network device obtains the configuration information of a target Border Gateway Protocol (BGP) of a second network device;
and sending the target BGP configuration information to the second network equipment based on a network configuration protocol NETCONF session channel between the second network equipment and the target BGP configuration information, wherein the target BGP configuration information is used for the second network equipment to configure BGP neighbor information.
2. The method of claim 1, wherein obtaining the target BGP configuration information for the second network device comprises:
the first network equipment generates first BGP configuration information of the second network equipment based on the configured BGP neighbor information;
acquiring second BGP configuration information stored in the second network equipment based on the NETCONF session channel;
and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
3. The method of claim 1, wherein prior to said sending the target BGP configuration information to the second network device, the method further comprises:
the first network equipment obtains BGP automatic configuration information; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information;
under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, the first network equipment initiates and establishes a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
4. The method of claim 3, wherein the second network device authenticates, comprising:
the first network device sends configured first authentication information to a second network device in the specific state;
and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
5. The method of claim 4, wherein before the first network device establishes a NETCONF session channel with a second network device, the method further comprises:
the first network equipment initializes the BGP automatic configuration function and obtains first authentication information.
6. The method according to any one of claims 1 to 5, further comprising:
the first network equipment obtains a configuration success message of the second network equipment, wherein the configuration success message is used for representing that the second network equipment completes configuration of BGP neighbor information;
wherein the first network device is a route reflector device; the second network device is a client device.
7. A network device, the network device being a first network device, the network device comprising: an acquisition unit and a configuration unit; wherein,
the obtaining unit is configured to obtain target BGP configuration information of the second network device;
the configuration unit is configured to send the target BGP configuration information to the second network device based on a NETCONF session channel with the second network device, where the target BGP configuration information is used for configuring BGP neighbor information by the second network device.
8. The network device according to claim 7, wherein the obtaining unit is configured to generate the first BGP configuration information of the second network device based on the configured BGP neighbor information; acquiring second BGP configuration information stored in the second network equipment based on the NETCONF session channel established by the channel establishing unit; and comparing the first BGP configuration information with the second BGP configuration information, and generating target BGP configuration information of the second network equipment based on a comparison result.
9. The network device of claim 7, wherein the network device further comprises a channel establishing unit, configured to obtain BGP auto-configuration information before the configuring unit sends the target BGP configuration information to the second network device; the BGP automatic configuration information comprises information of at least one second network device needing automatic configuration of BGP neighbor information; under the condition that the second network equipment in the BGP automatic configuration information is in a specific state and the second network equipment passes authentication, initiating and establishing a NETCONF session channel to the second network equipment; the second network device being in a particular state indicates that the second network device has not successfully established a BGP neighbor relationship.
10. The network device according to claim 9, wherein the channel establishing unit is further configured to send the configured first authentication information to the second network device in the specific state; and determining that the second network equipment passes the authentication under the condition that the first authentication information is consistent with second authentication information configured in the second network equipment.
11. The network device according to claim 10, wherein the device further comprises a function initialization unit, configured to initialize a BGP auto-configuration function to obtain the first authentication information before the channel establishing unit establishes the NETCONF session channel with the second network device.
12. The network device according to any one of claims 7 to 11, wherein the configuration unit is further configured to obtain a configuration success message of the second network device, where the configuration success message is used to characterize that the second network device completes configuration of BGP neighbor information;
wherein the first network device is a route reflector device; the second network device is a client device.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
14. A network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the processor executes the program.
CN201911111851.2A 2019-11-14 2019-11-14 Information configuration method and network equipment Active CN112804144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911111851.2A CN112804144B (en) 2019-11-14 2019-11-14 Information configuration method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911111851.2A CN112804144B (en) 2019-11-14 2019-11-14 Information configuration method and network equipment

Publications (2)

Publication Number Publication Date
CN112804144A true CN112804144A (en) 2021-05-14
CN112804144B CN112804144B (en) 2022-10-21

Family

ID=75803591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911111851.2A Active CN112804144B (en) 2019-11-14 2019-11-14 Information configuration method and network equipment

Country Status (1)

Country Link
CN (1) CN112804144B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296124A (en) * 2008-06-27 2008-10-29 华为技术有限公司 Method, device and system for acquiring equipment information
US20140136714A1 (en) * 2011-06-10 2014-05-15 Telefonica, S.A. Method for exchanging information about network resources
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors
CN105991579A (en) * 2015-02-12 2016-10-05 华为技术有限公司 Information transmitting method, related network equipment and system
CN106059922A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Route injection method and device
WO2019106259A1 (en) * 2017-11-28 2019-06-06 Orange Configuration method intended to be implemented in a network useing a dynamic routing protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296124A (en) * 2008-06-27 2008-10-29 华为技术有限公司 Method, device and system for acquiring equipment information
US20140136714A1 (en) * 2011-06-10 2014-05-15 Telefonica, S.A. Method for exchanging information about network resources
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors
CN105991579A (en) * 2015-02-12 2016-10-05 华为技术有限公司 Information transmitting method, related network equipment and system
CN106059922A (en) * 2016-05-26 2016-10-26 杭州华三通信技术有限公司 Route injection method and device
WO2019106259A1 (en) * 2017-11-28 2019-06-06 Orange Configuration method intended to be implemented in a network useing a dynamic routing protocol

Also Published As

Publication number Publication date
CN112804144B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN111865598B (en) Identity verification method and related device for network function service
US10666638B2 (en) Certificate-based dual authentication for openflow enabled switches
CN108881308B (en) User terminal and authentication method, system and medium thereof
EP3595244B1 (en) Network slice management method, unit and system
CN103580980B (en) The method and device thereof that virtual network finds and automatically configures automatically
CN108667638B (en) Network service configuration method and network management equipment
US20070147318A1 (en) Dynamic passing of wireless configuration parameters
US9100296B1 (en) NETCONF/DMI-based secure network device discovery
WO2018024121A1 (en) Network function (nf) management method and nf management device
CN110365701B (en) Client terminal equipment management method and device, computing equipment and storage medium
WO2018053686A1 (en) Method and device for deploying security policy
WO2019075773A1 (en) Data processing method and apparatus, computer device and storage medium
TW201706901A (en) Authentication method, apparatus, and system
CN111385180B (en) Communication tunnel construction method, device, equipment and medium
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
WO2018076675A1 (en) Network access method, routing device and terminal, and computer storage medium
WO2016078291A1 (en) Method, apparatus and system for accessing file sharing server
CN108270591B (en) Method for configuring network equipment and related equipment
WO2018039901A1 (en) Method, device and system for ip address allocation, and computer program product
WO2017124728A1 (en) Method and apparatus for acquiring router configuration
CN112804144B (en) Information configuration method and network equipment
CN111090881A (en) Database access method and device
CN114615285B (en) Physical machine deployment method and device, electronic equipment and storage medium
US11888898B2 (en) Network configuration security using encrypted transport
CN116321195A (en) Wireless distribution network method, device, equipment and system

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