CN107222405B - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN107222405B
CN107222405B CN201710493824.0A CN201710493824A CN107222405B CN 107222405 B CN107222405 B CN 107222405B CN 201710493824 A CN201710493824 A CN 201710493824A CN 107222405 B CN107222405 B CN 107222405B
Authority
CN
China
Prior art keywords
routing
negotiation
routing device
equipment
server
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
CN201710493824.0A
Other languages
Chinese (zh)
Other versions
CN107222405A (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.)
Hangzhou Lvwan Network Technology Co ltd
Original Assignee
Hangzhou Lvwan Network 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 Hangzhou Lvwan Network Technology Co ltd filed Critical Hangzhou Lvwan Network Technology Co ltd
Priority to CN201710493824.0A priority Critical patent/CN107222405B/en
Publication of CN107222405A publication Critical patent/CN107222405A/en
Application granted granted Critical
Publication of CN107222405B publication Critical patent/CN107222405B/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/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a data transmission method and a system, wherein the method comprises the following steps: the first routing equipment and the second routing equipment carry out virtual routing redundancy protocol negotiation; when the negotiation between the first routing equipment and the second routing equipment fails, the first routing equipment and the second routing equipment are both set to be in a main equipment state; the first routing device and the second routing device operate simultaneously in the master device state. By the method, the VRRP routers can work simultaneously by the identity of the main router, the purpose of increasing the bandwidth is achieved, and the technical problem of bandwidth waste in the prior art is solved.

Description

