CN110995600B - Data transmission method and device, electronic equipment and readable storage medium - Google Patents

Data transmission method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110995600B
CN110995600B CN201911261849.3A CN201911261849A CN110995600B CN 110995600 B CN110995600 B CN 110995600B CN 201911261849 A CN201911261849 A CN 201911261849A CN 110995600 B CN110995600 B CN 110995600B
Authority
CN
China
Prior art keywords
routing
dvpn
protocol
message
virtual interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911261849.3A
Other languages
Chinese (zh)
Other versions
CN110995600A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911261849.3A priority Critical patent/CN110995600B/en
Publication of CN110995600A publication Critical patent/CN110995600A/en
Application granted granted Critical
Publication of CN110995600B publication Critical patent/CN110995600B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing

Abstract

The application provides a data transmission method, a data transmission device, an electronic device and a readable storage medium, wherein the data transmission method comprises the following steps: identifying a routing configuration element with an identifier by using a preset routing protocol, and acquiring a routing message needing to be correspondingly sent according to the routing configuration element with the identifier; and sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format. Compared with the prior art, the embodiment does not need to establish the neighbor relation between the network node equipment and the central end equipment, and can directly utilize the DVPN module of the routing equipment to send the routing message in the DVPN message format, so that the establishment of the routing relation between the network node equipment and the central end equipment and between the network node equipment and the central end equipment can be realized, the private network intercommunication is realized, and the operation pressure of the central end equipment is effectively reduced.

Description

