CN110601985A - Interface configuration information switching method, device, equipment and storage medium - Google Patents

Interface configuration information switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN110601985A
CN110601985A CN201910874953.3A CN201910874953A CN110601985A CN 110601985 A CN110601985 A CN 110601985A CN 201910874953 A CN201910874953 A CN 201910874953A CN 110601985 A CN110601985 A CN 110601985A
Authority
CN
China
Prior art keywords
area
configuration information
interface configuration
switching
ospf protocol
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
CN201910874953.3A
Other languages
Chinese (zh)
Other versions
CN110601985B (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.)
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
Beijing Dongtu Jinyue Technology 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 Beijing Dongtu Jinyue Technology Co Ltd filed Critical Beijing Dongtu Jinyue Technology Co Ltd
Priority to CN201910874953.3A priority Critical patent/CN110601985B/en
Publication of CN110601985A publication Critical patent/CN110601985A/en
Application granted granted Critical
Publication of CN110601985B publication Critical patent/CN110601985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • 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

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 a method, a device, equipment and a storage medium for switching interface configuration information, wherein the method comprises the following steps: receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID; and if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area. The technical scheme of the embodiment of the invention can realize automatic switching of the interface configuration information of the network equipment so as to reduce the maintenance cost of the network equipment and improve the speed of the network equipment accessing the network.

Description