Data transmission method and system
Technical Field
The invention relates to the technical field of internet, in particular to a data transmission method and a data transmission system.
Background
Virtual Router Redundancy Protocol (VRRP) is a selection Protocol and is widely used in edge networks. VRRP organizes a group of routers within a local area network (including a master router and several backup routers) into a virtual router, called a backup group. After the VRRP function is started, the router in the backup group determines the main backup role of the router according to the priority, the router with the higher priority is the main router, and before the main router fails, the main router is kept working, and other routers do not work.
However, keeping only one master router operating in a backup group is prone to bandwidth waste.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a data transmission method, so that VRRP routers all work simultaneously with the identity of a master router, thereby achieving the purpose of increasing bandwidth and solving the technical problem of bandwidth waste in the prior art.
A second object of the invention is to propose a data transmission system.
To achieve the above object, an embodiment of a first aspect of the present invention provides a data transmission method, including:
the first routing equipment and the second routing equipment carry out virtual routing redundancy protocol negotiation;
when the negotiation between the first routing equipment and the second routing equipment fails, the first routing equipment and the second routing equipment are both set to be in a main equipment state;
the first routing device and the second routing device operate simultaneously in the master device state.
In the data transmission method of the embodiment of the invention, the first routing device and the second routing device carry out virtual routing redundancy protocol negotiation, when the negotiation fails, the first routing device and the second routing device are both set to be in a main device state, and the first routing device and the second routing device work simultaneously in the main device state. The routing equipment is set to be in the main equipment state and works simultaneously, so that the bandwidth can be increased, the equipment backup function is realized, and the network reliability is improved.
To achieve the above object, a second embodiment of the present invention provides a data transmission system, including:
a first routing device and a second routing device;
the first routing equipment is used for carrying out virtual routing redundancy protocol negotiation with the second routing equipment, setting the first routing equipment into a main equipment state when the negotiation fails, and working simultaneously with the second routing equipment in the main equipment state; the second routing device is configured to perform virtual routing redundancy protocol negotiation with the first routing device, set itself to a master device state when the negotiation fails, and operate simultaneously with the first routing device in the master device state.
In the data transmission system of the embodiment of the present invention, by setting the first routing device and the second routing device, the first routing device and the second routing device perform virtual routing redundancy protocol negotiation, and when the negotiation fails, both the first routing device and the second routing device set themselves to a master device state, and the first routing device and the second routing device operate simultaneously in the master device state. The routing equipment is set to be in the main equipment state and works simultaneously, so that the bandwidth can be increased, the equipment backup function is realized, and the network reliability is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a diagram of the operating topology of a conventional VRRP protocol;
fig. 2 is a schematic flow chart illustrating a data transmission method according to an embodiment of the present invention;
FIG. 3 is a diagram of a VRRP protocol operating topology according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a data transmission method according to another embodiment of the invention;
fig. 5 is a flowchart illustrating a data transmission method according to still another embodiment of the invention;
fig. 6 is a flowchart illustrating a data transmission method according to another embodiment of the invention;
fig. 7 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data transmission system according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A data transmission method and system according to an embodiment of the present invention will be described with reference to the drawings.
The VRRP protocol is used as a selection protocol, can avoid confusion caused by IP data flow failover, allows a host to use single-route equipment, and can still maintain the connectivity between routers under the condition that a first-hop router fails.
Fig. 1 is a working topology diagram of a conventional VRRP protocol, which is only described by taking an example that a backup group includes two routers. As shown in fig. 1, the working process of the VRRP protocol is described as follows:
(1) starting a VRRP protocol: after the router 1 and the router 2 start the VRRP function, the main and standby roles of the routers are determined according to the priority.
(2) Selecting the main and standby roles: the router with high priority becomes the main router, and the router with low priority becomes the standby router.
(3) And (3) periodically notifying: the master router sends VRRP notification messages to the standby router periodically to inform the standby router in the backup group that the standby router is in a normal working state; the standby router starts a timer function to judge whether an advertisement message is received within a timing time limit.
(4) And (3) fault treatment: if the VRRP notification message sent by the main router is not received after the timing range of the standby router is exceeded, the main router is considered to be out of order, and the standby router elects to be the main router at the moment and sends the VRRP notification message to the outside.
When the existing VRRP protocol works, only the router 1 in the active state can work, but the router 2 in the standby state does not work, and in the example shown in fig. 1, the work flow can only be: the router 3< - > router 1< - > server, and the router 3< - > router 2< - > server does not forward messages, which results in the waste of equipment bandwidth. If the bandwidth is to be increased, the capacity of the equipment must be expanded, two additional routers are needed, and the equipment cost is increased.
In view of the above problems, an embodiment of the present invention provides a data transmission method, which enables routers in a backup group to simultaneously operate as a master device, and increases bandwidth without increasing devices.
It should be noted that the following embodiments can be applied to the case that the backup group of the VRRP includes at least two routers, and for convenience of description and understanding, the following description only takes the case that the backup group includes only two routers as an example, but should not be taken as a limitation to the present invention.
Fig. 2 is a flowchart illustrating a data transmission method according to an embodiment of the present invention.
As shown in fig. 2, the data transmission method includes the following steps:
and S11, the first routing device and the second routing device carry out virtual routing redundancy protocol negotiation.
The backup group of the VRRP includes at least two routers, and the embodiment of the present invention is described only by including two routers in the backup group, which are respectively referred to as a first routing device and a second routing device. After the VRRP protocol is started, the first routing device and the second routing device need to negotiate.
S12, when the negotiation between the first routing device and the second routing device fails, the first routing device and the second routing device are both set to the master device state.
In this embodiment, when the negotiation between the first routing device and the second routing device fails, both the first routing device and the second routing device are set to the master device state.
And S13, the first routing device and the second routing device work simultaneously in the main device state.
In the VRRP backup group, the first routing equipment and the second routing equipment in the main equipment state work simultaneously.
For example, fig. 3 is a diagram of a VRRP protocol operating topology according to an embodiment of the present invention. As shown in fig. 3, both router 1 and router 2 are in the master state, and two links, router 3< - > router 1< - > server and router 3< - > router 2< - > server, work simultaneously. When one of the links fails, the other link still keeps a normal working state without reselecting the active routing equipment. The bandwidth can be increased under the condition that the equipment is not increased, and the backup function of the equipment is achieved.
In the data transmission method of this embodiment, a first routing device and a second routing device perform virtual routing redundancy protocol negotiation, and when the negotiation fails, both the first routing device and the second routing device are set to a master device state, and the first routing device and the second routing device operate simultaneously in the master device state. The routing equipment is set to be in the main equipment state and works simultaneously, so that the bandwidth can be increased, the equipment backup function is realized, and the network reliability is improved.
In order to set the first routing device and the second routing device in the main device state when the negotiation between the first routing device and the second routing device fails, embodiments of the present invention provide two ways of failing the negotiation between the first routing device and the second routing device.
As one possible implementation manner, as shown in fig. 4, on the basis of the embodiment shown in fig. 1, after step S11, the method further includes:
and S21, configuring different negotiation passwords for the first routing device and the second routing device respectively.
The negotiation password of the first routing equipment is a first password, the negotiation password of the second routing equipment is a second password, and the first password is different from the second password.
In the VRRP protocol, the routers at the two ends can be considered to be paired only when the negotiation passwords of the routers at the two ends are configured consistently, so that the negotiation can be successful; when the negotiation passwords are not consistent, the router negotiation at the two ends fails. Therefore, in this embodiment, different negotiation passwords may be configured for the first routing device and the second routing device, the first password is configured for the first routing device, the second password is configured for the second routing device, and the first password is different from the second password, so that the negotiation between the first routing device and the second routing device fails.
S22, the first routing device receives the first negotiation message sent by the second routing device, and the second routing device receives the second negotiation message sent by the first routing device.
The first negotiation message is encrypted by the second routing equipment by using a second password, and the second negotiation message is encrypted by the first routing equipment by using the first password.
In this embodiment, a negotiation packet may be set for the first routing device and the second routing device at both ends of the VRRP protocol, and the negotiation packet is encrypted by using the configured negotiation password.
Specifically, the negotiation packet of the second routing device may be encrypted by the second routing device using the second password, the encrypted negotiation packet is referred to as a first negotiation packet, the second routing device sends the first negotiation packet to the first routing device for negotiation, and the first routing device receives the first negotiation packet sent by the second routing device. The negotiation message of the first routing equipment is encrypted by the first routing equipment by using a first password, the encrypted negotiation message is called a second negotiation message, the second negotiation message is sent to the second routing equipment by the first routing equipment for negotiation, and the second negotiation message sent by the first routing equipment is received by the second routing equipment.
And S23, the first routing equipment decrypts the first negotiation message by using the first password, and the second routing equipment decrypts the second negotiation message by using the second password.
After the first routing equipment and the second routing equipment respectively receive the first negotiation message and the second negotiation message sent by the opposite side, the negotiation messages are decrypted by adopting respective negotiation passwords, namely the first routing equipment decrypts the received first negotiation messages by adopting the first password, and the second routing equipment decrypts the received second negotiation messages by adopting the second password. And when the first routing equipment and the second routing equipment both decrypt successfully, the negotiation between the first routing equipment and the second routing equipment is successful.
S24, when the decryption negotiation packet fails, it is determined that the negotiation between the first routing device and the second routing device fails.
It can be appreciated that for an encrypted file, it can only be opened by decrypting with the same password as the encrypted password. In this embodiment, since the first password is different from the second password, when the first routing device decrypts the first negotiation packet encrypted by the second password by using the first password, decryption fails; the second routing device also fails when decrypting the second negotiation packet encrypted by the first password using the second password. When the first routing device and the second routing device both fail to decrypt the negotiation packet, it may be determined that the negotiation between the first routing device and the second routing device fails.
In the data transmission method of this embodiment, different negotiation passwords are configured for the first routing device and the second routing device, the first routing device receives a first negotiation message sent by the second routing device, the second routing device receives a second negotiation message sent by the first routing device, the first routing device decrypts the first negotiation message by using the first password, the second routing device decrypts the second negotiation message by using the second password, and when the negotiation message is decrypted and failed, it is determined that the negotiation between the first routing device and the second routing device fails, which can lay a technical foundation for setting the first routing device and the second routing device in a main device state.
As another possible implementation manner, as shown in fig. 5, on the basis of the embodiment shown in fig. 1, the following steps may be further included after step S11:
s31, the first routing device receives the negotiation message sent by the second routing device, and the second routing device receives the negotiation message sent by the first routing device.
The routers in the VRRP backup group generally use the negotiation packet to perform task negotiation, in this embodiment, the first routing device may be configured to receive the negotiation packet sent by the second routing device, and the second routing device may receive the negotiation packet sent by the first routing device.
And S32, deleting the negotiation message after the first routing device and the second routing device receive the negotiation message.
S33, after the negotiation packet is deleted, it is determined that the negotiation between the first routing device and the second routing device fails.
In this embodiment, after the first routing device and the second routing device respectively receive the VRRP negotiation packet sent by the other party, the deletion of the VRRP negotiation packet, that is, the deletion of the VRRP negotiation packet, may be implemented in a software manner. Deleting the negotiation message is equivalent to discarding the negotiation message, and the negotiation cannot be carried out, so that the negotiation failure between the first routing equipment and the second routing equipment can be determined.
In the data transmission method of this embodiment, the first routing device receives the negotiation packet sent by the second routing device, and after the second routing device receives the negotiation packet sent by the first routing device, the negotiation packet is deleted, and then it is determined that the negotiation between the first routing device and the second routing device fails, which can lay a technical foundation for setting the first routing device and the second routing device in the main device state.
Fig. 6 is a flowchart illustrating a data transmission method according to another embodiment of the present invention.
As shown in fig. 6, the data transmission method may include the steps of:
and S41, the first routing device and the second routing device carry out virtual routing redundancy protocol negotiation.
S42, when the negotiation between the first routing device and the second routing device fails, the first routing device and the second routing device are both set to the master device state.
It should be noted that, in the description of the steps S41-S42 in the present invention, reference may be made to the description of the steps S11-S12 in the foregoing embodiment, and the implementation principle is similar, and therefore, the description is omitted here.
And S43, the first routing device and the second routing device work simultaneously in the main device state.
Specifically, the first routing device and the second routing device operate simultaneously in the main device state, and may include: the first routing device and the second routing device respectively receive the first data sent by the third routing device and send the first data to the server through respective links with the server.
That is, the first routing device and the second routing device, both in the master device state, have equal status, and both simultaneously receive the data sent by the third routing device and forward the received data to the server via the respective communication links. When one of the links fails, the other link can still keep working normally.
The topology diagram of the simultaneous operation of the first routing device and the second routing device can be seen in the aforementioned fig. 3, and will not be described herein too much.
The two links send data simultaneously, so that the backup function of the equipment can be achieved, the bandwidth is increased, and the reliability of data transmission is ensured.
S44, the server selects one link from two links between the server and the first and second routing devices as a target link.
When the server sends data through the first routing device and/or the second routing device, one link may be selected as a target link from two links between the server and the first routing device and/or the second routing device.
Specifically, the server may calculate a hash value of the two links through a hash algorithm, and select a target link from the two links based on the hash value.
In order to meet the network requirement of the server, at least two network cards are usually arranged in the server. Taking an example in which two network cards are arranged in a server, when the server connects a first routing device and a second routing device, both the two network cards in the server are configured in a binding (bond) mode, and are set to a dynamic link aggregation mode (i.e., a mode4 mode). Under the configuration, the server selects a target link based on a hash algorithm, the hash algorithm calculates the hash values of the two links according to the five-tuple (namely, the source IP address, the source port number, the protocol type, the destination IP address and the destination port number) of the message, and then the server selects the target link from the two links according to the hash values. Because the server only selects one transmission link through the hash algorithm, two network cards in the server respectively select different links to send data, and the purpose of doubling the bandwidth can be achieved.
S45, the server sends the second data to the third routing device through the destination link.
In this embodiment, after determining the target link by calculating the hash value of the link, the server may send the second data to the third routing device through the target link.
In the data transmission method of this embodiment, a first routing device and a second routing device perform virtual routing redundancy protocol negotiation, when the negotiation between the first routing device and the second routing device fails, both the first routing device and the second routing device are set to a main device state, the first routing device and the second routing device operate in the main device state at the same time, a server selects one link from two links between the first routing device and the server, the server selects the link as a target link, and the server sends second data to a third routing device through the target link. Therefore, the bandwidth can be increased, the device backup function is realized, and the network reliability is improved.
In order to implement the above embodiments, the present invention further provides a data transmission system.
Fig. 7 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention.
As shown in fig. 7, the data transmission system 70 includes: a first routing device 710 and a second routing device 720. Wherein the content of the first and second substances,
the first routing device 710 is configured to perform a virtual routing redundancy protocol negotiation with the second routing device 720, set itself to a master device state when the negotiation fails, and operate simultaneously with the second routing device 720 in the master device state.
The second routing device 720 is configured to perform a virtual routing redundancy protocol negotiation with the first routing device 710, set itself to a master device state when the negotiation fails, and operate simultaneously with the first routing device 710 in the master device state.
When the negotiation between the first routing device 710 and the second routing device 720 fails, the first routing device 710 and the second routing device 720 are set to be in an active state and operate simultaneously, and for this reason, the embodiments of the present invention propose two methods for causing the negotiation between the first routing device 710 and the second routing device 720 to fail.
In one possible implementation manner, different negotiated passwords are configured for the first routing device 710 and the second routing device 720, where the negotiated password of the first routing device 710 is the first password, and the negotiated password of the second routing device 720 is the second password. At this time, the process of the present invention,
the first routing device 710 is configured to receive a first negotiation packet sent by the second routing device 720, decrypt the first negotiation packet with a first password, and determine that negotiation with the second routing device 720 fails when decryption of the first negotiation packet fails, where the first negotiation packet is encrypted by the second routing device 720 with a second password.
The second routing device 720 is configured to receive the second negotiation packet sent by the first routing device 710, decrypt the second negotiation packet with the second password, and determine that negotiation with the first routing device 710 fails when decryption of the first negotiation packet fails, where the second negotiation packet is encrypted by the first routing device 710 with the first password.
In another possible implementation manner, the first routing device 710 is further configured to receive a negotiation packet sent by the second routing device 720, delete the negotiation packet after receiving the negotiation packet, and determine that the negotiation with the second routing device 720 fails after deleting the negotiation packet.
The second routing device 720 is further configured to receive a negotiation packet sent by the first routing device 710, delete the negotiation packet after receiving the negotiation packet, and determine that the negotiation with the first routing device 710 fails after deleting the negotiation packet.
Optionally, in a possible implementation manner of the embodiment of the present invention, as shown in fig. 8, on the basis of the embodiment shown in fig. 7, the data transmission system 70 may further include: a third routing device 730 and a server 740. Wherein the content of the first and second substances,
a third routing device 730 for sending the first data to the first routing device 710 and the second routing device 720 simultaneously.
And the server 740 is configured to receive the first data sent by the first routing device 710 and the second routing device 720.
In this embodiment, the first routing device 710 is further configured to receive the first data and send the first data to the server 740 over a link with the server 740. The second routing device 720 is also configured to receive the first data and send the first data to the server 740 over a link with the server 740.
In this embodiment, after the negotiation between the first routing device 710 and the second routing device 720 fails, both the first routing device 710 and the second routing device 720 set themselves to be in the main device state, and operate simultaneously in the main device state. The third routing device 730 can simultaneously send the first data to be transmitted to the first routing device 710 and the second routing device 720, and simultaneously transmit the first data to the server 740 through the two links between the first routing device 710 and the server 740 and between the second routing device 720 and the server 740, so as to achieve the purposes of device backup and bandwidth increase.
Optionally, in a possible implementation manner of the embodiment of the present invention, when the server 740 needs to send data, one link may be selected from two links between the first routing device 710 and the server 740, and the two links are used as a target link, and the second data is sent to the third routing device 730 through the target link. When the server 740 selects the target link, the target link is selected from the two links based on the hash value by specifically calculating the hash values of the two links.
It should be noted that the foregoing explanation of the data transmission method embodiment is also applicable to the data transmission system of this embodiment, and the implementation principle thereof is similar, and is not described herein again.
In the data transmission system of this embodiment, by setting the first routing device and the second routing device, the first routing device and the second routing device perform virtual routing redundancy protocol negotiation, and when the negotiation fails, both the first routing device and the second routing device set themselves to be in a main device state, and the first routing device and the second routing device operate simultaneously in the main device state. The routing equipment is set to be in the main equipment state and works simultaneously, so that the bandwidth can be increased, the equipment backup function is realized, and the network reliability is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method of data transmission, comprising:
the first routing equipment and the second routing equipment carry out virtual routing redundancy protocol negotiation;
configuring different negotiation passwords for the first routing equipment and the second routing equipment respectively; the negotiation password of the first routing equipment is a first password, and the negotiation password of the second routing equipment is a second password;
the first routing equipment receives a first negotiation message sent by the second routing equipment; wherein the first negotiation packet is encrypted by the second routing device using the second password;
the second routing equipment receives a second negotiation message sent by the first routing equipment; wherein the second negotiation packet is encrypted by the first routing device using the first password;
the first routing equipment decrypts the first negotiation message by adopting the first password;
the second routing equipment decrypts the second negotiation message by adopting the second password;
when the negotiation message is failed to be decrypted, determining that the negotiation between the first routing equipment and the second routing equipment fails;
when the negotiation between the first routing equipment and the second routing equipment fails, the first routing equipment and the second routing equipment are both set to be in a main equipment state;
the first routing device and the second routing device operate simultaneously in the master device state.
2. The data transmission method according to claim 1, further comprising:
the first routing equipment receives a negotiation message sent by the second routing equipment, and the second routing equipment receives the negotiation message sent by the first routing equipment;
after receiving the negotiation message, the first routing device and the second routing device both delete the negotiation message;
and after the negotiation message is deleted, determining that the negotiation between the first routing equipment and the second routing equipment fails.
3. The data transmission method according to any one of claims 1 to 2, wherein the first routing device and the second routing device operate simultaneously in the master device state, including:
the first routing device and the second routing device respectively receive first data sent by a third routing device, and send the first data to the server through respective links with the server.
4. The data transmission method according to claim 3, further comprising:
the server selects one link from two links between the first routing equipment and the server and the second routing equipment as a target link;
the server sends second data to the third routing device over the target link.
5. The data transmission method according to claim 4, wherein the server selects one link from two links between the first routing device and the second routing device and the server as a target link, further comprising:
and the server calculates the hash value of the two links, and selects the target link from the two links based on the hash value.
6. A data transmission system, comprising:
a first routing device and a second routing device;
the first routing equipment is used for carrying out virtual routing redundancy protocol negotiation with the second routing equipment, setting the first routing equipment into a main equipment state when the negotiation fails, and working simultaneously with the second routing equipment in the main equipment state; the second routing device is used for carrying out virtual routing redundancy protocol negotiation with the first routing device, setting the second routing device to be in a main device state when the negotiation fails, and working simultaneously with the first routing device in the main device state;
the first routing equipment and the second routing equipment configure different negotiation passwords; the negotiation password of the first routing equipment is a first password, and the negotiation password of the second routing equipment is a second password;
the first routing device is configured to receive a first negotiation packet sent by the second routing device, decrypt the first negotiation packet by using the first password, and determine that negotiation with the second routing device fails when decryption of the first negotiation packet fails; wherein the first negotiation packet is encrypted by the second routing device using the second password;
the second routing device is configured to receive a second negotiation packet sent by the first routing device, decrypt the second negotiation packet by using the second password, and determine that negotiation with the first routing device fails when decryption of the first negotiation packet fails; wherein the second negotiation packet is encrypted by the first routing device using the first password.
7. The data transmission system of claim 6, further comprising:
the first routing device is further configured to receive a negotiation packet sent by the second routing device, delete the negotiation packet after receiving the negotiation packet, and determine that negotiation with the second routing device fails after deleting the negotiation packet;
the second routing device is further configured to receive a negotiation packet sent by the first routing device, delete the negotiation packet after receiving the negotiation packet, and determine that negotiation with the first routing device fails after deleting the negotiation packet.
8. The data transmission system according to any one of claims 6 to 7, further comprising: a third routing device and a server; the third routing device is configured to send first data to the first routing device and the second routing device at the same time;
the first routing device is further configured to receive the first data and send the first data to the server through a link with the server;
the second routing device is further used for receiving the first data and sending the first data to the server through a link between the second routing device and the server;
the server is configured to receive the first data sent by the first routing device and the second routing device.
9. The data transmission system of claim 8,
the server is further configured to select one link from two links between the first routing device and the server, the second routing device and the server as a target link, and send second data to the third routing device through the target link.
10. The data transmission system of claim 9,
the server is specifically configured to calculate a hash value of the two links, and select the target link from the two links based on the hash value.
CN201710493824.0A 2017-06-26 2017-06-26 Data transmission method and system Active CN107222405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710493824.0A CN107222405B (en) 2017-06-26 2017-06-26 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710493824.0A CN107222405B (en) 2017-06-26 2017-06-26 Data transmission method and system