Data transmission method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of data transmission, and in particular, to a data transmission method, an apparatus, an electronic device, and a readable storage medium.
Background
In a Dynamic Virtual Private Network (DVPN), each central device establishes a neighbor relationship with a plurality of mesh point devices. Each network node device can send the own public network address and private network address to the central terminal device, the central terminal device broadcasts in the local area network range, and the central terminal device maintains the corresponding relation between the private network addresses and the public network addresses of all network node devices and the registration state of the network node devices, so that the private network intercommunication among the network node devices is realized.
However, if the number of the network devices is too large, a large pressure is brought to the central device to maintain the private network intercommunication between the network devices.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data transmission method, an apparatus, an electronic device, and a readable storage medium, so as to solve the problem in the prior art that private network interworking between central-end device maintenance node devices is under high pressure.
In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to any routing device in a dynamic virtual private network DVPN, where the method includes: identifying a routing configuration element with an identifier by using a preset routing protocol, and acquiring a routing message needing to be correspondingly sent according to the routing configuration element with the identifier; and sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format.
In the foregoing embodiment, any one of the routing devices identifies a routing configuration element with an identifier according to a corresponding routing protocol, further obtains a routing message, and sends the routing message to a target routing device via a DVPN module of the routing device, thereby establishing private network interworking between the routing device and the target routing device. The target routing device may be a central device or a mesh point device. Compared with the prior art, the embodiment does not need to establish the neighbor relation between the mesh point equipment and the central end equipment, and can directly utilize the DVPN module of the routing equipment to send the routing message so as to realize the establishment of the routing relation between the mesh point equipment and the central end equipment and between the mesh point equipment and the central end equipment, realize private network intercommunication and effectively reduce the operation pressure of the central end equipment.
In one possible design, before the identifying the identified routing configuration element using the predetermined routing protocol, the method further includes: and identifying the routing configuration elements of the equipment according to the preset routing protocol.
In one possible design, the predetermined routing protocol is an open shortest path first, OSPF, protocol; the identifying the routing configuration element of the device according to the preset routing protocol includes: identifying a DVPN virtual interface of the equipment according to an OSPF protocol; the identifying a route configuration element with an identifier by using a preset route protocol, and acquiring a route message to be correspondingly sent according to the route configuration element with the identifier, includes: identifying said DVPN virtual interface with said identification using OSPF protocol; obtaining a Link State Advertisement (LSA) of an OSPF protocol which needs to be sent through the DVPN virtual interface; the sending the routing message through the DVPN virtual interface of the device in the DVPN message format includes: and transmitting the LSA of the OSPF protocol which needs to be transmitted through the DVPN virtual interface.
In the foregoing embodiment, the preset routing protocol may be an OSPF protocol, the routing configuration element may be a DVPN virtual interface of the routing device configured with a private network address, the routing message may be a generated link state advertisement LSA, the routing device may transmit the link state advertisement LSA to its own DVPN module, the DVPN module broadcasts the link state advertisement LSA to other routing devices, and all other routing devices receiving the broadcast may process the link state advertisement LSA, thereby establishing a routing relationship between the other routing devices and the routing device.
In one possible design, the method further includes: receiving a second preset type LSA sent by routing equipment except the DVPN module by utilizing the DVPN module; and processing the second preset type LSA by utilizing the OSPF protocol process of the routing device, and forming a routing relation between the routing device which sends the second preset type LSA and the routing device.
In the foregoing embodiment, in addition to sending its own routing message to the target routing device, the routing device may also receive a second preset type LSA sent by another routing device, and then process the second preset type LSA, thereby forming a routing relationship between the routing device that sends the second preset type LSA and the routing device itself.
In one possible design, after broadcasting the link state advertisement lsa to all but self routers in a DVPN using the DVPN module corresponding to the DVPN virtual interface with the identifier, the method further includes: generating a third type LSA for the interface except the DVPN virtual interface by using an OSPF inter-domain route notification method; transmitting the third type LSA to a DVPN module of the LSA; and broadcasting the third type LSA to all routing devices except the DVPN by utilizing the DVPN module of the DVPN.
In the foregoing embodiment, in the OSPF protocol, for an interface of itself other than the DVPN virtual interface, a third type LSA, that is, a Network summary LSA, may be generated by using an OSPF inter-domain route advertisement method; then, the DVPN module of the router is used for broadcasting the third type LSA to other routers, thereby realizing the private network intercommunication.
In one possible design, the predetermined routing protocol is a border gateway protocol BGP; the identifying the routing configuration element of the device according to the preset routing protocol includes: identifying BGP neighbors which are configured by the equipment and are to be established through DVPN according to a BGP protocol; the identifying a route configuration element with an identifier by using a preset route protocol, and acquiring a route message to be correspondingly sent according to the route configuration element with the identifier, includes: when a routing relation is to be established with the BGP neighbor with the identifier, acquiring a routing message which needs to be sent to the BGP neighbor; the sending the routing message through the DVPN virtual interface of the device in the DVPN message format includes: and sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format.
The preset routing protocol may be a BGP protocol, the routing configuration element may be a BGP neighbor to be established through the DVPN, the routing message is a routing packet, the routing packet is generated by the BGP protocol, and the routing packet includes next hop device information and a private network address mask. The routing device may not establish a neighbor relationship with a target routing device configured with the neighbor relationship, but directly send a routing packet to the target routing device, so that the target routing device receives the routing packet through the DVPN module and processes the routing packet according to a BGP protocol, thereby establishing the routing relationship between the routing device and the target routing device.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to any routing device in a dynamic virtual private network DVPN, where the apparatus includes: the routing protocol module is used for identifying a routing configuration element with an identifier by using a preset routing protocol and acquiring a routing message needing to be correspondingly sent according to the routing configuration element with the identifier; and transmitting the routing message to a DVPN module of the device; and the DVPN module is used for sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format.
In a possible design, the routing protocol module is further configured to identify a routing configuration element of the device according to the preset routing protocol.
In one possible design, the routing protocol module is specifically configured to: identifying a DVPN virtual interface of the equipment according to an OSPF protocol; identifying said DVPN virtual interface with said identification using OSPF protocol; obtaining a Link State Advertisement (LSA) of an OSPF protocol which needs to be sent through the DVPN virtual interface; the DVPN module is specifically configured to send an LSA of the OSPF protocol, which needs to be sent through the DVPN virtual interface, through the DVPN virtual interface.
In one possible design, the routing protocol module is specifically configured to: identifying BGP neighbors which are configured by the equipment and are to be established through DVPN according to a BGP protocol; when a routing relation is to be established with the BGP neighbor with the identifier, acquiring a routing message which needs to be sent to the BGP neighbor; the DVPN module is specifically configured to send the routing packet through a DVPN virtual interface of the device in a DVPN packet format.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In a fourth aspect, the present application provides a readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first aspect or any of the optional implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an embodiment of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another specific implementation of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a part of steps of a data transmission method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a diagram of a data transmission method provided in an embodiment of the present application, where the method is applied to a DVPN, where the DVPN may include a plurality of central end devices, each of the plurality of central end devices may be connected to a plurality of mesh point devices, and each of the central end devices and each of the mesh point devices may be provided with a DVPN module. Any mesh point device in the plurality of mesh point devices can execute the data transmission method provided by the embodiment of the application. The method includes the following steps S120 to S130:
step S120, identifying the route configuration element with the identification by using a preset route protocol, and acquiring the route message which needs to be correspondingly sent according to the route configuration element with the identification.
The preset routing protocol is a routing protocol operated by a routing device executing the data transmission method, and may be an OSPF protocol or a BGP protocol.
The routing configuration element is an element which needs to be configured by the routing device in order to generate a routing relationship with other routing devices, and corresponds to a specific type of a preset routing protocol. For example, if the preset routing protocol is an OSPF protocol, the corresponding routing configuration element is a DVPN virtual interface of the routing device, which is configured with a private network address; if the preset routing protocol is a BGP protocol, the corresponding routing configuration element is a configured neighbor relationship between the routing device and at least one routing device in the DVPN network.
For the DVPN virtual interface with the identification, no routing neighbor is established, so that data is not transmitted in a routing neighbor relation manner; but transmits data through the DVPN module corresponding to the routing device where the identified DVPN virtual interface is located.
The routing message contains information required for establishing a routing relation, and corresponds to the specific type of the preset routing protocol. For example, for the OSPF protocol, the corresponding routing message is an LSA generated according to an interface overlay condition by using the OSPF protocol; for the BGP protocol, the corresponding routing message is a routing packet, and the routing packet includes next hop device information and a private network address mask. The routing device passes the routing message to the DVPN module of the routing device itself.
Step S130, sending the routing message by DVPN message format through DVPN virtual interface of the device. Any network point device in the DVPN can identify the route configuration element with the identification according to the corresponding routing protocol, further obtain the route message, and send the route message to the target routing device through the DVPN module of the routing device, thereby establishing the private network intercommunication between the routing device and the target routing device. The target routing device may be a central device or a mesh point device. Compared with the prior art, the embodiment does not need to establish the neighbor relation between the mesh point equipment and the central end equipment, and can directly utilize the DVPN module of the routing equipment to send the routing message so as to realize the establishment of the routing relation between the mesh point equipment and the central end equipment and between the mesh point equipment and the central end equipment, realize private network intercommunication and effectively reduce the operation pressure of the central end equipment.
Optionally, in a specific embodiment, before step S120, the method may further include:
step S110, identifying the routing configuration element of the device according to a preset routing protocol.
The time for identifying the routing configuration element may be when the routing device initializes.
Optionally, referring to fig. 2, fig. 2 shows a specific implementation of the data transmission method provided in the embodiment of the present application, and specifically includes the following steps S211 to S241:
step S211, identify the DVPN virtual interface of the device according to the OSPF protocol.
Step S221, using OSPF protocol to identify the DVPN virtual interface with the identifier.
Step S222, acquiring a link state advertisement LSA of the OSPF protocol that needs to be sent through the DVPN virtual interface.
After the routing device identifies the DVPN virtual interface with the identifier by using the OSPF protocol, the routing device does not send a HELLO message at the DVPN virtual interface to establish a neighbor relation with the central point device, but directly takes the DVPN virtual interface as AREA 0 of the OSPF, and generates a link state advertisement LSA according to the interface coverage condition by using the OSPF protocol. The link state advertisement LSA may include a first type LSA and a second type LSA, where the first type LSA is a Router LSA and the second type LSA is a Network LSA.
The type of the DVPN virtual interface may be a point-to-multipoint type, or a broadcast type. The opposite end interface information required for generating the first type LSA and the second type LSA can be obtained from the DVPN dynamic mapping table. If the information in the DVPN dynamic mapping table changes, the DVPN module can acquire the change condition of the DVPN dynamic mapping table and transmit the change condition to the OSPF process, so that the OSPF process can make a corresponding change according to the change.
And transmitting the routing message to the DVPN module of the routing message.
The routing message is the link state advertisement LSA, and the routing device transmits the link state advertisement LSA to the DVPN module of the routing device after generating the link state advertisement LSA.
Step S231, sending the LSA of the OSPF protocol, which needs to be sent through the DVPN virtual interface, through the DVPN virtual interface.
All the routing devices except the self routing device in the DVPN can receive the link state advertisement LSA, and all the routing devices except the self routing device in the DVPN comprise all other central end devices except the routing device in the DVPN and all mesh point devices.
After each of the above-mentioned all the routing devices receives the broadcast by using its own DVPN module, it extracts the link-state advertisement LSA therein, and transmits the link-state advertisement LSA to the corresponding process running the OSPF protocol of each routing device, thereby forming the routing relationship.
After all the routing devices complete the processing procedure, logical AREA 0 AREAs can be formed among all the DVPN virtual interfaces of the DVPN, and routing relationships among all the DVPN virtual interfaces of the DVPN can be formed.
In a specific embodiment, after step S241, the method may further include: generating a third type LSA for the interface except the DVPN virtual interface by using an OSPF inter-domain route notification method; transmitting the third type LSA to a DVPN module of the LSA; and broadcasting the third type LSA to all routing devices except the DVPN by utilizing the DVPN module of the DVPN.
The third type of LSA is Network summary LSA. For the interfaces of the routing device except for the DVPN virtual interface, a third-type LSA may be generated by using an OSPF inter-domain route advertisement method, and the third-type LSA is transferred to the DVPN module of the routing device itself, so that the routing device broadcasts the third-type LSA to all but its own DVPN modules in the DVPN.
After each of the above-mentioned all the routing devices receives the broadcast by using its own DVPN module, it extracts the third type LSA, and transmits the third type LSA to the corresponding process running the OSPF protocol of each routing device, thereby forming the routing relationship.
After all the routing devices complete the above processing procedures, routing relationships between all the interfaces of the DVPN can be formed, and all the private network route announcements are completed.
In a specific embodiment, referring to fig. 4, the data transmission method provided in the present application may further include the following steps S410 to S420:
step S410, receiving a second preset type LSA sent by a router device except the DVPN itself by using the DVPN module of the router device.
The second preset type LSA is an LSA sent by other routing devices in the DVPN, and the LSA may be a first type LSA, a second type LSA, or a third type LSA.
Step S420, using the OSPF protocol process to process the second preset type LSA, so as to form a routing relationship between the routing device sending the second preset type LSA and the routing device.
The DVPN module of the routing device may transfer the second preset type LSA to a process running the OSPF protocol, and process the second preset type LSA by using the process running the OSPF protocol, so as to obtain a routing relationship between the routing device that sends the second preset type LSA and the routing device.
In a specific embodiment, the central device may still be a Designated Router (DR) or a Backup Designated Router (BDR).
Optionally, referring to fig. 3, fig. 3 shows another specific implementation of the data transmission method provided in the embodiment of the present application, which specifically includes the following steps S311 to S341:
step S311, identify a BGP neighbor to be established through the DVPN configured by the device according to the BGP protocol.
Step S321, when a routing relation is to be established with the BGP neighbor with the identifier, a routing message to be sent to the BGP neighbor is acquired.
And step S331, sending the routing message through a DVPN virtual interface of the device by adopting a DVPN message format.
In the BGP protocol, usually, a neighbor relationship between each two routing devices may be configured in advance, so as to establish a connection between the routing devices according to the neighbor relationship. The pre-configured neighbor relation may be manually configured by a worker, and the neighbor relation may be recorded in a DVPN mapping table of the corresponding routing device. For example, if the routing device a and the routing device B are configured with a neighbor relationship, the DVPN mapping table of the routing device a records a configured BGP neighbor address, that is, an address of the routing device B, and the DVPN mapping table of the routing device B records a configured BGP neighbor address, that is, an address of the routing device a.
However, in this embodiment of the present application, the configured neighbor relationship of the routing device is identified first, and then when the neighbor relationship is to be established really according to the neighbor relationship, the neighbor relationship is not established really, but a routing packet is generated through a process of running a BGP protocol of the routing device, and then the routing packet is transmitted to the DVPN module of the routing device, so that the routing device sends the routing packet to an opposite-end routing device that originally intends to establish the neighbor relationship by using the DVPN module of the routing device. The opposite-end routing device is a BGP neighbor to be established through the DVPN, i.e., a target routing device.
The target routing device receives the routing message by using the DVPN module of the target routing device, and transmits the routing message to the process running the BGP protocol so as to process the process running the BGP protocol, thereby generating a routing relation.
After all the routing devices complete the above processing procedures, routing relationships between all the interfaces of the DVPN can be formed, and all the private network route announcements are completed.
In a specific embodiment, the center device may still be used as a Route Reflector (RR), and the mesh point device may still be used as an RR client.
Referring to fig. 5, fig. 5 illustrates a data transmission apparatus provided in an embodiment of the present application, where the apparatus 500 includes:
a routing protocol module 510, configured to identify a routing configuration element with an identifier by using a preset routing protocol, and obtain a routing message that needs to be correspondingly sent according to the routing configuration element with the identifier; and transmitting the routing message to a DVPN module of the equipment.
A DVPN module 520, configured to send the routing message through a DVPN virtual interface of the device in a DVPN message format.
The routing protocol module 510 is further configured to identify a routing configuration element of the device according to the preset routing protocol.
The routing protocol module 510 is specifically configured to: identifying a DVPN virtual interface of the equipment according to an OSPF protocol; identifying said DVPN virtual interface with said identification using OSPF protocol; and acquiring a Link State Advertisement (LSA) of the OSPF protocol which needs to be sent through the DVPN virtual interface.
The DVPN module 520 is specifically configured to send an LSA of the OSPF protocol, which needs to be sent through the DVPN virtual interface, through the DVPN virtual interface.
The routing protocol module 510 is specifically configured to: identifying BGP neighbors which are configured by the equipment and are to be established through DVPN according to a BGP protocol; when a routing relation is to be established with the BGP neighbor with the identifier, a routing message which needs to be sent to the BGP neighbor is obtained.
The DVPN module 520 is specifically configured to send the routing packet through a DVPN virtual interface of the device in a DVPN packet format.
The data transmission method and the data transmission device provided by the embodiment of the application save the establishment and maintenance of the dynamic routing neighbor relation of the central end equipment in the DVPN environment, solve the networking performance bottleneck, only one message type is added in the DVPN module and is defined as a routing notification message (the message content is the message content which is transmitted to the DVPN module by a routing protocol and needs to be notified), the message corresponding to the message type is not required to be frequently sent, and the increased pressure can be almost ignored. The method can lead the mutual information of the DVPM module and the OSPF/BGP module to share and jointly complete the route announcement, keeps the dynamic route attribute, the filtering control and other methods of the route, simultaneously leads the DVPN to complete the interaction of the route neighbor and the route information, saves the maintenance of the dynamic route neighbor, has flexible deployment and reduces the equipment pressure.
In the 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 embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, 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.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data transmission method, applied to any routing device in a dynamic virtual private network DVPN, the method comprising:
identifying a routing configuration element with an identifier by using a preset routing protocol, and acquiring a routing message needing to be correspondingly sent according to the routing configuration element with the identifier; sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format;
the routing configuration element is an element configured by the routing device for generating a routing relationship with other routing devices, and corresponds to the type of the preset routing protocol, the routing message includes a message of information required for establishing the routing relationship, and the routing message corresponds to the type of the preset routing protocol.
2. The method of claim 1, wherein prior to said identifying a routing configuration element with an identification using a predetermined routing protocol, the method further comprises:
and identifying the routing configuration elements of the equipment according to the preset routing protocol.
3. The method of claim 2 wherein the predetermined routing protocol is an open shortest path first, OSPF, protocol;
the identifying the routing configuration element of the device according to the preset routing protocol includes:
identifying a DVPN virtual interface of the equipment according to an OSPF protocol;
the identifying a route configuration element with an identifier by using a preset route protocol, and acquiring a route message to be correspondingly sent according to the route configuration element with the identifier, includes:
identifying said DVPN virtual interface with said identification using OSPF protocol;
obtaining a Link State Advertisement (LSA) of an OSPF protocol which needs to be sent through the DVPN virtual interface;
the sending the routing message through the DVPN virtual interface of the device in the DVPN message format includes:
and transmitting the LSA of the OSPF protocol which needs to be transmitted through the DVPN virtual interface.
4. The method of claim 2, wherein the predetermined routing protocol is Border Gateway Protocol (BGP);
the identifying the routing configuration element of the device according to the preset routing protocol includes:
identifying BGP neighbors which are configured by the equipment and are to be established through DVPN according to a BGP protocol;
the identifying a route configuration element with an identifier by using a preset route protocol, and acquiring a route message to be correspondingly sent according to the route configuration element with the identifier, includes:
when a routing relation is to be established with the BGP neighbor with the identifier, acquiring a routing message which needs to be sent to the BGP neighbor;
the sending the routing message through the DVPN virtual interface of the device in the DVPN message format includes:
and sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format.
5. A data transmission apparatus, applied to any routing device in a dynamic virtual private network DVPN, the apparatus comprising:
the routing protocol module is used for identifying a routing configuration element with an identifier by using a preset routing protocol and acquiring a routing message needing to be correspondingly sent according to the routing configuration element with the identifier; and transmitting the routing message to a DVPN module of the device;
the DVPN module is used for sending the routing message through a DVPN virtual interface of the equipment by adopting a DVPN message format;
the routing configuration element is an element configured by the routing device for generating a routing relationship with other routing devices, and corresponds to the type of the preset routing protocol, the routing message includes a message of information required for establishing the routing relationship, and the routing message corresponds to the type of the preset routing protocol.
6. The apparatus according to claim 5, wherein the routing protocol module is further configured to identify a routing configuration element of the device according to the preset routing protocol.
7. The apparatus of claim 6,
the routing protocol module is specifically configured to: identifying a DVPN virtual interface of the equipment according to an OSPF protocol; identifying said DVPN virtual interface with said identification using OSPF protocol; obtaining a Link State Advertisement (LSA) of an OSPF protocol which needs to be sent through the DVPN virtual interface;
the DVPN module is specifically configured to send an LSA of the OSPF protocol, which needs to be sent through the DVPN virtual interface, through the DVPN virtual interface.
8. The apparatus of claim 6,
the routing protocol module is specifically configured to: identifying BGP neighbors which are configured by the equipment and are to be established through DVPN according to a BGP protocol;
when a routing relation is to be established with the BGP neighbor with the identifier, acquiring a routing message which needs to be sent to the BGP neighbor;
the DVPN module is specifically configured to send the routing packet through a DVPN virtual interface of the device in a DVPN packet format.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the method of any one of claims 1-4 when executed.
10. A readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the method of any one of claims 1-4.
CN201911261849.3A 2019-12-10 2019-12-10 Data transmission method and device, electronic equipment and readable storage medium Active CN110995600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911261849.3A CN110995600B (en) 2019-12-10 2019-12-10 Data transmission method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911261849.3A CN110995600B (en) 2019-12-10 2019-12-10 Data transmission method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110995600A CN110995600A (en) 2020-04-10
CN110995600B true CN110995600B (en) 2021-12-17