Interface configuration information switching method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for switching interface configuration information.
Background
OSPF (Open Shortest Path First) is a dynamic routing protocol in the autonomous system based on link state, and the protocol forms a link state database by exchanging link state information between three layers of switches, and then generates a routing table by using Shortest Path First algorithm based on the database.
The OSPF protocol supports networks of various sizes, up to several hundred three-layer switches. OSPF can send link state update packets immediately after a change in the routing topology of a network. In the existing application environment, the networking environment is generally fixed, and therefore, configuration information about OSPF is also unchanged for the switching device. Because a certain interface belongs to a certain area and is planned in advance, when the networking environment changes and the network topology changes, the interface configuration information of the OSPF can be modified manually.
In the process of implementing the invention, the inventor finds that the prior art has the following defects:
for a flexible network, such as a vehicle-mounted switching device, when a vehicle enters an unknown area from one area, if the interface configuration information of the OSPF is manually modified each time, a problem of high maintenance cost is caused. Meanwhile, the interface configuration information of the OSPF is modified manually, which is easy to make mistakes, thereby causing the network to be disconnected and being difficult to ensure that the switching equipment can access the network quickly.
Disclosure of Invention
The embodiment of the invention provides an interface configuration information switching method, an interface configuration information switching device, interface configuration information switching equipment and a storage medium, which are used for automatically switching interface configuration information of network equipment so as to reduce the maintenance cost of the network equipment and improve the network access speed of the network equipment.
In a first aspect, an embodiment of the present invention provides a method for switching interface configuration information, where the method includes:
receiving an OSPF protocol message; wherein, the OSPF protocol packet includes a first area ID (identity document, identity card identification number);
and if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area.
In a second aspect, an embodiment of the present invention further provides an interface configuration information switching apparatus, including:
the message receiving module is used for receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID;
and the information switching module is used for switching the interface configuration information of the local record according to the interface configuration information of the first area if the first area ID is determined not to be consistent with the second area ID of the local record and the device meets the automatic switching condition in the first area.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the interface configuration information switching method provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the interface configuration information switching method provided in any embodiment of the present invention.
In the embodiment of the present invention, when the first area ID in the OSPF protocol message received by the current network device does not match the second area ID recorded locally, it may be determined that the current network device may move to a new area, that is, the first area, in this case, if the current network device determines that the automatic handover condition is satisfied in the new area, it may be determined that the current network device has moved to the new area, and the current network device is triggered to switch the interface configuration information recorded locally, so that the current network device is quickly accessed to the new area. Therefore, the invention solves the problems of high maintenance cost, low efficiency and the like of the prior manual switching of the interface configuration information of the network equipment, realizes the purpose of automatically switching the interface configuration information of the network equipment to access a new area after the network equipment moves to the new network environment area, reduces the maintenance cost of the network equipment and improves the network access speed of the network equipment.
Drawings
Fig. 1 is a flowchart of a method for switching interface configuration information according to an embodiment of the present invention;
fig. 2a is a flowchart of a method for switching interface configuration information according to a second embodiment of the present invention;
fig. 2b is a schematic structural diagram of a vehicle-mounted network domain according to a second embodiment of the present invention;
fig. 2c is a schematic structural diagram of a vehicle-mounted network domain according to a second embodiment of the present invention;
fig. 2d is a schematic diagram illustrating a flow of interface configuration information switching according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an interface configuration information switching apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of an interface configuration information switching method according to an embodiment of the present invention, where the embodiment is applicable to a case of automatically switching interface configuration information of a network device, and the method may be executed by an interface configuration information switching apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a network device (typically, various interactive devices, such as a vehicle-mounted switch, and the like). Illustratively, the interface configuration information switching method is performed by software built in a vehicle-mounted switch. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, receiving an OSPF protocol message; wherein the OSPF protocol packet includes a first area ID.
The first area ID may be an area ID included in an OSPF protocol packet received by the current network device.
In the embodiment of the present invention, during the operation process of the network device, the network device receives an OSPF protocol packet from other devices. The OSPF protocol packet sent by each device will carry its own first area ID. The first area ID is also the area ID where the OSPF protocol packet sending device is located.
And S120, if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area.
The automatic switching condition that the current network device satisfies in the first area may be multiple, and specifically, the automatic switching condition that the current network device satisfies in the first area may be that the number of neighbors of the current network device in the first area satisfies the automatic switching condition, for example, the number of source IPs of OSPF protocol packets that are stored in the current network device and have the same first area ID is greater than or equal to a first preset threshold.
The second area ID may be an area ID in the interface configuration information locally recorded by the current network device. The interface configuration information may be OSPF configuration information of the interface. Alternatively, the interface configuration information may include, but is not limited to, interface IP (Internet Protocol, Protocol for interconnection between networks) and interface area. The interface area is also the network area where the interface is located. The first area is also the area where the network device that sends the OSPF protocol packet to the current network device is located. The auto-switching condition may be a condition for the current network device to automatically switch interface configuration information.
It will be appreciated that each network device will store the corresponding interface configuration information locally. After receiving the OSPF protocol packet sent by the other network device, the current network device may match the first area ID in the OSPF protocol packet with the second area ID of the local record. If the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, the interface configuration information of the local record can be automatically switched according to the interface configuration information of the first area without manually modifying the interface configuration information of the local record.
In the embodiment of the present invention, when the first area ID in the OSPF protocol message received by the current network device does not match the second area ID recorded locally, it may be determined that the current network device may move to a new area, that is, the first area, in this case, if the current network device determines that the automatic handover condition is satisfied in the new area, it may be determined that the current network device has moved to the new area, and the current network device is triggered to switch the interface configuration information recorded locally, so that the current network device is quickly accessed to the new area. Therefore, the invention solves the problems of high maintenance cost, low efficiency and the like of the prior manual switching of the interface configuration information of the network equipment, realizes the purpose of automatically switching the interface configuration information of the network equipment to access a new area after the network equipment moves to the new network environment area, reduces the maintenance cost of the network equipment and improves the network access speed of the network equipment.
Example two
Fig. 2a is a flowchart of an interface configuration information switching method according to a second embodiment of the present invention, which is embodied based on the foregoing embodiment, and in this embodiment, a specific implementation manner of switching locally recorded interface configuration information according to the interface configuration information of the first area is provided. Accordingly, as shown in fig. 2a, the method of the present embodiment may include:
s210, receiving an OSPF protocol message; wherein the OSPF protocol packet includes a first area ID.
S220, judging whether the first area ID is consistent with a second area ID recorded locally, if so, executing S230; otherwise, S240 is performed.
And S230, normally processing the OSPF protocol message.
In the embodiment of the present invention, if the current network device determines that the first area ID matches the second area ID recorded locally, it indicates that the network area where the current network device is located has not changed, and at this time, the current network device may normally process the received OSPF protocol packet.
S240, classifying the OSPF protocol message according to the first area ID, and storing the OSPF protocol message with the same first area ID according to the classification result.
In the embodiment of the present invention, before the current network device automatically switches the locally recorded interface configuration information according to the interface configuration information of the first area, the received OSPF protocol packet may be statistically stored first. Specifically, OSPF protocol packets with the same first area ID may be stored as one type.
S250, counting and storing the quantity of source IPs of the OSPF protocol messages with the same first area ID and the receiving time of the OSPF protocol messages.
Meanwhile, the current network device can also count and store the number of source IPs of OSPF protocol messages with the same first area ID, and record the receiving time of each OSPF protocol message.
And S260, judging whether the current network equipment meets the automatic switching condition in the first area, if so, executing S270, and otherwise, executing S290.
In an optional embodiment of the present invention, the automatic switching condition may include: the number of source IPs of the OSPF protocol messages with the same first area ID is greater than or equal to a first preset threshold.
The first preset threshold may be set according to an actual requirement, such as 3, 4, or 5, and the embodiment of the present invention does not limit a specific value of the first preset threshold. In general, the first preset threshold value avoids taking an integer of 1, so as to avoid frequent switching of interface configuration information by the current network device. When the current network equipment meets the automatic switching condition in the first area, the current network equipment enters a new network area, and the interface configuration information can be automatically switched.
Correspondingly, whether the current network device meets the automatic switching condition in the first area is judged, that is, whether the number of the source IPs of the OSPF protocol packets with the same first area ID stored by the current network device is greater than or equal to a first preset threshold value is judged. Further, whether the number of valid neighbors of the current network device in the first area is greater than or equal to a first preset threshold value is judged. The valid neighbor is also the network device that successfully sends the OSPF protocol packet to the current network device.
S270, the interface IP recorded locally is replaced by the IP of the network segment where the first area is located, and the interface area recorded locally is replaced by the interface area of the first area.
Specifically, when the current network device automatically switches the interface configuration information, the locally recorded interface IP may be replaced with the IP of the network segment where the first area is located, and the locally recorded interface area may be replaced with the interface area of the first area. It should be noted that the IP after the handover is to avoid overlapping with the IP of other network devices in the first area.
In an optional embodiment of the present invention, the interface configuration information switching method may further include: and if the time difference between the receiving time of the OSPF protocol messages with the same first area ID and the current time is greater than or equal to a second preset threshold value, and the number of the source IPs of the OSPF protocol messages with the same first area ID does not meet the automatic switching condition, deleting all information recorded corresponding to the first area ID.
The second preset threshold may be a time difference threshold set according to actual requirements, such as 40s, and may be specifically set according to the transceiving characteristics of the OSPF protocol packet, and the embodiment of the present invention does not limit a specific numerical value of the second preset threshold.
It is understood that some network devices in the first area may stop sending OSPF protocol packets to the current network device for various reasons, for example, the network device fails, or the network device has left the first area. Therefore, the current network device can delete the locally recorded redundant information sent by the network device. Specifically, the current network device may determine the receiving time of the OSPF protocol packets with the same first area ID, and if it is determined that the time difference between the receiving time of the OSPF protocol packets with the same first area ID and the current time is greater than or equal to a second preset threshold, and the number of source IPs of the OSPF protocol packets with the same first area ID does not satisfy the automatic switching condition, that is, the number of source IPs of the OSPF protocol packets with the same first area ID is less than the first preset threshold, may delete all information recorded corresponding to the first area ID.
And S280, deleting all stored information.
Correspondingly, after the current network device completes the automatic switching of the interface configuration information, the OSPF can establish a neighbor relation with other network devices in the current network area, and can delete all stored information, so as to re-receive the OSPF protocol message sent by other devices, and judge whether the locally recorded interface configuration information needs to be automatically switched according to the received OSPF protocol message.
S290, carrying out packet loss processing on the OSPF protocol message.
In the embodiment of the present invention, if the current network device determines that the current network device does not satisfy the automatic handover condition in the first area, the packet loss processing may be performed on the received OSPF protocol packet.
Fig. 2b is a schematic structural diagram of a vehicle-mounted network domain according to a second embodiment of the present invention. Fig. 2c is a schematic structural diagram of a vehicle-mounted network domain according to a second embodiment of the present invention. In one specific example, as shown in fig. 2b, the networking environment of the simulated fleet includes a total of 3 general areas, area 0, area 1, and area 2. Wherein, the team command car belongs to zone 0, cars 1, 2 and 3 belong to zone 1, and cars 4, 5 and 6 belong to zone 2. Wireless communication connection is adopted in each area. The interfaces connected with each other in each area are in the same network segment, and the vehicles in each area can establish a neighbor relation between each two vehicles. Wherein, the area 1 and the area 2 are respectively connected with different command cars. Taking the car 3 in the area 1 as an example, the interface IP of the car 3 to the outside is 10.11.3.3/24, and the interface area is the area 1. As shown in fig. 2c, when the cart 3 leaves the wireless coverage of area 1 and enters the wireless coverage of area 2, the cart 3 cannot access the wireless network of area 2 without manually modifying the interface configuration information for the cart 3. When the area ID carried in the OSPF protocol message received by the vehicle 3 is found to be inconsistent with the area ID in the interface configuration information recorded locally by the original OSPF protocol, the received OSPF protocol message is directly treated as a bad packet. If the external interface IP of the vehicle in the area 2 is 10.12.3.0 network segments, the interface area is the area 2. When the vehicle 3 enters the coverage area of the wireless network of the area 2 after starting the function of automatically switching the interface configuration information, the vehicle 3 receives HELLO messages respectively sent from the vehicle 4, the vehicle 5 and the vehicle 6 in 3 areas 2. The vehicle 3 determines that the area 2 has 3 neighbors according to the received HELLO message, and meets the automatic switching condition (the number of source IPs of the OSPF protocol message with the same first area ID is greater than or equal to 3), the external interface IP of the vehicle 3 is automatically switched to 10.12.3.3/24, and the interface area is switched to the area 2. At this time, the vehicle 3 may establish a neighbor relationship with other vehicles in the area 2, and simultaneously automatically access the wireless network of the area 2. It should be noted that the vehicles in each area may start the automatic domain switching function to automatically switch the interface configuration information.
Fig. 2d is a schematic diagram of a flow of interface configuration information switching according to a second embodiment of the present invention. Correspondingly, as shown in fig. 2d, the interface configuration information switching process of the vehicle 3 is specifically as follows: firstly, classifying and storing the received OSPF protocol message, and then checking whether a first area ID in the OSPF protocol message is equal to a second area ID in interface configuration information of a local record. If the vehicle is determined to be equal, the message is processed normally, and if the vehicle is not equal, whether the automatic domain switching function is started or not is checked. If the vehicle is confirmed to start the automatic domain switching function, checking whether a neighbor exists in the first area; otherwise, the packet loss processing is carried out on the received OSPF protocol message. If the neighbor is determined to exist, the vehicle 3 is shown to be accessed into the first area (namely the area 2), and the interface configuration information does not need to be automatically switched at the moment; otherwise, checking whether the receiving time of the OSPF protocol message is more than 40 s. If the receiving time of the OSPF protocol message is determined to be more than 40s, deleting the storage information corresponding to the first area ID; otherwise, continuously checking whether the source IP in the OSPF protocol message is recorded in the local record. If the source IP in the OSPF protocol message is not recorded locally, recording can be performed, otherwise, packet loss processing can be performed on the OSPF protocol message. Then, the vehicle 3 may check whether the recorded neighbor information reaches 3, that is, whether the number of the interfaces IP reaches 3. If the number of the recorded neighbor information is determined to reach 3, the vehicle 3 is considered to meet the automatic switching condition in the first area, the interface IP address and the interface area can be changed according to the interface configuration information of the first area to realize automatic switching of the interface configuration information, and all stored information is cleared to accept the OSPF protocol message of the current area again; otherwise, the OSPF protocol message can be subjected to packet loss processing.
In the embodiment of the present invention, when the first area ID in the OSPF protocol message received by the current network device does not match the second area ID recorded locally, it may be determined that the current network device may move to a new area, that is, the first area, in this case, if the current network device determines that the automatic handover condition is satisfied in the new area, it may be determined that the current network device has moved to the new area, and the current network device is triggered to switch the interface configuration information recorded locally, so that the current network device is quickly accessed to the new area. Therefore, the invention solves the problems of high maintenance cost, low efficiency and the like of the prior manual switching of the interface configuration information of the network equipment, realizes the purpose of automatically switching the interface configuration information of the network equipment to access a new area after the network equipment moves to the new network environment area, reduces the maintenance cost of the network equipment and improves the network access speed of the network equipment. It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
EXAMPLE III
Fig. 3 is a schematic diagram of an interface configuration information switching apparatus according to a third embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a message receiving module 310 and an information switching module 320, wherein:
a message receiving module 310, configured to receive an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID;
an information switching module 320, configured to switch the interface configuration information of the local record according to the interface configuration information of the first area if it is determined that the first area ID does not match the second area ID of the local record and the device satisfies the automatic switching condition in the first area.
In the embodiment of the present invention, when the first area ID in the OSPF protocol message received by the current network device does not match the second area ID recorded locally, it may be determined that the current network device may move to a new area, that is, the first area, in this case, if the current network device determines that the automatic handover condition is satisfied in the new area, it may be determined that the current network device has moved to the new area, and the current network device is triggered to switch the interface configuration information recorded locally, so that the current network device is quickly accessed to the new area. Therefore, the invention solves the problems of high maintenance cost, low efficiency and the like of the prior manual switching of the interface configuration information of the network equipment, realizes the purpose of automatically switching the interface configuration information of the network equipment to access a new area after the network equipment moves to the new network environment area, reduces the maintenance cost of the network equipment and improves the network access speed of the network equipment. Optionally, the interface configuration information includes an interface IP and an interface area; the information switching module 320 is specifically configured to replace an interface IP recorded locally with an IP of a network segment where the first area is located; and replacing the interface area of the local record with the interface area of the first area.
Optionally, the apparatus further comprises: a classification storage module, configured to classify the OSPF protocol packet according to the first area ID; and storing the OSPF protocol messages with the same first area ID according to the classification result.
Optionally, the apparatus further comprises: and the statistic storage module is used for counting and storing the number of source IPs of the OSPF protocol messages with the same first area ID and the receiving time of the OSPF protocol messages.
Optionally, the automatic switching condition includes: the number of source IPs of the OSPF protocol messages with the same first area ID is greater than or equal to a first preset threshold.
Optionally, the apparatus further comprises: and a first information deleting module, configured to delete all information recorded corresponding to the first area ID if a time difference between the receiving time of the OSPF protocol packets with the same first area ID and the current time is greater than or equal to a second preset threshold, and the number of source IPs of the OSPF protocol packets with the same first area ID does not satisfy an automatic switching condition.
Optionally, the apparatus further comprises: and the second information deleting module is used for deleting all the stored information.
The interface configuration information switching device can execute the interface configuration information switching method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the interface configuration information switching method provided in any embodiment of the present invention, reference may be made to the technical details not described in detail in this embodiment.
Since the interface configuration information switching apparatus described above is an apparatus capable of executing the interface configuration information switching method in the embodiment of the present invention, based on the interface configuration information switching method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the interface configuration information switching apparatus of the embodiment and various variations thereof, and therefore, how the interface configuration information switching apparatus implements the interface configuration information switching method in the embodiment of the present invention is not described in detail here. As long as a person skilled in the art implements the device used in the method for switching interface configuration information in the embodiment of the present invention, the device is within the scope of the present application.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. FIG. 4 shows a block diagram of a device 412 suitable for implementing an embodiment of the invention. The device 412 shown in fig. 4 is only an example and should not impose any limitation on the functionality or scope of use of embodiments of the present invention. The device 412 is typically a network device, such as a switch, that assumes communication functions.
As shown in FIG. 4, device 412 is in the form of a general purpose computing device. The components of device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. Program modules 426 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 422. Further, the device 412 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown, network adapter 420 communicates with the other modules of device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the device 412, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 416 executes various functional applications and data processing, such as implementing the interface configuration information method provided by the above-described embodiments of the present invention, by executing programs stored in the storage device 428.
That is, the processing unit implements, when executing the program: receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID; and if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area.
EXAMPLE five
An embodiment of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute the interface configuration information method according to any one of the above embodiments of the present invention when executed by a computer processor: receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID; and if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for switching interface configuration information is characterized by comprising the following steps:
receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID;
and if the first area ID is determined not to be consistent with the second area ID of the local record and the current network equipment meets the automatic switching condition in the first area, switching the interface configuration information of the local record according to the interface configuration information of the first area.
2. The method of claim 1, wherein the interface configuration information includes an interface IP and an interface area;
the switching the locally recorded interface configuration information according to the interface configuration information of the first area includes:
replacing the interface IP of the local record with the IP of the network segment in which the first area is located;
and replacing the interface area of the local record with the interface area of the first area.
3. The method according to claim 1, before switching the interface configuration information recorded locally according to the interface configuration information of the first area, comprising:
classifying the OSPF protocol message according to the first area ID;
and storing the OSPF protocol messages with the same first area ID according to the classification result.
4. The method of claim 3, further comprising:
and counting and storing the quantity of source IPs of the OSPF protocol messages with the same first area ID and the receiving time of the OSPF protocol messages.
5. The method of claim 4, wherein the automatic switching condition comprises:
the number of source IPs of the OSPF protocol messages with the same first area ID is greater than or equal to a first preset threshold.
6. The method of claim 5, further comprising:
and if the time difference between the receiving time of the OSPF protocol messages with the same first area ID and the current time is greater than or equal to a second preset threshold value, and the number of the source IPs of the OSPF protocol messages with the same first area ID does not meet the automatic switching condition, deleting all information recorded corresponding to the first area ID.
7. The method according to claim 4, wherein after the switching the locally recorded interface configuration information according to the interface configuration information of the first area, the method comprises:
all stored information is deleted.
8. An interface configuration information switching apparatus, comprising:
the message receiving module is used for receiving an OSPF protocol message; wherein, the OSPF protocol message includes a first area ID;
and the information switching module is used for switching the interface configuration information of the local record according to the interface configuration information of the first area if the first area ID is determined not to be consistent with the second area ID of the local record and the device meets the automatic switching condition in the first area.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the interface configuration information switching method of any one of claims 1-7.
10. A computer storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the interface configuration information switching method according to any one of claims 1 to 7.
CN201910874953.3A 2019-09-17 2019-09-17 Interface configuration information switching method, device, equipment and storage medium Active CN110601985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910874953.3A CN110601985B (en) 2019-09-17 2019-09-17 Interface configuration information switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910874953.3A CN110601985B (en) 2019-09-17 2019-09-17 Interface configuration information switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110601985A true CN110601985A (en) 2019-12-20
CN110601985B CN110601985B (en) 2022-03-29

