CN109889411A - A kind of method and device of data transmission - Google Patents

A kind of method and device of data transmission Download PDF

Info

Publication number
CN109889411A
CN109889411A CN201910222615.1A CN201910222615A CN109889411A CN 109889411 A CN109889411 A CN 109889411A CN 201910222615 A CN201910222615 A CN 201910222615A CN 109889411 A CN109889411 A CN 109889411A
Authority
CN
China
Prior art keywords
interface
network equipment
group
status
transmission path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910222615.1A
Other languages
Chinese (zh)
Other versions
CN109889411B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910222615.1A priority Critical patent/CN109889411B/en
Publication of CN109889411A publication Critical patent/CN109889411A/en
Application granted granted Critical
Publication of CN109889411B publication Critical patent/CN109889411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application provides a kind of method and device of data transmission, it is related to field of communication technology, this method is applied to first network equipment, first network equipment is connect with multiple switch, each interchanger is connect with the first interface group of second network equipment, this method comprises: receiving the first two-way converting testing mechanism BFD message that second network equipment is sent, the Interface status of multiple first interface groups is carried in the first BFD message;If in the Interface status of multiple first interface groups, the Interface status of the corresponding first interface group in current transmission path between first network equipment and second network equipment is in off state, it is then other first interface groups of open state according to Interface status in multiple first interface groups, it determines object transmission path, and data is sent to second network equipment by object transmission path.Loss of data can be prevented using the application, guarantee network communication.

Description