Family

ID=70092021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911261849.3A Active CN110995600B (en) 2019-12-10 2019-12-10 Data transmission method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110995600B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1844580A1 (en) * 2005-01-27 2007-10-17 Nokia Corporation Upnp vpn gateway configuration service
CN101252509A (en) * 2007-02-21 2008-08-27 华耀环宇科技有限公司 Dynamic system and method for virtual private network (VPN) information packet level routing using dual-NAT method
CN102546434A (en) * 2012-02-15 2012-07-04 杭州华三通信技术有限公司 DVPN (dynamic virtual private network) large-scale networking method and Spoke
CN102739497A (en) * 2012-06-07 2012-10-17 杭州华三通信技术有限公司 Automatic generation method for routes and device thereof
CN103023783A (en) * 2012-12-03 2013-04-03 杭州华三通信技术有限公司 Dynamic virtual private network (DVPN) based data transmission method and device
CN103209108A (en) * 2013-04-10 2013-07-17 杭州华三通信技术有限公司 Dynamic virtual private network (DVPN)-based route generation method and equipment
WO2015027910A1 (en) * 2013-08-30 2015-03-05 Hangzhou H3C Technologies Co., Ltd. Implementing network communication
CN107231372A (en) * 2017-06-28 2017-10-03 深圳市欧乐在线技术发展有限公司 A kind of Dynamic VPN network method for building up and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818409B2 (en) * 2002-01-22 2010-10-19 Alcatel-Lucent Usa Inc. Dynamic virtual private network system and methods
CN102594678B (en) * 2012-02-15 2015-01-14 杭州华三通信技术有限公司 Method for large-scale networking of dynamic virtual private network (DVPN) and client
CN103023667A (en) * 2012-12-03 2013-04-03 杭州华三通信技术有限公司 Multicast data transmission method and device based on dynamic virtual private network (DVPN)
CN104427010B (en) * 2013-08-30 2018-02-09 新华三技术有限公司 Method for network address translation and device applied to Dynamic VPN network
CN104092687B (en) * 2014-07-14 2018-02-09 新华三技术有限公司 A kind of bgp session method for building up and device
US10484428B2 (en) * 2016-06-09 2019-11-19 LGS Innovations LLC Methods and systems for securing VPN cloud servers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1844580A1 (en) * 2005-01-27 2007-10-17 Nokia Corporation Upnp vpn gateway configuration service
CN101252509A (en) * 2007-02-21 2008-08-27 华耀环宇科技有限公司 Dynamic system and method for virtual private network (VPN) information packet level routing using dual-NAT method
CN102546434A (en) * 2012-02-15 2012-07-04 杭州华三通信技术有限公司 DVPN (dynamic virtual private network) large-scale networking method and Spoke
CN102739497A (en) * 2012-06-07 2012-10-17 杭州华三通信技术有限公司 Automatic generation method for routes and device thereof
CN103023783A (en) * 2012-12-03 2013-04-03 杭州华三通信技术有限公司 Dynamic virtual private network (DVPN) based data transmission method and device
CN103209108A (en) * 2013-04-10 2013-07-17 杭州华三通信技术有限公司 Dynamic virtual private network (DVPN)-based route generation method and equipment
WO2015027910A1 (en) * 2013-08-30 2015-03-05 Hangzhou H3C Technologies Co., Ltd. Implementing network communication
CN107231372A (en) * 2017-06-28 2017-10-03 深圳市欧乐在线技术发展有限公司 A kind of Dynamic VPN network method for building up and device