Family

ID=68860159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910874953.3A Active CN110601985B (en) 2019-09-17 2019-09-17 Interface configuration information switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110601985B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905027A (en) * 2021-12-10 2022-01-07 南昌航天广信科技有限责任公司 Network signal priority transmission method, system, computer and readable storage medium
CN114363239A (en) * 2021-12-30 2022-04-15 北京东土军悦科技有限公司 Method, device, equipment and storage medium for updating routing information

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610898A (en) * 2001-08-22 2005-04-27 诺基亚公司 Method and system for implementing OSPF redundancy
CN102281194A (en) * 2011-08-01 2011-12-14 华为技术有限公司 Message transmission method and network equipment
EP2575306A1 (en) * 2011-09-29 2013-04-03 Telefonaktiebolaget L M Ericsson (PUBL) OSPF nonstop routing synchronization nack
CN103095571A (en) * 2013-01-17 2013-05-08 成都西加云杉科技有限公司 Method and system achieving network redundancy and data flow seamless switching
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN103428306A (en) * 2013-08-02 2013-12-04 北京华为数字技术有限公司 Network element equipment online method and system and network element equipment
CN104301219A (en) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 Method and system for network topology
CN107181832A (en) * 2017-05-26 2017-09-19 杭州迪普科技股份有限公司 A kind of Router ID collision detection methods and device
CN107517163A (en) * 2017-09-22 2017-12-26 杭州迪普科技股份有限公司 A kind of method and device of switching OSPF Router Distinguishers
CN107707470A (en) * 2016-08-09 2018-02-16 中兴通讯股份有限公司 Ospf area number collocation method and equipment
CN108737273A (en) * 2018-05-10 2018-11-02 新华三技术有限公司 A kind of message processing method and device
CN109795492A (en) * 2019-01-18 2019-05-24 爱驰汽车有限公司 Autonomous driving vehicle drives switching method, system, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610898A (en) * 2001-08-22 2005-04-27 诺基亚公司 Method and system for implementing OSPF redundancy
CN102281194A (en) * 2011-08-01 2011-12-14 华为技术有限公司 Message transmission method and network equipment
EP2575306A1 (en) * 2011-09-29 2013-04-03 Telefonaktiebolaget L M Ericsson (PUBL) OSPF nonstop routing synchronization nack
CN103178983A (en) * 2011-12-26 2013-06-26 中兴通讯股份有限公司 Method and device for configuring shortest path first protocol interface area identifications
CN103095571A (en) * 2013-01-17 2013-05-08 成都西加云杉科技有限公司 Method and system achieving network redundancy and data flow seamless switching
CN104301219A (en) * 2013-07-15 2015-01-21 中兴通讯股份有限公司 Method and system for network topology
CN103428306A (en) * 2013-08-02 2013-12-04 北京华为数字技术有限公司 Network element equipment online method and system and network element equipment
CN107707470A (en) * 2016-08-09 2018-02-16 中兴通讯股份有限公司 Ospf area number collocation method and equipment
CN107181832A (en) * 2017-05-26 2017-09-19 杭州迪普科技股份有限公司 A kind of Router ID collision detection methods and device
CN107517163A (en) * 2017-09-22 2017-12-26 杭州迪普科技股份有限公司 A kind of method and device of switching OSPF Router Distinguishers
CN108737273A (en) * 2018-05-10 2018-11-02 新华三技术有限公司 A kind of message processing method and device
CN109795492A (en) * 2019-01-18 2019-05-24 爱驰汽车有限公司 Autonomous driving vehicle drives switching method, system, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905027A (en) * 2021-12-10 2022-01-07 南昌航天广信科技有限责任公司 Network signal priority transmission method, system, computer and readable storage medium
CN114363239A (en) * 2021-12-30 2022-04-15 北京东土军悦科技有限公司 Method, device, equipment and storage medium for updating routing information
CN114363239B (en) * 2021-12-30 2024-02-06 北京东土军悦科技有限公司 Routing information updating method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110601985B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN110601985B (en) Interface configuration information switching method, device, equipment and storage medium
JP5804061B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN110177010B (en) Link switching method and device
US9554320B2 (en) Mobile communication system, mobile communication method, mobile station, program, and recording medium
CN104954271A (en) Data packet processing method and data packet processing device in SDN network
CN108337699B (en) Internet surfing method and device, mobile terminal and storage medium
CN102143138A (en) Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine
CN107493180B (en) Upgrading method and device of virtual switch
JP7085061B2 (en) Relays, programs, communication systems, and management methods
CN114640726B (en) Message processing method, device, system and storage medium
CN110061855A (en) A kind of method for processing business, system and device
CN109683827A (en) A kind of date storage method, device, automobile data recorder and storage medium
US20210092591A1 (en) Monitoring in a 5G Non-Standalone Architecture to determine bearer type
CN112333099A (en) Routing method, device and storage medium of local multipath message
CN108600018A (en) A kind of discovery method, apparatus, train apparatus and the storage medium of train topology
WO2014194744A1 (en) A method, client, server, and system for processing data
US10949095B2 (en) Method, network adapters and computer program product using network adapter memory to service data requests
US20180109656A1 (en) Server and method for managing position change
CN104917800A (en) Method and device for establishing redundancy connection for virtual machine
CN107317755B (en) Hardware forwarding table entry error correction method and device and computer readable storage medium
CN116032837A (en) Flow table unloading method and device
CN113791792B (en) Method, device and storage medium for acquiring application call information
US11436172B2 (en) Data frame interface network device
CN103457864A (en) Method, device and network equipment for processing next-hop of routing
CN114302463A (en) Network switching method, system, device and storage medium

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