A kind of method and device of data transmission
Technical field
This application involves fields of communication technology, more particularly to a kind of method and device of data transmission.
Background technique
Currently, network function virtualization (English: Network Function Virtualization, referred to as: NFV) skill Art using more and more extensive.Multiple virtual network devices (ratio can be virtually dissolved under the software architecture of NFV, in server Such as virtual firewall, virtual router) and virtual switch.Wherein, the virtual network device virtually dissolved in server is logical Virtual switch is crossed to be communicated with physical switches.
In general, virtual network device can detect the Interface status for the virtual interface connecting with virtual switch, work as virtual net When network equipment detects that the Interface status of above-mentioned virtual interface is in off state (i.e. Down state), virtual network device can lead to It crosses other chain road direction physical switches and sends data.For example, certain stack equipment includes that the first virtual network device and second are virtual The network equipment.Wherein, the first virtual network device is communicated by the first virtual switch with physical switches, the second virtual network Equipment is communicated by the second virtual switch with physical switches, and the first virtual network device is main stack equipment.When the first void When the Interface status for the virtual interface that the quasi- network equipment is connect with the first virtual switch is in off state, stack equipment can be incited somebody to action Flow is switched to the second virtual network device by the first virtual network device, that is, passing through the second virtual network device and second Virtual switch sends data to physical switches.
However, the physics of server and physical switches connects when the link failure between server and physical switches The Interface status of mouth is in off state (i.e. Down state), and at this point, virtual network device and the virtual of virtual switch connect The Interface status of mouth remains as open state (i.e. UP state).Virtual network device will continue to by current transmission path (namely Virtual network device continues through virtual switch) network is influenced to physical switches transmission data so as to cause loss of data Communication.
Summary of the invention
A kind of method and device for being designed to provide data transmission of the embodiment of the present application, can prevent loss of data, Guarantee network communication.Specific technical solution is as follows:
In a first aspect, provide a kind of method of data transmission, the method is applied to first network equipment, described first The network equipment is connect with multiple switch respectively, and each interchanger is connect with the first interface group of second network equipment, the side Method includes:
Receive the first two-way converting testing mechanism BFD message that second network equipment is sent, the first BFD message In carry the Interface status of the multiple first interface group;
If in the Interface status of the multiple first interface group, the first network equipment and second network equipment Between the Interface status of the corresponding first interface group in current transmission path be in off state, then according to the multiple first interface Interface status is other first interface groups of open state in group, determines object transmission path, and pass through the object transmission road Radial second network equipment sends data.
Optionally, the first network equipment is connect by multiple second interface groups with the multiple interchanger respectively, institute State method further include:
For each second interface group, the Interface status for the physical interface that the second interface group includes is obtained;
According to the Interface status for the physical interface that the second interface group includes, the Interface status of the second interface group is determined;
The 2nd BFD message is sent to second network equipment, carries the multiple second in the 2nd BFD message The Interface status of interface group transmits so that second network equipment is determined according to the Interface status of the multiple second interface group Path.
Optionally, the Interface status of the physical interface for including according to the second interface group, determines the second interface group Interface status, comprising:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface The Interface status of group is in off state;
If there are the Interface status of at least one physical interface in the physical interface that the second interface group includes to open State, it is determined that the Interface status of the second interface group is open state.
Optionally, it is described according to Interface status in the multiple first interface group be open state other first interfaces Group determines object transmission path, comprising:
In the multiple first interface group, determine that Interface status is the target first interface group of open state, and in institute It states in multiple second interface groups, determines that Interface status is the target second interface group of open state;
The transmission path comprising the target first interface group and the target second interface group is determined, by the transmission road Diameter is as object transmission path.
Second aspect, provides a kind of device of data transmission, and described device is applied to first network equipment, and described first The network equipment is connect with multiple switch respectively, and each interchanger is connect with the first interface group of second network equipment, the dress It sets and includes:
Receiving module, the first two-way converting testing mechanism BFD message sent for receiving second network equipment, institute State the Interface status that the multiple first interface group is carried in the first BFD message;
First sending module, if in Interface status for the multiple first interface group, the first network equipment The Interface status of the corresponding first interface group in current transmission path between second network equipment is in off state, then root It is other first interface groups of open state according to Interface status in the multiple first interface group, determines object transmission path, and Data are sent to second network equipment by the object transmission path.
Optionally, the first network equipment is connect by multiple second interface groups with multiple switch respectively, the dress It sets further include:
Module is obtained, for being directed to each second interface group, obtains the interface for the physical interface that the second interface group includes State;
Determining module, the Interface status of the physical interface for including according to the second interface group, determines the second interface The Interface status of group;
Second sending module, for sending the 2nd BFD message to second network equipment, in the 2nd BFD message The Interface status of the multiple second interface group is carried, so that second network equipment is according to the multiple second interface group Interface status determine transmission path.
Optionally, the determining module, is specifically used for:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface The Interface status of group is in off state;
If there are the Interface status of at least one physical interface in the physical interface that the second interface group includes to open State, it is determined that the Interface status of the second interface group is open state.
Optionally, first sending module, is specifically used for:
In the multiple first interface group, determine that Interface status is the target first interface group of open state, and in institute It states in multiple second interface groups, determines that Interface status is the target second interface group of open state;
The transmission path comprising the target first interface group and the target second interface group is determined, by the transmission road Diameter is as object transmission path.
The third aspect provides a kind of network equipment, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in first aspect.
Fourth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Computer program realizes method and step described in first aspect when the computer program is executed by processor.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes method and step described in above-mentioned first aspect.
The embodiment of the present application provides a kind of method and device of data transmission, and first network equipment can receive the second net The BFD message that network equipment is sent, if in the Interface status of multiple first interface groups, first network equipment and second network equipment Between the Interface status of the corresponding first interface group in current transmission path be in off state, then according in multiple first interface groups Interface status is other first interface groups of open state, determines object transmission path, and passes through object transmission path to second The network equipment sends data.In this way, the BFD message that first network equipment can be sent according to second network equipment, determines first The first interface group failure of second network equipment on current transmission path between the network equipment and second network equipment, and lead to It crosses other transmission paths and improves the reliability of network communication to prevent loss of data to second network equipment transmission data.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Figure 1A is a kind of schematic diagram of network system provided by the embodiments of the present application;
Figure 1B is the schematic diagram of another network system provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of the method for data transmission provided by the embodiments of the present application;
Fig. 3 A is the format chart of BFD message provided by the embodiments of the present application;
Fig. 3 B is the format chart of the authentication field of BFD message provided by the embodiments of the present application;
Fig. 4 is a kind of exemplary flow chart of method of data transmission provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of the device of data transmission provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of the device of data transmission provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of the network equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of method of data transmission, can be applied to the network equipment in network system, Such as router, firewall etc..The network system includes first network equipment, second network equipment and multiple switch.First The network equipment is connect by multiple second interface groups with multiple switch respectively, and the first of each interchanger and second network equipment Interface group connection.Wherein, first interface group is corresponded with interchanger, second interface group and interchanger also correspond.
Figure 1A is a kind of schematic diagram of network system provided by the embodiments of the present application.As shown in Figure 1A, the network system packet Include first network equipment, second network equipment, the first interchanger and second switch.First network equipment by interface group 1 with The connection of first interchanger, interface group 1 include interface 1 and interface 2.First network equipment also passes through interface group 2 and second switch Connection, interface group 2 include interface 3 and interface 4.Second network equipment is connect by interface group 3 with the first interchanger, interface group 3 Including interface 5 and interface 6.Second network equipment also passes through interface group 4 and connect with second switch, and interface group 4 includes 7 He of interface Interface 8.
Figure 1B is the schematic diagram of another network system provided by the embodiments of the present application.In the network system, the first net Network equipment can pass through intelligent elastic framework (English: Intelligent Resilient for multiple virtual network devices Framework, referred to as: IRF) technology composition the network equipment.As shown in Figure 1B, server 1 dissolves by NFV virtual technology One virtual network device and the first virtual switch.Virtual network device leads to network oscillation due to Single Point of Faliure in order to prevent, The first virtual network device and the second virtual network device are stacked by IRF technology, obtain stack equipment, wherein the One virtual network device can stack equipment, the second virtual network device can be standby stack equipment based on.First virtual network Equipment is connect by interface group 1 with the first virtual switch.Interface group 1 includes interface 1 and interface 2.Similarly, server 2 passes through NFV virtual technology dissolves the second virtual network device and the second virtual switch.Second virtual network device by interface group 2 with The connection of second virtual switch.Interface group 2 includes interface 3 and interface 4.Correspondingly, physical switches pass through interface group 3 and first Virtual switch connection.Interface group 3 includes interface 5 and interface 6.Similarly, physical switches also pass through interface group 4 and second virtually Interchanger connection.Interface group 4 includes interface 7 and interface 8.Furthermore it is also possible to by the first virtual network device and the second virtual net The virtual interface of network equipment is set as ethernet redundancy interface (English: Redundant Ethernet, abbreviation: Reth).First The Interface status of the virtual interface (i.e. interface 1 and interface 2) of virtual network device (i.e. main stack equipment) be state of activation (i.e. Active state), the interface shape of the virtual interface (i.e. interface 3 and interface 4) of the second virtual network device (i.e. for stack equipment) State is unactivated state (i.e. inactive state).At this point, the first virtual network device (i.e. main stack equipment) can be by connecing Mouth 1 corresponding transmission path of group sends data to physical switches.
It is detailed to a kind of method progress of data transmission provided by the embodiments of the present application below in conjunction with specific embodiment Explanation, as shown in Fig. 2, specific step is as follows.
Step 201, the first BFD message that second network equipment is sent is received.
Wherein, the Interface status of multiple first interface groups is carried in the first BFD message.
In the embodiment of the present application, with reference to Figure 1A, second network equipment periodically can send the to first network equipment One two-way converting testing mechanism (English: Bidirectional Forwarding Detection, referred to as: BFD) message.Its In, the Interface status of multiple first interface groups (such as interface group 3 and interface group 4) is carried in the first BFD message.For each First interface group, second network equipment can be according to the Interface status for the physical interface that the first interface group includes, to determine this The Interface status of first interface group.Interface status can be open state or closed state.Wherein, open state can indicate UP State or active state, closed state can indicate down state or inactive state.
Wherein, extended meeting is discussed in detail after the network equipment determines the treatment process of the Interface status of interface group.
After first network equipment receives the first BFD message, the first BFD message can be parsed, obtain the first BFD The Interface status of the multiple first interface groups carried in message.
For example, when the link between second network equipment and the first interchanger and second switch is normal, the first BFD The Interface status of the interface group 3 carried in message is open state, and the Interface status of interface group 4 is open state.When the second net When the link between link failure and second switch between network equipment and the first interchanger is normal, taken in the first BFD message The Interface status of the interface group 3 of band is in off state, and the Interface status of interface group 4 is open state.
Step 202, if in the Interface status of multiple first interface groups, between first network equipment and second network equipment The Interface status of the corresponding first interface group in current transmission path be in off state, then according to interface in multiple first interface groups State is other first interface groups of open state, determines object transmission path, and passes through object transmission path to the second network Equipment sends data.
In the embodiment of the present application, first network equipment obtains connecing for the multiple first interface groups carried in the first BFD message After mouthful state, the corresponding first interface in current transmission path between first network equipment and second network equipment can be first determined Group obtains the interface of the corresponding first interface group in the current transmission path then from the Interface status of multiple first interface groups State.If the Interface status of the corresponding first interface group in the current transmission path is in off state, determine that the second network is set Interface group failure namely the current transmission path failure in standby transmission path in this prior.Then, first network equipment can be with In multiple first interface groups, determine Interface status be open state other first interface groups, and then according to determine its His first interface, determines object transmission path.First network equipment can be sent out by object transmission path to second network equipment Data are sent, to prevent loss of data, improve the reliability of network communication.If between first network equipment and second network equipment The corresponding first interface group in current transmission path Interface status be open state, then determine that second network equipment exists, currently Interface group in transmission path is normal, that is, current transmission path is normal.First network equipment, which can continue through, deserves forward pass Defeated path sends data to second network equipment.
For example, the current transmission path between first network equipment and second network equipment is first network with reference to Figure 1A Equipment → the first interchanger → second network equipment.When between second network equipment and the first interchanger link failure, with the When link between two interchangers is normal, the Interface status of the interface group 3 carried in the first BFD message is in off state, interface The Interface status of group 4 is open state.Second network equipment obtains the Interface status of the interface group 3 carried in the first BFD message After the Interface status of interface group 4, since the Interface status of interface group 3 is in off state, first network equipment can be determined that Current transmission path failure between 3 failure of interface group namely first network equipment and second network equipment of two network equipments. Then, first network equipment can determine object transmission path according to the Interface status of interface group 4, i.e., first network equipment → Second switch → second network equipment, and data are sent to second network equipment by object transmission path.
Optionally, first network equipment can be combined with the Interface status of second interface group and the interface shape of first interface group State determines object transmission path.The specific process is as follows: determining that Interface status is open state in multiple first interface groups Target first interface group determine that Interface status is the target second interface group of open state and in multiple second interface groups. Then, it is determined that the transmission path comprising target first interface group and target second interface group, passes the transmission path as target Defeated path.
In the embodiment of the present application, first network equipment can determine Interface status in multiple first interface groups to open The target first interface group of state, and in multiple second interface groups, determine that Interface status is that the target second of open state connects Mouth group.Then, first network equipment determines the biography of target first interface group and target second interface group in same transmission path Defeated path is object transmission path.Wherein, if it is determined that when the object transmission path gone out is a plurality of, first network equipment can be into One step determines unique object transmission path according to other conditions such as expense, time delays in a plurality of object transmission path.
Optionally, the first interface group for belonging to same transmission path and second can be marked to connect in advance in first network equipment The corresponding relationship of mouth group.For example, technical staff can also be by the first interface group and second interface group in same transmission path Mark is set as same interface group mark namely the interface group 1 in Figure 1A and interface group 3 is disposed as interface group A, interface group 2 Interface group B is disposed as with interface group 4.Correspondingly, first network equipment when determining object transmission path, can directly judge Interface group identifies whether the Interface status of identical first interface group and the Interface status of second interface group are open state.Such as It is open state that fruit interface group, which identifies identical first interface group and the Interface status of second interface group, it is determined that this first connects Mouth group transmission path corresponding with the second interface group is object transmission path.
Optionally, first network equipment can also periodically obtain each second interface group (such as interface group 1 and interface group 2) Interface status, and BFD message is sent to second network equipment, so that second network equipment is according to multiple second interface groups Interface status determines transmission path.Concrete processing procedure is as follows:
Step 1 obtains the Interface status for the physical interface that the second interface group includes for each second interface group.
In the embodiment of the present application, technical staff can configure interface group and each interface in first network equipment in advance The interface that group includes.For each second interface group, first network equipment can periodically detect the second interface group and include Physical interface Interface status.
Step 2 determines connecing for the second interface group according to the Interface status for the physical interface that the second interface group includes Mouth state.
In the embodiment of the present application, first network equipment obtains the Interface status for the physical interface that the second interface group includes Afterwards, the Interface status of the second interface group can be determined according to the Interface status for each physical interface that the second interface group includes.
Optionally, the Interface status for the physical interface that first network equipment includes according to the second interface group, determine this The treatment process of the Interface status of two interface groups can be with are as follows: if the Interface status for the physical interface that the second interface group includes is equal It is in off state, it is determined that the Interface status of the second interface group is in off state.If the physics that the second interface group includes It there are the Interface status of at least one physical interface is open state in interface, it is determined that the Interface status of the second interface group is Open state.
In the embodiment of the present application, first network equipment obtains the Interface status for the physical interface that the second interface group includes Afterwards, it can further judge whether the Interface status for each physical interface that the second interface group includes is in off state.If The Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface group failure, and really The Interface status of the fixed second interface group is in off state.If having at least one in the physical interface that the second interface group includes The Interface status of a physical interface is open state, it is determined that the second interface group is normal, and determines connecing for the second interface group Mouth state is open state.
For example, the Interface status of interface 2 is to close shape if the Interface status of interface 1 is in off state in interface group 1 State, then the Interface status of interface group 1 is in off state.If the Interface status of interface 3 is in off state in interface group 2, and is connect The Interface status of mouth 4 is open state, then the Interface status of interface group 2 is open state.
Step 3 sends the 2nd BFD message to second network equipment.
Wherein, the Interface status of multiple second interface groups is carried in the 2nd BFD message so that second network equipment according to The Interface status of multiple second interface groups determines transmission path.
Wherein, second network equipment according to the Interface status of multiple second interface groups determine the treatment process of transmission path with Step 202 is similar, and details are not described herein again.
Optionally, the network equipment can carry the Interface status of interface group in the authentication field of BFD message.
In the embodiment of the present application, Fig. 3 A is the format chart of BFD message provided by the embodiments of the present application.As shown in Figure 3A, Certification in BFD message can be identified (Authentication Present) field and be set to 1 by one network equipment, for indicating Authentication field is carried in the BFD message.Fig. 3 B is the format chart of the authentication field of BFD message provided by the embodiments of the present application. As shown in Figure 3B, which includes auth type (Authentication Type) field, authentication field length (Authentication Length) field and authentication data (Authentication Data) field.Wherein, first network Equipment can set auth type to any value in 6 to 255, for indicating that authentication data carries the interface shape of interface group State, so that second network equipment, which receives, send central processing unit (English: Central Processing on after the 2nd BFD message Unit, referred to as: CPU) processing.Meanwhile first network equipment can add connecing for each second interface group in authentication data field Mouth state.For example, the auth type field in the 2nd BFD message is set to 100 by first network equipment, and in authentication data field The Interface status of the middle Interface status for carrying interface group 1 and interface group 2.
Fig. 4 is a kind of example of the method for data transmission provided by the embodiments of the present application, referring to Fig.1 network system shown in B It unites, stack equipment includes the first virtual network device and the second virtual network device in the example.Wherein, the first virtual network is set Standby is main stack equipment, and the second virtual network device is standby stack equipment, the interface shape of interface 1 and interface 2 that interface group 1 includes State is state of activation, and the Interface status of interface 3 and interface 4 that interface group 2 includes is unactivated state.First network equipment and the Current transmission path between two network equipments is the first virtual network device → first virtual switch → physical switches, I.e. when the link between physical switches and the first virtual switch is normal, the first virtual network device passes through the first virtual friendship It changes planes and sends data to physical switches.When the link failure between physical switches and the first virtual switch.Specific place Reason process is as follows:
Step 401, physical switches obtain the Interface status and interface 7 of interface 5 and interface 6 and the interface shape of interface 8 State.
Wherein, the Interface status of interface 5 and interface 6 is in off state, and the Interface status of interface 7 and interface 8 is out Open state.
Step 402, physical switches determine that the Interface status of interface group 3 is according to the Interface status of interface 5 and interface 6 Closed state, and according to the Interface status of interface 7 and interface 8, determine that the Interface status of interface group 4 is open state.
Step 403, physical switches send BFD message to stack equipment.
Wherein, the Interface status of interface group 3 and the Interface status of interface group 4 are carried in BFD message.
Step 404, stack equipment judges that the current transmission path between first network equipment and second network equipment is corresponding The Interface status of interface group 3 whether be in off state.
If the interface shape of the corresponding interface group 3 in current transmission path between first network equipment and second network equipment State is in off state, and thens follow the steps 405.
Step 405, the first virtual network device is switched to standby stack equipment by stack equipment, and the second virtual network is set Standby switching is main stack equipment.
In one embodiment, the Interface status of interface 1 and interface 2 can also be switched to inactive shape by stack equipment State, and the Interface status of interface 3 and interface 4 is switched to state of activation.
Step 401 is similar to the concrete processing procedure of step 405 and the concrete processing procedure of step 201 to step 202.
In the embodiment of the present application, first network equipment can receive the BFD message of second network equipment transmission, if multiple Current transmission path corresponding first in the Interface status of first interface group, between first network equipment and second network equipment The Interface status of interface group is in off state, then according to Interface status in multiple first interface groups be open state other first Interface group determines object transmission path, and sends data to second network equipment by object transmission path.In this way, the first net The BFD message that network equipment can be sent according to second network equipment, determines between first network equipment and second network equipment The first interface group failure of second network equipment on current transmission path, and pass through other transmission paths to second network equipment It sends data and improves the reliability of network communication to prevent loss of data.
Based on the same technical idea, as shown in figure 5, the embodiment of the present application also provides a kind of device of fault detection, The device is applied to first network equipment, and first network equipment is connect with multiple switch respectively, each interchanger and the second net The first interface group of network equipment connects, which includes:
Receiving module 510, for receiving the first two-way converting testing mechanism BFD message of second network equipment transmission, the The Interface status of multiple first interface groups is carried in one BFD message;
First sending module 520, if in Interface status for multiple first interface groups, first network equipment and second The Interface status of the corresponding first interface group in current transmission path between the network equipment is in off state, then according to multiple first Interface status is other first interface groups of open state in interface group, determines object transmission path, and pass through object transmission road Radial second network equipment sends data.
Optionally, first network equipment is connect by multiple second interface groups with multiple switch respectively, as shown in fig. 6, The device further include:
Module 530 is obtained, for being directed to each second interface group, obtains connecing for the physical interface that the second interface group includes Mouth state;
Determining module 540, the Interface status of the physical interface for including according to the second interface group determine that this second connects The Interface status of mouth group;
Second sending module 550 carries in the 2nd BFD message for sending the 2nd BFD message to second network equipment The Interface status of multiple second interface groups transmits so that second network equipment is determined according to the Interface status of multiple second interface groups Path.
Optionally, determining module 540 are specifically used for:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface The Interface status of group is in off state;
If there are the Interface status of at least one physical interface in the physical interface that the second interface group includes to open State, it is determined that the Interface status of the second interface group is open state.
Optionally, the first sending module 520, is specifically used for:
In multiple first interface groups, determine that Interface status is the target first interface group of open state, and multiple the In two interface groups, determine that Interface status is the target second interface group of open state;
It determines the transmission path comprising target first interface group and target second interface group, is passed transmission path as target Defeated path.
In the embodiment of the present application, first network equipment can receive the BFD message of second network equipment transmission, if multiple Current transmission path corresponding first in the Interface status of first interface group, between first network equipment and second network equipment The Interface status of interface group is in off state, then according to Interface status in multiple first interface groups be open state other first Interface group determines object transmission path, and sends data to second network equipment by object transmission path.In this way, the first net The BFD message that network equipment can be sent according to second network equipment, determines between first network equipment and second network equipment The first interface group failure of second network equipment on current transmission path, and pass through other transmission paths to second network equipment It sends data and improves the reliability of network communication to prevent loss of data.
Based on the same technical idea, the embodiment of the present application also provides a kind of network equipment (the first nets i.e. hereinafter Network equipment), as shown in fig. 7, comprises processor 701, communication interface 702, memory 703 and communication bus 704, wherein processing Device 701, communication interface 702, memory 703 complete mutual communication by communication bus 704,
Memory 703, for storing computer program;
Processor 701 when for executing the program stored on memory 703, realizes following method and step:
Receive the first two-way converting testing mechanism BFD message that second network equipment is sent, the first BFD message In carry the Interface status of the multiple first interface group;
If in the Interface status of the multiple first interface group, the first network equipment and second network equipment Between the Interface status of the corresponding first interface group in current transmission path be in off state, then according to the multiple first interface Interface status is other first interface groups of open state in group, determines object transmission path, and pass through the object transmission road Radial second network equipment sends data.
Optionally, the first network equipment is connect by multiple second interface groups with the multiple interchanger respectively, institute State method further include:
For each second interface group, the Interface status for the physical interface that the second interface group includes is obtained;
According to the Interface status for the physical interface that the second interface group includes, the Interface status of the second interface group is determined;
The 2nd BFD message is sent to second network equipment, carries the multiple second in the 2nd BFD message The Interface status of interface group transmits so that second network equipment is determined according to the Interface status of the multiple second interface group Path.
Optionally, the Interface status of the physical interface for including according to the second interface group, determines the second interface group Interface status, comprising:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface The Interface status of group is in off state;
If there are the Interface status of at least one physical interface in the physical interface that the second interface group includes to open State, it is determined that the Interface status of the second interface group is open state.
Optionally, it is described according to Interface status in the multiple first interface group be open state other first interfaces Group determines object transmission path, comprising:
In the multiple first interface group, determine that Interface status is the target first interface group of open state, and in institute It states in multiple second interface groups, determines that Interface status is the target second interface group of open state;
The transmission path comprising the target first interface group and the target second interface group is determined, by the transmission road Diameter is as object transmission path.
The communication bus that the above-mentioned network equipment is mentioned can be Peripheral Component Interconnect standard (English: Peripheral Component Interconnect, referred to as: PCI) bus or expanding the industrial standard structure (English: Extended Industry Standard Architecture, referred to as: EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in figure convenient for indicating, it is not intended that an only bus or a type of total Line.
Communication interface is for the communication between the above-mentioned network equipment and other equipment.
Memory may include random access memory (English: Random Access Memory, abbreviation: RAM), can also To include nonvolatile memory (English: Non-Volatile Memory, abbreviation: NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (English: Central Processing Unit, referred to as: CPU), network processing unit (English: Network Processor, referred to as: NP) etc.;It can also be digital signal Processor (English: Digital Signal Processing, abbreviation: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), field programmable gate array (English: Field- Programmable Gate Array, referred to as: FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer readable storage medium, the meters Computer program is stored in calculation machine readable storage medium storing program for executing, the computer program realizes above-mentioned data when being executed by processor The method of transmission.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer program product comprising instruction, When run on a computer, so that the method that computer executes above-mentioned data transmission.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (10)

1. a kind of method of data transmission, which is characterized in that the method is applied to first network equipment, and the first network is set Back-up is not connect with multiple switch, and each interchanger is connect with the first interface group of second network equipment, which comprises
The first two-way converting testing mechanism BFD message that second network equipment is sent is received, is taken in the first BFD message The Interface status of all first interface groups with second network equipment;
If in the Interface status of all first interface groups, the last first network equipment is set with second network The Interface status that the corresponding first interface group of transmission path of data is transmitted between standby is in off state, then according to described all the Interface status is other first interface groups of open state in one interface group, determines object transmission path, and pass through the target Transmission path sends data to second network equipment.
2. the method according to claim 1, wherein the first network equipment pass through respectively second interface group with Each interchanger connection, the method also includes:
For each second interface group, the Interface status for the physical interface that the second interface group includes is obtained;
According to the Interface status for the physical interface that the second interface group includes, the Interface status of the second interface group is determined;
The 2nd BFD message is sent to second network equipment, carries the first network equipment in the 2nd BFD message All second interface groups Interface status so that interface shape of second network equipment according to all second interface groups State determines transmission path.
3. according to the method described in claim 2, it is characterized in that, the physical interface for including according to the second interface group Interface status determines the Interface status of the second interface group, comprising:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface group Interface status is in off state;
If in the physical interface that the second interface group includes there are the Interface status of at least one physical interface be open state, The Interface status for then determining the second interface group is open state.
4. according to the method described in claim 2, it is characterized in that, described according to Interface status in all first interface groups For other first interface groups of open state, object transmission path is determined, comprising:
In all first interface groups, determine that Interface status is the target first interface group of open state, and in the institute Have in second interface group, determines that Interface status is the target second interface group of open state;
It determines the transmission path comprising the target first interface group and the target second interface group, the transmission path is made For object transmission path.
5. a kind of device of data transmission, which is characterized in that described device is applied to first network equipment, and the first network is set Back-up is not connect with multiple switch, and each interchanger is connect with the first interface group of second network equipment, and described device includes:
Receiving module, the first two-way converting testing mechanism BFD message sent for receiving second network equipment, described the The Interface status of the multiple first interface group is carried in one BFD message;
First sending module, if in Interface status for the multiple first interface group, the first network equipment and institute The Interface status for stating the corresponding first interface group in the current transmission path between second network equipment is in off state, then according to institute Other first interface groups that Interface status in multiple first interface groups is open state are stated, determine object transmission path, and pass through The object transmission path sends data to second network equipment.
6. device according to claim 5, which is characterized in that the first network equipment passes through multiple second interfaces respectively Group is connect with the multiple interchanger, described device further include:
Module is obtained, for being directed to each second interface group, obtains the Interface status for the physical interface that the second interface group includes;
Determining module, the Interface status of the physical interface for including according to the second interface group, determines the second interface group Interface status;
Second sending module carries in the 2nd BFD message for sending the 2nd BFD message to second network equipment There is the Interface status of the multiple second interface group, so that second network equipment the connecing according to the multiple second interface group Mouth state determines transmission path.
7. device according to claim 6, which is characterized in that the determining module is specifically used for:
If the Interface status for the physical interface that the second interface group includes is in off state, it is determined that the second interface group Interface status is in off state;
If in the physical interface that the second interface group includes there are the Interface status of at least one physical interface be open state, The Interface status for then determining the second interface group is open state.
8. device according to claim 6, which is characterized in that first sending module is specifically used for:
In the multiple first interface group, determine that Interface status is the target first interface group of open state, and described more In a second interface group, determine that Interface status is the target second interface group of open state;
It determines the transmission path comprising the target first interface group and the target second interface group, the transmission path is made For object transmission path.
9. a kind of network equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-4.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-4 any method and step when the computer program is executed by processor.
CN201910222615.1A 2019-03-22 2019-03-22 Data transmission method and device Active CN109889411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910222615.1A CN109889411B (en) 2019-03-22 2019-03-22 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910222615.1A CN109889411B (en) 2019-03-22 2019-03-22 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN109889411A true CN109889411A (en) 2019-06-14
CN109889411B CN109889411B (en) 2020-09-11

Family

ID=66933713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910222615.1A Active CN109889411B (en) 2019-03-22 2019-03-22 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN109889411B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274050A (en) * 2020-01-19 2020-06-12 深圳华锐金融技术股份有限公司 Service data forwarding method and device, computer equipment and storage medium
CN112564931A (en) * 2019-09-25 2021-03-26 华为技术有限公司 Fault processing method, device and storage medium
CN113347166A (en) * 2021-05-24 2021-09-03 广西电网有限责任公司 Method, device and system for preventing safety risk of optical transmission equipment of power grid
WO2022095571A1 (en) * 2020-11-03 2022-05-12 中兴通讯股份有限公司 Message forwarding method and device, and computer readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751191B1 (en) * 1999-06-29 2004-06-15 Cisco Technology, Inc. Load sharing and redundancy scheme
CN101079759A (en) * 2007-07-24 2007-11-28 杭州华三通信技术有限公司 Distributed bidirectional forwarding detection method and device
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN101888333A (en) * 2009-05-13 2010-11-17 阿瓦亚公司 Be used in the Forwarding plane of network element, keeping the method and apparatus of Port State Table
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device
CN103401754A (en) * 2013-07-30 2013-11-20 杭州华三通信技术有限公司 Stack link establishing method, equipment and system
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN104125153A (en) * 2014-08-12 2014-10-29 华为技术有限公司 Network topology discovery method and device
CN106130821A (en) * 2016-07-14 2016-11-16 杭州华三通信技术有限公司 The sending method of a kind of detection messages and device
CN106559280A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and device
CN107277058A (en) * 2017-08-07 2017-10-20 南京南瑞集团公司 A kind of interface authentication method and system based on BFD agreements
CN108616426A (en) * 2018-05-10 2018-10-02 瑞斯康达科技发展股份有限公司 A kind of loop network and business datum retransmission method
CN109194547A (en) * 2018-09-29 2019-01-11 新华三技术有限公司 Message transmitting method, device, local device and readable storage medium storing program for executing

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751191B1 (en) * 1999-06-29 2004-06-15 Cisco Technology, Inc. Load sharing and redundancy scheme
CN101079759A (en) * 2007-07-24 2007-11-28 杭州华三通信技术有限公司 Distributed bidirectional forwarding detection method and device
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN101888333A (en) * 2009-05-13 2010-11-17 阿瓦亚公司 Be used in the Forwarding plane of network element, keeping the method and apparatus of Port State Table
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device
CN103401754A (en) * 2013-07-30 2013-11-20 杭州华三通信技术有限公司 Stack link establishing method, equipment and system
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN104125153A (en) * 2014-08-12 2014-10-29 华为技术有限公司 Network topology discovery method and device
CN106559280A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and device
CN106130821A (en) * 2016-07-14 2016-11-16 杭州华三通信技术有限公司 The sending method of a kind of detection messages and device
CN107277058A (en) * 2017-08-07 2017-10-20 南京南瑞集团公司 A kind of interface authentication method and system based on BFD agreements
CN108616426A (en) * 2018-05-10 2018-10-02 瑞斯康达科技发展股份有限公司 A kind of loop network and business datum retransmission method
CN109194547A (en) * 2018-09-29 2019-01-11 新华三技术有限公司 Message transmitting method, device, local device and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
华为,: ""BFD技术白皮书"", 《WWW.DOC88.COM/P-5485991396407.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564931A (en) * 2019-09-25 2021-03-26 华为技术有限公司 Fault processing method, device and storage medium
CN112564931B (en) * 2019-09-25 2022-08-19 华为技术有限公司 Fault processing method, device and storage medium
CN111274050A (en) * 2020-01-19 2020-06-12 深圳华锐金融技术股份有限公司 Service data forwarding method and device, computer equipment and storage medium
CN111274050B (en) * 2020-01-19 2024-04-30 深圳华锐分布式技术股份有限公司 Service data forwarding method, device, computer equipment and storage medium
WO2022095571A1 (en) * 2020-11-03 2022-05-12 中兴通讯股份有限公司 Message forwarding method and device, and computer readable storage medium
CN113347166A (en) * 2021-05-24 2021-09-03 广西电网有限责任公司 Method, device and system for preventing safety risk of optical transmission equipment of power grid

Also Published As

Publication number Publication date
CN109889411B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN109889411A (en) A kind of method and device of data transmission
US7391719B2 (en) Redundant network interface for ethernet devices
CN110166356A (en) Send the method and the network equipment of message
US20090249115A1 (en) Method and system for dynamic link failover management
CN108123824A (en) A kind of network fault detecting method and device
JP2004062535A (en) Method of dealing with failure for multiprocessor system, multiprocessor system and node
CN109088818A (en) A kind of method and device of equipment linkage switching
TW200907701A (en) Fault recovery on a parallel computer system with a torus network
CN104598341A (en) Approach and system for determining a location of failure between interconnects/controller
CN109586959A (en) A kind of method and device of fault detection
CN104283780A (en) Method and device for establishing data transmission route
CN105379201A (en) Path switching method and device
CN112015689B (en) Method, system and device for switching serial port output paths and switch
CN202455375U (en) Expandable real-time ground test-launch-control general control network system
CN114650254A (en) Method and device for determining service path and computer readable storage medium
CN114371912A (en) Virtual network management method of data center and data center system
US20180351784A1 (en) Defect detection in ip/mpls network tunnels
CN105991315A (en) Link protection method applied to SDN (software defined network), switching device and network controller
US20140269265A1 (en) Failover procedure for networks
CN107547373A (en) A kind of message forwarding method, device, equipment and machinable medium
CN110022236A (en) A kind of message forwarding method and device
CN104348737B (en) The transmission method and interchanger of a kind of multicast message
Ghiribaldi et al. System-level infrastructure for boot-time testing and configuration of networks-on-chip with programmable routing logic
US10164856B2 (en) Reconciliation of asymmetric topology in a clustered environment
CN109450765A (en) A kind of collection method and device of topology information

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