Also Published As

Publication number Publication date
CN110995600A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US9948575B2 (en) Issuing method for forwarding adjacency link
US9071458B2 (en) Dual adjacency between edge devices at a network site
CN100556029C (en) The DNS update method and the device of main frame in the IPv6 stateless address configuration
WO2020135395A1 (en) Notification method and device for prefix identifier of cross-interior gateway protocol
EP3637697A1 (en) Method for determining path computation element and communications device
CN102833108A (en) Processing method and equipment of location information of fault point
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN105323176A (en) Method and apparatus for publishing address information
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
CN105340226B (en) The method and device thereof of the main preparation system switching of dynamic routing equipment
CN113132155B (en) Virtual switch distributed escape method and device and storage medium
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
EP2621133B1 (en) Method and system for implementing pw control bit capability negotiation
US20100027555A1 (en) Method for processing link state advertisement and routing device
CN111182022A (en) Data transmission method and device, storage medium and electronic device
CN104079466A (en) Message processing method and equipment
WO2014110737A1 (en) Method, device, and system for configuring device in network
JP4844159B2 (en) Wireless device, network, and communication method
CN107483628B (en) DPDK-based one-way proxy method and system
CN110995600B (en) Data transmission method and device, electronic equipment and readable storage medium
US11128558B2 (en) Automatic routing configuration between hosts and network layer devices
CN104539530A (en) Host/standby switching uninterrupted forwarding method
CN115915098A (en) Method for realizing BMCA in 5G and TSN cross-domain PTP
JP2007243481A (en) Multicast mpls network construction method, multicast mlps network system, router, and program
KR20230088494A (en) Method and Apparatus for Determining Next Hop

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