Publications (2)

Publication Number Publication Date
CN107222405A CN107222405A (en) 2017-09-29
CN107222405B true CN107222405B (en) 2020-06-02

Family

ID=59951272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710493824.0A Active CN107222405B (en) 2017-06-26 2017-06-26 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN107222405B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060533A (en) * 2007-05-14 2007-10-24 华为技术有限公司 A method, system and device for improving the reliability of VGMP protocol
CN101277262A (en) * 2008-04-30 2008-10-01 华为技术有限公司 Method for restarting virtual router redundancy protocol
WO2009059470A1 (en) * 2007-11-05 2009-05-14 Zte Corporation Pe device and access method for a vrrp device to access vpn
CN101695029A (en) * 2009-10-22 2010-04-14 成都市华为赛门铁克科技有限公司 Data backup method, active-standby switching method and communication system as well as related equipment
CN101998675A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Radio equipment access method and device and communication system
CN102025476A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Method for realizing user port positioning in BRAS (Broadband Remote Access Server) multicomputer backup scene and network system
CN102318293A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Method, advice and system of establishing LSP
CN102546430A (en) * 2012-02-05 2012-07-04 华为技术有限公司 Method for redundant backup of network equipment, and routing equipment and system
CN105703922A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Link bundling method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142981B (en) * 2010-11-01 2014-01-01 华为技术有限公司 Method and system for processing terminal disconnection and broadband remote access server
CN103457817B (en) * 2012-05-30 2018-03-16 中兴通讯股份有限公司 The guard method of PW+L3VPN a kind of and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060533A (en) * 2007-05-14 2007-10-24 华为技术有限公司 A method, system and device for improving the reliability of VGMP protocol
WO2009059470A1 (en) * 2007-11-05 2009-05-14 Zte Corporation Pe device and access method for a vrrp device to access vpn
CN101277262A (en) * 2008-04-30 2008-10-01 华为技术有限公司 Method for restarting virtual router redundancy protocol
CN101998675A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Radio equipment access method and device and communication system
CN102025476A (en) * 2009-09-23 2011-04-20 中兴通讯股份有限公司 Method for realizing user port positioning in BRAS (Broadband Remote Access Server) multicomputer backup scene and network system
CN101695029A (en) * 2009-10-22 2010-04-14 成都市华为赛门铁克科技有限公司 Data backup method, active-standby switching method and communication system as well as related equipment
CN102318293A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Method, advice and system of establishing LSP
CN102546430A (en) * 2012-02-05 2012-07-04 华为技术有限公司 Method for redundant backup of network equipment, and routing equipment and system
CN105703922A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Link bundling method and system

Also Published As

Publication number Publication date
CN107222405A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN110677426B (en) Data transmission method and device, storage medium and VPN (virtual private network) equipment
RU2526719C2 (en) Network system and network redundancy method
US20200220785A1 (en) Communications Connection Detection Method and Apparatus
US8631134B2 (en) Network architecture for secure data communications
US9450929B2 (en) Communication device, communication system, and computer program product
US8995667B2 (en) Mechanism for co-ordinated authentication key transition for IS-IS protocol
CN108718282B (en) Method and device for determining message sequence number
US8023406B2 (en) Route reflector for a communication system
CN113615132A (en) Fast flooding topology protection
EP4099657A1 (en) Method and device for preventing replay attack on srv6 hmac check
CN107222405B (en) Data transmission method and system
JP2009506592A (en) Apparatus and method for managing nodes on a fault tolerant network
US10887207B2 (en) System and method for determining branch gateway device availability in computer networks
US9614720B2 (en) Notification technique for network reconfiguration
KR20180099143A (en) Apparatus and method for recovering tcp-session
US11695743B2 (en) Connecting and resetting devices
KR102376484B1 (en) Apparatus and method for automatic switching of duplication lines
CN114070636B (en) Security control method and device, switch, server and network system
CN108243099B (en) Method, device and system for path selection
CA2692176C (en) A route reflector for a communication system
CN116418738A (en) Network control system and method
CN114531388A (en) Communication method and device
CN117692239A (en) Signaling communication method, device, system and nonvolatile storage medium
JP2001148714A (en) Communication network and simple routing method
EP2234345A1 (en) Network devices

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
CP02 Change in the address of a patent holder

Address after: Room 1901, building 1, No. 1782 Jiangling Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2, No. 2630, building 2, superior Science Park, No. 310026 South Ring Road, Hangzhou, Binjiang District, Zhejiang, China

Patentee before: HANGZHOU LVWAN NETWORK TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder