CN108768849A - Message processing method and device - Google Patents
Message processing method and device Download PDFInfo
- Publication number
- CN108768849A CN108768849A CN201810638364.0A CN201810638364A CN108768849A CN 108768849 A CN108768849 A CN 108768849A CN 201810638364 A CN201810638364 A CN 201810638364A CN 108768849 A CN108768849 A CN 108768849A
- Authority
- CN
- China
- Prior art keywords
- oam
- network equipment
- identification information
- type
- response messages
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of message processing method and devices, including:Receive the first operation management maintainance OAM response messages, first OAM response messages include type of message identification information, and type of message identification information is used to characterize the response message that the first OAM response messages are the OAM request messages that the network equipment in cross-equipment aggregation group is sent;According to type of message identification information, the first OAM response messages are replicated;The type of message identification information for including by the first OAM response messages of duplication is deleted, and the 2nd OAM response messages are obtained;2nd OAM response messages are sent to second network equipment, second network equipment is the network equipment in addition to first network equipment in cross-equipment aggregation group.The message processing method and device provided according to embodiments of the present invention, after capable of ensureing that any network equipment in cross-equipment aggregation group sends out OAM request messages, the response message for the OAM request messages can be received, therefore the quality of service of the OAM business of the network equipment can be improved.
Description
Technical field
The present invention relates to network technique field more particularly to a kind of message processing methods and device.
Background technology
Cross-equipment aggregation group (English:Multi-chassis Link Aggregation Group, referred to as:MLAG it is) one
Kind realizes the mechanism of striding equipment link aggregation, can two network equipments be carried out striding equipment link aggregations, to improve link
Reliability.
Fig. 1 shows a kind of schematic network structure of MLAG networkings of the present invention.As shown in Figure 1, VTEP (full name in English:
VXLAN Tunnel End Point, Chinese:VXLAN endpoint of a tunnel) 1, VTEP2 and VTEP3 be VXLAN (full name in English:
Virtual Extensible LAN, Chinese:It is empty like extension LAN) access side device in network, wherein cross-equipment aggregation
Group includes VTEP1 and VTEP2, and VTEP1 is connected by peer link with VTEP2 and carried out polymerization negotiation.VM (full name in English:
Virtual Machine, Chinese:Virtual machine) more than 1 ownership access VTEP1 and VTEP2, VM2 access VTEP3.
If VTEP1 according to message configuration-direct input by user, generates the OAM for testing communication link performance between VM
(English:Operation Administration and Maintenance, Chinese:Operation management maintainance) request message (example
Such as, the Internet packets survey meter (English:Packet Internet Groper, referred to as:Ping) data message, the ping datagrams
Text is testing whether VM1 is connected to VM2), the source MAC (full name in English of the ping data messages:Media Access
Control, Chinese:Hardware address) MAC Address that address is VM1, target MAC (Media Access Control) address is the MAC Address of VM2, and by the ping
Data message is sent to VTEP3 after carrying out VXLAN encapsulation.
After VTEP3 receives the ping data messages after encapsulation, according to the MAC Address of the VM1 carried in ping data messages
Ping response data messages are sent to the cross-equipment aggregation group, at this point, the ping response datas message may be sent to
There is the case where VTEP1 does not receive above-mentioned ping response datas message in VTEP2 so that for testing communication link between VM
The OAM service fails of energy.
Invention content
In view of this, the present invention proposes a kind of message processing method and device, can ensure in cross-equipment aggregation group
After any network equipment sends out OAM request messages, the response message for the OAM request messages can be received, therefore can
To improve the quality of service of the OAM business of the network equipment.
In a first aspect, an embodiment of the present invention provides a kind of message processing method, the method is applied to first network
Equipment, the first network equipment are any network equipment in cross-equipment aggregation group, the method includes:
The first operation management maintainance OAM response messages are received, the first OAM response messages include type of message mark letter
Breath, it is the network in the cross-equipment aggregation group that the type of message identification information, which is used to characterize the first OAM response messages,
The response message for the OAM request messages that equipment is sent;
According to the type of message identification information, the first OAM response messages are replicated;
The type of message identification information for including by the first OAM response messages of duplication is deleted, and the 2nd OAM sound is obtained
Answer message;
The 2nd OAM response messages are sent to second network equipment, second network equipment is the striding equipment
The network equipment in aggregation group in addition to the first network equipment.
With reference to first aspect, in the first possible implementation, type of message identification information is also for characterizing net
The information of network equipment identities attribute;
It is described to further include before replicating the first OAM response messages according to the type of message identification information:
Determine the network equipment identity attribute of the type of message identification information characterization and working as the first network equipment
Whether preceding identity attribute matches;
If mismatching, according to the type of message identification information, the first OAM response messages are replicated.
With reference to first aspect, in second of possible realization method, the method further includes:
Receive message configuration-direct input by user;
According to the message configuration-direct, OAM request messages are generated, the OAM request messages include the type of message
Identification information;
The OAM request messages are sent to the third network equipment so that the third network equipment to described across setting
Standby aggregation group transmission includes the OAM response messages of the type of message identification information.
In second aspect, an embodiment of the present invention provides a kind of message processing methods, are applied to first network equipment, described
Method includes:
OAM request messages are received, the OAM request messages include type of message identification information;
According to the type of message identification information, determine second network equipment for sending the OAM request messages be in
The network equipment in cross-equipment aggregation group;
The first OAM response messages are sent, the first OAM response messages include the type of message identification information, are used for
When the network equipment for making to receive the first OAM response messages is the network equipment in the cross-equipment aggregation group, institute
The network equipment is stated according to the type of message identification information, after handling the first OAM response messages, is obtained and in institute
It states cross-equipment aggregation group and forwards the 2nd OAM response messages.
In conjunction with second aspect, in the first possible implementation, type of message identification information is for characterizing network
The information of equipment identities attribute;
The type of message identification information be used for make first network equipment first network equipment current identity attribute with
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information,
After handling the first OAM response messages, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
In the third aspect, an embodiment of the present invention provides a kind of message process device, described device is applied to first network
Equipment, the first network equipment are any network equipment in cross-equipment aggregation group, and described device includes:
First receiving module, for receiving the first operation management maintainance OAM response messages, the first OAM response messages
Including type of message identification information, the type of message identification information for characterize the first OAM response messages be it is described across
The response message for the OAM request messages that the network equipment in device aggregation group is sent;
Replication module, for according to the type of message identification information, replicating the first OAM response messages;
Removing module, the type of message identification information for including by the first OAM response messages replicated are deleted,
Obtain the 2nd OAM response messages;
First sending module, for the 2nd OAM response messages to be sent to second network equipment, second network
Equipment is the network equipment in addition to the first network equipment in the cross-equipment aggregation group.
In conjunction with the third aspect, in the first possible implementation, the type of message identification information is also for table
Levy the information of network equipment identity attribute;
Described device further includes matching module, is used for:
Determine the network equipment identity attribute of the type of message identification information characterization and working as the first network equipment
Whether preceding identity attribute matches;
If mismatching, according to the type of message identification information, the first OAM response messages are replicated.
In conjunction with the third aspect, in second of possible realization method, described device further includes:
Second receiving module, for receiving message configuration-direct input by user;
Generation module, for according to the message configuration-direct, generating OAM request messages, the OAM request messages include
The type of message identification information;
Second sending module, for the OAM request messages to be sent to the third network equipment, so that the third net
Network equipment to the cross-equipment aggregation group send include the type of message identification information OAM response messages.
In fourth aspect, an embodiment of the present invention provides a kind of message process devices, are applied to first network equipment, described
Device includes:
Receiving module, for receiving OAM request messages, the OAM request messages include type of message identification information;
Determining module, for according to the type of message identification information, determining the second net for sending the OAM request messages
Network equipment is the network equipment in cross-equipment aggregation group;
Sending module, for sending the first OAM response messages, the first OAM response messages include the type of message
Identification information, the network equipment for making to receive the first OAM response messages is in the cross-equipment aggregation group
When the network equipment, the network equipment is handled the first OAM response messages according to the type of message identification information
Afterwards, it obtains and forwards the 2nd OAM response messages in the cross-equipment aggregation group.
In conjunction with fourth aspect, in the first possible implementation, the type of message identification information is for characterizing
The information of network equipment identity attribute;
The type of message identification information be used for make first network equipment first network equipment current identity attribute with
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information,
After handling the first OAM response messages, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
According to another aspect of the present invention, a kind of message process device is provided, including:Processor;It is handled for storage
The memory of device executable instruction;Wherein, the processor is configured as executing the above method.
According to another aspect of the present invention, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein the computer program instructions realize the above method when being executed by processor.
Therefore, by applying message processing method provided in an embodiment of the present invention and device, first network equipment to receive the
After one OAM response messages, the first OAM can be replicated according to the type of message identification information that the first OAM response messages include
Response message, and the type of message identification information in the first OAM response messages of the duplication is deleted, obtain the 2nd OAM response reports
Text, and the 2nd OAM response messages are sent to second network equipment, second network equipment are in cross-equipment aggregation group except the
The network equipment outside one network equipment.So, it is ensured that any network equipment in cross-equipment aggregation group, which sends out OAM, asks
After seeking message, the response message for the OAM request messages can be received, therefore can not be connect to avoid due to the network equipment
The problem of receiving OAM service fails caused by OAM response messages can improve the quality of service of the OAM business of the network equipment.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect
It is clear.
Description of the drawings
Including in the description and the attached drawing of a part for constitution instruction and specification together illustrate the present invention's
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows a kind of schematic network structure of MLAG networkings of the present invention;
Fig. 2 shows the flow charts of message processing method according to an embodiment of the invention;
Fig. 3 shows the flow chart of message processing method according to an embodiment of the invention;
Fig. 4 shows the flow chart of message processing method according to an embodiment of the invention;
Fig. 5 shows a kind of structural schematic diagram of illustrative first OAM response messages of the present invention;
Fig. 6 shows a kind of structural schematic diagram of illustrative first OAM response messages of the present invention
Fig. 7 shows the flow chart of message processing method according to an embodiment of the invention.
Fig. 8 shows the structure diagram of message process device according to an embodiment of the invention;
Fig. 9 shows the structure diagram of message process device according to an embodiment of the invention;
Figure 10 shows the structure diagram of message process device according to an embodiment of the invention;
Figure 11 is a kind of hardware block diagram of message process device shown according to an exemplary embodiment.
Specific implementation mode
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Reference numeral indicate functionally the same or similar element.Although the various aspects of embodiment are shown in the accompanying drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific implementation mode below.
It will be appreciated by those skilled in the art that without certain details, the present invention can equally be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the present invention.
In order to solve in MLAG networkings, VTEP1 is generated and is sent out to VTEP3 for testing VM1 and VM2 the embodiment of the present invention
Between communication link performance OAM request messages after, VTEP3 feedback OAM response messages received by VTEP2, lead to VTEP1
OAM service fails the problem of.
In the embodiment of the present invention, VTEP1 adds type of message identification information in the OAM request messages sent out, so that
VTEP3 adds the type of message mark when generating the OAM response messages for above-mentioned OAM request messages in OAM response messages
Know information, so that after VTEP2 receives the OAM response messages, OAM response reports are replicated according to the message class identification information
Text, and the OAM response messages for sending the duplication are responded to VTEP1 so that VTEP1 can receive the OAM that VTEP3 is sent
Message, and determine according to the OAM response messages performance of the communication link between VM1 and VM2.
Fig. 2 shows the flow charts of message processing method according to an embodiment of the invention.This method is applied to first network
Equipment, the first network equipment is any network equipment in cross-equipment aggregation group, as shown in Fig. 2, this method includes following
Step.
Step 201 receives the first OAM response messages, and the first OAM response messages include type of message identification information,
It is the network equipment in the cross-equipment aggregation group that the type of message identification information, which is used to characterize the first OAM response messages,
The response message of the OAM request messages of transmission.
Above-mentioned first OAM response messages are that any network equipment that the third network equipment receives in cross-equipment aggregation group is sent
OAM request messages after, the response message for the OAM request messages of feedback.First OAM response messages include message class
Type identification information, the type of message identification information are in cross-equipment aggregation group for characterizing the first OAM response messages
The response message for the OAM request messages that the network equipment is sent.
Step 202, according to the type of message identification information, replicate the first OAM response messages.
The above-mentioned type of message identification information that first network equipment includes according to the first OAM response messages, replicate this first
OAM response messages, the first OAM response messages which obtains are identical as the first OAM response messages.
Step 203, the type of message identification information for including by the first OAM response messages of duplication are deleted, and are obtained
2nd OAM response messages.
After first network equipment deletes the type of message identification information in the first OAM response messages of above-mentioned duplication, obtain
To the 2nd OAM response messages.
The 2nd OAM response messages are sent to second network equipment by step 204, and second network equipment is institute
State the network equipment in addition to the first network equipment in cross-equipment aggregation group.
2nd OAM response messages are sent to second network equipment in cross-equipment aggregation group by first network equipment, this
Two network equipments are the network equipment in addition to the first network equipment in cross-equipment aggregation group.
It is understood that in embodiments of the present invention, first network equipment is connected by peer link to the second network
Equipment sends the 2nd OAM response messages.
To make those skilled in the art be better understood from the embodiment of the present invention, below by way of a specific example to the present invention
Embodiment is illustrated.
In one example, referring to Fig.1, it is assumed that the VTEP2 in Fig. 1 is first network equipment.VTEP2 receives VTEP3
The ping back messages (the first OAM response messages) of transmission, which includes type of message identification information.VTEP2
The ping back messages, and the message class in the ping back messages for deleting the duplication are replicated according to type of message identification information
After type identification information, the ping back messages for deleting type of message identification information are sent to VTEP1.
So, even if being sent if the network equipment of ping data messages is VTEP1 VTEP1 to VTEP3 can receive
The ping back messages fed back to VTEP3, and according to the ping back messages determine between VM1 and VM2 can ping it is logical.
Therefore, by applying message processing method provided in an embodiment of the present invention, first network equipment to receive the first OAM and ring
After answering message, the first OAM response reports can be replicated according to the type of message identification information that the first OAM response messages include
Text, and the type of message identification information in the first OAM response messages of the duplication is deleted, the 2nd OAM response messages are obtained, and will
2nd OAM response messages are sent to second network equipment, which is that first network is removed in cross-equipment aggregation group
The network equipment outside equipment.
So, it is ensured that, can be with after any network equipment in cross-equipment aggregation group sends out OAM request messages
The OAM response messages for the OAM request messages are received, therefore can not receive OAM responses to avoid due to the network equipment
Caused by message the problem of OAM service fails, the quality of service of the OAM business of the network equipment can be improved.
In another embodiment, type of message identification information is also the information for characterizing network equipment identity attribute,
Network equipment identity of the first network equipment in the current identity attribute and type of message identification information characterization of first network equipment
When attribute mismatches, the OAM request messages corresponding to the first OAM response messages are determined, not first network equipment is sent out,
Therefore the first OAM response messages of first network device replication, and delete the type of message mark letter in the first OAM response messages
Breath obtains the 2nd OAM response messages, and sends the 2nd OAM response messages to second network equipment.Below by way of shown in Fig. 3
The message processing method of the embodiment of the present invention is described in detail in the flow chart of message processing method.
Specifically, message processing method shown in Fig. 3 includes the following steps.
Step 301 receives the first OAM response messages, and the first OAM response messages include type of message identification information,
It is the network equipment in the cross-equipment aggregation group that the type of message identification information, which is used to characterize the first OAM response messages,
The response message of the OAM request messages of transmission.
It should be noted that step 301, step 304 and step 305 are implemented with the above method respectively in the embodiment of the present invention
Step 201, step 203 and step 204 are similar in example, and details are not described herein for the embodiment of the present invention.
Step 302, the network equipment identity attribute for determining the type of message identification information characterization and the first network
Whether the current identity attribute of equipment matches.
Striding equipment networking includes master network device and the standby network equipment.As an example it is assumed that first network equipment is worked as
Preceding identity attribute is master network device, is that standby network is set in the network equipment identity attribute of above-mentioned type of message identification information characterization
When standby, the current identity attribute of first network equipment and the network equipment identity attribute of type of message identification information characterization are not
Match;Alternatively, when the network equipment identity attribute of above-mentioned type of message identification information characterization is master network device, first network is set
Standby current identity attribute is matched with the network equipment identity attribute that type of message identification information characterizes.
If step 303 mismatches, according to the type of message identification information, the first OAM response messages are replicated.
If the network equipment identity category of the current identity attribute of first network equipment and type of message identification information characterization
Property mismatch, then first network equipment can replicate the first OAM response messages, and delete the duplication the first OAM response report
The type of message identification information of text, after obtaining the 2nd OAM response messages, is sent to the second network by the 2nd OAM response messages and sets
It is standby.
If the network equipment identity category of the current identity attribute of first network equipment and type of message identification information characterization
Property matching, then first network equipment will directly can be sent on the first OAM response messages to corresponding OAM tasks.
Step 304, the type of message identification information for including by the first OAM response messages of duplication are deleted, and are obtained
2nd OAM response messages.
The 2nd OAM response messages are sent to second network equipment by step 305, and second network equipment is institute
State the network equipment in addition to the first network equipment in cross-equipment aggregation group.
So, using message processing method provided in an embodiment of the present invention, first network equipment receives the first OAM and rings
After answering message, the network equipment identity attribute and the first net of the type of message identification information characterization of the first OAM response messages are judged
Whether the current identity attribute of network equipment matches.In the current identity attribute and type of message identification information table of first network equipment
When the network equipment identity attribute of sign mismatches, the first OAM response messages are replicated, and delete the first OAM responses of the duplication
Type of message identification information in message obtains the 2nd OAM response messages, and sends the 2nd OAM response messages to the second network
Equipment, so that having the network equipment of the OAM tasks to match with the 2nd OAM response messages can in second network equipment
The 2nd OAM response messages are obtained, and then improve the quality of service of the OAM business of network equipment.
In another embodiment, first network equipment to the third network equipment when sending OAM request messages, Ke Yi
Type of message identification information is added in the OAM request messages, so that the third network equipment is sent out to the cross-equipment aggregation group
When sending corresponding OAM response messages, the type of message identification information is added in the OAM response messages.Shown in Fig. 4
Message processing method flow chart, message processing method provided in an embodiment of the present invention is described in detail.
Specifically, message processing method shown in Fig. 4 includes the following steps:
Step 401 receives message configuration-direct input by user.
For example, user can by client (such as:The mode of order line) the above-mentioned message configuration-direct of input, it should
Message configuration-direct is used to indicate first network equipment and creates and execute OAM tasks, and generates the corresponding OAM of the OAM tasks and ask
Seek message.
Step 402, according to the message configuration-direct, generate OAM request messages, the OAM request messages include described
Type of message identification information.
First network equipment creates OAM tasks according to above-mentioned message configuration-direct, and generates the corresponding OAM of the OAM tasks
Request message, the OAM request messages include type of message identification information, and the type of message identification information is for identifying the OAM
Request message is the OAM request messages that the network equipment of cross-equipment aggregation group is sent.
Wherein, above-mentioned OAM request messages are the corresponding message of OAM tasks, such as:Ping messages, find ETH-CC messages,
Business connectivity verifies ETH-LB messages, and alarm inhibits AIS/RDI messages, and teleservice packet loss ETH-LM messages, end is arrived
Any one of terminal delay time ETH-DM messages.
Fig. 5 shows a kind of structural schematic diagram of illustrative first OAM response messages of the present invention;Fig. 6 shows this hair
A kind of structural schematic diagram of bright illustrative first OAM response messages.
In one possible implementation, it when master network device sends OAM request messages, is wrapped in the OAM request messages
Include the type of message that the network equipment identity attribute for characterizing the network equipment for sending the OAM request messages is master network device
Identification information (for example, the first field addition first identifier (M) on OAM request messages head, with reference to Fig. 5), receives the OAM and asks
It asks the third network equipment of message according to the first identifier (M) in the first field in the first OAM response messages, determines that the OAM is asked
It is the request message that the master network device in cross-equipment aggregation group is sent to seek message.
When the standby network equipment sends OAM request messages, which includes sending OAM requests for characterizing
The network equipment identity attribute of the network equipment of message is the type of message identification information of the standby network equipment (for example, being asked in OAM
The second field addition second identifier (S) of header, with reference to Fig. 6), receive the third network equipment root of the OAM request messages
According to the second identifier (S) in the second field in the first OAM response messages, determine that the OAM request messages are in cross-equipment aggregation group
The standby network equipment send request message.
The OAM request messages are sent to the third network equipment by step 403 so that the third network equipment to
The cross-equipment aggregation group transmission includes the OAM response messages of the type of message identification information.
First network equipment executes above-mentioned OAM tasks, and OAM request messages are sent to the third network equipment.Third network
After equipment receives OAM request messages, OAM response reports are generated according to the type of message identification information that OAM request messages include
Text, which includes above-mentioned type of message identification information, so that receiving the network equipment of the OAM response messages
The OAM response messages are replicated according to the type of message identification information, and send the OAM response messages after replicating to cross-equipment aggregation
Other network equipments in group can be with so that after any network equipment in cross-equipment aggregation group sends out OAM request messages
The response message for the OAM request messages is received, therefore the quality of service of the OAM business of network equipment can be improved.
To make those skilled in the art's to be better understood from the embodiment of the present invention, below by way of specific example to of the invention real
Example is applied to be illustrated.
In one example, as shown in Figure 1, VTEP1 is master network device in cross-equipment aggregation group, VTEP2 is standby network
Equipment.Assuming that VTEP1 is generated in response to message configuration-direct input by user comprising the message class for characterizing master network device
The OAM request messages (with reference to Fig. 5) of type identification information, VTEP1 sends the OAM request messages to VTEP3.
VTEP2 receives the OAM response messages for including type of message identification information of VTEP3 transmissions, due to type of message
The network equipment identity attribute of identification information characterization is master network device, different from the identity of VTEP2, therefore VTEP2 is replicated and is somebody's turn to do
OAM response messages, and after deleting the type of message identification information in the OAM response messages of the duplication, by the deletion type of message
The OAM response messages of identification information are sent to VTEP1.
It, will be on the OAM response messages after VTEP1 receives the OAM response messages of above-mentioned deletion type of message identification information
Send corresponding OAM tasks.
Assuming that VTEP2 in response to message configuration-direct input by user, generates the message class for including the standby network equipment of characterization
The OAM request messages (with reference to Fig. 6) of type identification information, VTEP2 sends the OAM request messages to VTEP3.
VTEP2 receives the OAM response messages for including type of message identification information of VTEP3 transmissions, due to type of message
The network equipment identity attribute of identification information characterization is the standby network equipment, identical as the identity of VTEP2, therefore VTEP2 is by the OAM
It is sent on response message to corresponding OAM tasks.
As it can be seen that using message processing method provided in an embodiment of the present invention, any network equipment in cross-equipment aggregation group
After sending out OAM request messages, the response message for the OAM request messages can be received, therefore OAM business can be improved
Quality of service.
Fig. 7 shows the flow chart of message processing method according to an embodiment of the invention.This method is applied to first network
Equipment, with reference to Fig. 7, the above method includes the following steps:
Step 701 receives OAM request messages, and the OAM request messages include type of message identification information.
With reference to above-described embodiment, the embodiment of the present invention is no longer superfluous herein for the generation of OAM request messages and transmission process
It states.
Step 702, according to the type of message identification information, determine that the second network for sending the OAM request messages is set
The standby network equipment in cross-equipment aggregation group.
After first network equipment receives OAM request messages, message class that first network equipment includes according to OAM request messages
Type identification information determines that second network equipment for sending the OAM request messages is the network equipment in cross-equipment aggregation group.
Meanwhile first network equipment also executes the OAM business indicated by the OAM request messages.
For example, the OAM request messages instruction OAM business be detect VM between link whether the ping business of unicom.At this point,
The MAC Address for the VM that first network equipment is carried according to internal layer message in OAM request messages, detects itself link between VM
Whether unicom.
Step 703 sends the first OAM response messages, and the first OAM response messages include the type of message mark letter
Breath, the network equipment for making to receive the first OAM response messages are that the network in the cross-equipment aggregation group is set
When standby, the network equipment is obtained according to the type of message identification information after handling the first OAM response messages
It arrives and forwards the 2nd OAM response messages in the cross-equipment aggregation group.
First network equipment generates and sends the first OAM response messages, and the first OAM response messages include the type of message
Identification information, so that any network equipment sent in the cross-equipment aggregation group of the OAM request messages receives the first OAM
After response message, is handled according to the first OAM response messages of type of message identification information pair, obtain the 2nd OAM response messages
And other network equipments into the cross-equipment aggregation group forward the 2nd OAM response messages.
Wherein, the processing procedure of the first OAM response messages of the network equipment pair of the first OAM response messages is received with reference to upper
Embodiment is stated, details are not described herein for the embodiment of the present invention.
Therefore, by applying message processing method provided in an embodiment of the present invention, first network equipment to receive OAM request reports
Wen Hou, it includes the of type of message identification information that can be generated according to type of message identification information that the OAM request messages include
One OAM response messages, and send the first OAM response messages so that receive the network equipments of the first OAM response messages according to
The first OAM response messages of type of message identification information pair are handled, and obtain the 2nd OAM response messages, and to the network equipment
Other network equipments in affiliated cross-equipment aggregation group forward the 2nd OAM response messages.
So, it is ensured that, can be with after any network equipment in cross-equipment aggregation group sends out OAM request messages
The response message for the OAM request messages is received, therefore the quality of service of OAM business can be improved.
In one possible implementation, type of message identification information is the letter for characterizing network equipment identity attribute
Breath.
The type of message identification information be used for make first network equipment first network equipment current identity attribute with
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information,
After handling the first OAM response messages, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
For example, first network equipment receive OAM request messages as shown in figure 5, OAM request messages the first field
For the first identifier (M) for characterizing master network device, then first field of the first network equipment in the first OAM response messages
Above-mentioned first identifier (M) is added, so that receiving the standby network equipment of the first OAM response messages according to the first of the first field the mark
Know (M), the first OAM response messages are handled after obtaining the 2nd OAM response messages, forwards the 2nd OAM response reports
Text.
Alternatively, the OAM request messages that first network equipment receives are as shown in fig. 6, the second field of OAM request messages is to use
In the second identifier (S) of the standby network equipment of characterization, then second field addition of the first network equipment in the first OAM response messages
Above-mentioned second identifier (S), so that receiving the master network device of the first OAM response messages according to the second identifier in the second field
(S), the first OAM response messages are handled after obtaining the 2nd OAM response messages, forwards the 2nd OAM response messages.
So, it using message processing method provided in an embodiment of the present invention, enables to appoint in cross-equipment aggregation group
The network equipment of one transmission OAM request messages can obtain corresponding OAM response messages, and then can improve the industry of OAM business
Business quality.
Fig. 8 shows the structure diagram of message process device according to an embodiment of the invention.Described device is applied to first
The network equipment, the first network equipment is any network equipment in cross-equipment aggregation group, as shown in figure 8, described device packet
It includes:
First receiving module 801, for receiving the first operation management maintainance OAM response messages, the first OAM responses report
Text includes type of message identification information, and the type of message identification information is described for characterizing the first OAM response messages
The response message for the OAM request messages that the network equipment in cross-equipment aggregation group is sent;
Replication module 802, for according to the type of message identification information, replicating the first OAM response messages;
Removing module 803, the type of message identification information for including by the first OAM response messages replicated are deleted
It removes, obtains the 2nd OAM response messages;
First sending module 804, for the 2nd OAM response messages to be sent to second network equipment, described second
The network equipment is the network equipment in addition to the first network equipment in the cross-equipment aggregation group.
Therefore, by applying message process device provided in an embodiment of the present invention, first network equipment to receive the first OAM and ring
After answering message, the first OAM response reports can be replicated according to the type of message identification information that the first OAM response messages include
Text, and the type of message identification information in the first OAM response messages of the duplication is deleted, the 2nd OAM response messages are obtained, and will
2nd OAM response messages are sent to second network equipment, which is that first network is removed in cross-equipment aggregation group
The network equipment outside equipment.
So, it is ensured that, can be with after any network equipment in cross-equipment aggregation group sends out OAM request messages
The response message for the OAM request messages is received, therefore can not receive OAM response messages to avoid due to the network equipment
The problem of caused OAM service fails, can improve the quality of service of the OAM business of the network equipment.
Fig. 9 shows the structure diagram of message process device according to an embodiment of the invention.Wherein, the first receiving module
901, replication module 902, removing module 903 and the first sending module 904 and the first receiving module 801 in above-described embodiment, multiple
Molding block 802, removing module 803 and the first sending module 804 are similar, and details are not described herein for the embodiment of the present invention.
In one possible implementation, the type of message identification information is also for characterizing network equipment identity category
The information of property;With reference to Fig. 9, above-mentioned apparatus further includes matching module 905, is used for:
Determine the network equipment identity attribute of the type of message identification information characterization and working as the first network equipment
Whether preceding identity attribute matches;
If mismatching, according to the type of message identification information, the first OAM response messages are replicated.
In one possible implementation, with reference to Fig. 9, above-mentioned apparatus further includes:
Second receiving module 906, for receiving message configuration-direct input by user;
Generation module 907, for according to the message configuration-direct, generating OAM request messages, the OAM request messages
Including the type of message identification information;
Second sending module 908, for the OAM request messages to be sent to the third network equipment, so that described
Three network equipments to the cross-equipment aggregation group send include the type of message identification information OAM response messages.
Figure 10 shows the structure diagram of message process device according to an embodiment of the invention.Described device is applied to first
The network equipment, as shown in Figure 10, which includes:
Receiving module 1001, for receiving OAM request messages, the OAM request messages include type of message identification information;
Determining module 1002 sends the of the OAM request messages for according to the type of message identification information, determining
Two network equipments are the network equipment in cross-equipment aggregation group;
Sending module 1003, for sending the first OAM response messages, the first OAM response messages include the message
Type identification information, the network equipment for making to receive the first OAM response messages is in the cross-equipment aggregation group
In the network equipment when, the network equipment carries out the first OAM response messages according to the type of message identification information
After processing, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
In one possible implementation, the type of message identification information is for characterizing network equipment identity attribute
Information;
The type of message identification information be used for make first network equipment first network equipment current identity attribute with
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information,
After handling the first OAM response messages, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
Therefore, by applying message process device provided in an embodiment of the present invention, first network equipment to receive OAM request reports
Wen Hou, it includes the of type of message identification information that can be generated according to type of message identification information that the OAM request messages include
One OAM response messages, and send the first OAM response messages so that receive the network equipments of the first OAM response messages according to
The first OAM response messages of type of message identification information pair are handled, and obtain the 2nd OAM response messages, and to the network equipment
Other network equipments in affiliated cross-equipment aggregation group forward the 2nd OAM response messages.
So, it is ensured that, can be with after any network equipment in cross-equipment aggregation group sends out OAM request messages
The response message for the OAM request messages is received, therefore the quality of service of OAM business can be improved.
Figure 11 is a kind of hardware block diagram of message process device shown according to an exemplary embodiment.Actually answering
In, which can be realized by server.Referring to Fig.1 1, the device 1300 may include processor 1301, be stored with machine can
The machine readable storage medium 1302 executed instruction.Processor 1301 can be via system bus with machine readable storage medium 1302
1303 communications.Also, processor 1301 passes through machine corresponding with Message processing logic in read machine readable storage medium storing program for executing 1302
Device executable instruction is to execute message processing method described above.
Machine readable storage medium 1302 referred to herein can be that any electronics, magnetism, optics or other physics are deposited
Storage device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
Random access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory,
Flash memory, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or class
As storage medium or combination thereof.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or this technology is made to lead
Other those of ordinary skill in domain can understand each embodiment disclosed herein.
Claims (10)
1. a kind of message processing method, which is characterized in that the method is applied to first network equipment, the first network equipment
For any network equipment in cross-equipment aggregation group, the method includes:
The first operation management maintainance OAM response messages are received, the first OAM response messages include type of message identification information,
It is the network equipment in the cross-equipment aggregation group that the type of message identification information, which is used to characterize the first OAM response messages,
The response message of the OAM request messages of transmission;
According to the type of message identification information, the first OAM response messages are replicated;
The type of message identification information for including by the first OAM response messages of duplication is deleted, and the 2nd OAM response reports are obtained
Text;
The 2nd OAM response messages are sent to second network equipment, second network equipment is the cross-equipment aggregation
The network equipment in group in addition to the first network equipment.
2. according to the method described in claim 1, it is characterized in that, the type of message identification information is also for characterizing network
The information of equipment identities attribute;
It is described to further include before replicating the first OAM response messages according to the type of message identification information:
Determine the network equipment identity attribute of type of message identification information characterization and the first network equipment works as predecessor
Whether part attribute matches;
If mismatching, according to the type of message identification information, the first OAM response messages are replicated.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
Receive message configuration-direct input by user;
According to the message configuration-direct, OAM request messages are generated, the OAM request messages include the type of message mark
Information;
The OAM request messages are sent to the third network equipment, so that the third network equipment is poly- to the striding equipment
It is combined the OAM response messages that transmission includes the type of message identification information.
4. a kind of message processing method, which is characterized in that it is applied to first network equipment, the method includes:
OAM request messages are received, the OAM request messages include type of message identification information;
According to the type of message identification information, determine that second network equipment for sending the OAM request messages is in across setting
The network equipment in standby aggregation group;
The first OAM response messages are sent, the first OAM response messages include the type of message identification information, are connect for making
When the network equipment for receiving the first OAM response messages is the network equipment in the cross-equipment aggregation group, the net
Network equipment is according to the type of message identification information, after handling the first OAM response messages, obtain and it is described across
Device aggregation group forwards the 2nd OAM response messages.
5. according to the method described in claim 4, it is characterized in that, the type of message identification information is to be set for characterizing network
The information of standby identity attribute;
The type of message identification information be used for make first network equipment first network equipment current identity attribute with it is described
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information, to institute
It states after the first OAM response messages are handled, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
6. a kind of message process device, which is characterized in that described device is applied to first network equipment, the first network equipment
For any network equipment in cross-equipment aggregation group, described device includes:
First receiving module, for receiving the first operation management maintainance OAM response messages, the first OAM response messages include
Type of message identification information, the type of message identification information are the striding equipment for characterizing the first OAM response messages
The response message for the OAM request messages that the network equipment in aggregation group is sent;
Replication module, for according to the type of message identification information, replicating the first OAM response messages;
Removing module, the type of message identification information for including by the first OAM response messages replicated are deleted, are obtained
2nd OAM response messages;
First sending module, for the 2nd OAM response messages to be sent to second network equipment, second network equipment
For the network equipment in the cross-equipment aggregation group in addition to the first network equipment.
7. device according to claim 6, which is characterized in that the type of message identification information is also for characterizing network
The information of equipment identities attribute;
Described device further includes matching module, is used for:
Determine the network equipment identity attribute of type of message identification information characterization and the first network equipment works as predecessor
Whether part attribute matches;
If mismatching, according to the type of message identification information, the first OAM response messages are replicated.
8. device according to claim 6, which is characterized in that described device further includes:
Second receiving module, for receiving message configuration-direct input by user;
Generation module, for according to the message configuration-direct, generating OAM request messages, the OAM request messages include described
Type of message identification information;
Second sending module, for the OAM request messages to be sent to the third network equipment, so that the third network is set
It is standby sent to the cross-equipment aggregation group include the type of message identification information OAM response messages.
9. a kind of message process device, which is characterized in that be applied to first network equipment, described device includes:
Receiving module, for receiving OAM request messages, the OAM request messages include type of message identification information;
Determining module, for according to the type of message identification information, determining that the second network for sending the OAM request messages is set
The standby network equipment in cross-equipment aggregation group;
Sending module, for sending the first OAM response messages, the first OAM response messages include the type of message mark
Information, the network equipment for making to receive the first OAM response messages is the network in the cross-equipment aggregation group
When equipment, the network equipment is according to the type of message identification information, after handling the first OAM response messages,
It obtains and forwards the 2nd OAM response messages in the cross-equipment aggregation group.
10. device according to claim 9, which is characterized in that the type of message identification information is for characterizing network
The information of equipment identities attribute;
The type of message identification information be used for make first network equipment first network equipment current identity attribute with it is described
When the network equipment identity attribute of type of message identification information characterization mismatches, according to the type of message identification information, to institute
It states after the first OAM response messages are handled, obtains and forward the 2nd OAM response messages in the cross-equipment aggregation group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810638364.0A CN108768849B (en) | 2018-06-20 | 2018-06-20 | Message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810638364.0A CN108768849B (en) | 2018-06-20 | 2018-06-20 | Message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108768849A true CN108768849A (en) | 2018-11-06 |
CN108768849B CN108768849B (en) | 2020-09-08 |
Family
ID=63979504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810638364.0A Active CN108768849B (en) | 2018-06-20 | 2018-06-20 | Message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108768849B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474530A (en) * | 2018-11-13 | 2019-03-15 | 新华三技术有限公司 | A kind of equipment detection method and device |
CN110233753A (en) * | 2019-05-29 | 2019-09-13 | 中国联合网络通信集团有限公司 | A kind of system and method for realizing operation management maintainance function |
CN110971445A (en) * | 2019-09-24 | 2020-04-07 | 华为技术有限公司 | Network OAM method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179506A (en) * | 2007-11-26 | 2008-05-14 | 中兴通讯股份有限公司 | Method for private network terminal to detect public network terminal |
CN103051541A (en) * | 2011-10-14 | 2013-04-17 | 中兴通讯股份有限公司 | Method of transmitting message in marked net, and ASR (Access Service Router) and ISR (Internet Service Router) |
US20140325387A1 (en) * | 2009-02-27 | 2014-10-30 | Blackberry Limited | Method and device to simplify message composition |
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN107071079A (en) * | 2017-03-07 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of private net terminal obtains the method and system of public network IP |
-
2018
- 2018-06-20 CN CN201810638364.0A patent/CN108768849B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179506A (en) * | 2007-11-26 | 2008-05-14 | 中兴通讯股份有限公司 | Method for private network terminal to detect public network terminal |
US20140325387A1 (en) * | 2009-02-27 | 2014-10-30 | Blackberry Limited | Method and device to simplify message composition |
CN103051541A (en) * | 2011-10-14 | 2013-04-17 | 中兴通讯股份有限公司 | Method of transmitting message in marked net, and ASR (Access Service Router) and ISR (Internet Service Router) |
CN105591982A (en) * | 2015-07-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
CN107071079A (en) * | 2017-03-07 | 2017-08-18 | 上海斐讯数据通信技术有限公司 | A kind of private net terminal obtains the method and system of public network IP |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474530A (en) * | 2018-11-13 | 2019-03-15 | 新华三技术有限公司 | A kind of equipment detection method and device |
CN110233753A (en) * | 2019-05-29 | 2019-09-13 | 中国联合网络通信集团有限公司 | A kind of system and method for realizing operation management maintainance function |
CN110971445A (en) * | 2019-09-24 | 2020-04-07 | 华为技术有限公司 | Network OAM method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108768849B (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11575592B2 (en) | Message processing method and apparatus, control-plane device, and computer storage medium | |
CN103026660B (en) | Network policy configuration method, management equipment and network management centre device | |
CN103118149B (en) | Communication control method between same tenant's server and the network equipment | |
CN107547242B (en) | The acquisition methods and device of VM configuration information | |
EP3099032A1 (en) | A load balancing method, device, system and computer storage medium | |
CN108768849A (en) | Message processing method and device | |
WO2019085975A1 (en) | Network topology display method and network management device | |
CN106921578A (en) | The generation method and device of a kind of forwarding-table item | |
CN110430116A (en) | Data forwarding method and device, edge device and readable storage medium storing program for executing | |
CN108337163B (en) | Method and apparatus for aggregating links | |
CN103207813B (en) | The method and apparatus for managing resource | |
WO2019001562A1 (en) | Model loading method and apparatus, storage medium, and computer device | |
CN114500633B (en) | Data forwarding method, related device, program product and data transmission system | |
CN109861869B (en) | Configuration file generation method and device | |
CN113839882A (en) | Message flow splitting method and device | |
CN111416732B (en) | Method and device for automatically configuring service for capacity expansion of network equipment in SDN | |
CN110691012B (en) | Message processing method and tester | |
US9729422B2 (en) | Trace feature across the network (depth and breadth)-wise | |
CN106559439B (en) | A kind of method for processing business and equipment | |
CN107493181B (en) | Indication method and device of virtual expansion port | |
US9172607B2 (en) | Transmitting of configuration items within a network | |
CN109634908A (en) | Data correlation method, data processing equipment and storage medium | |
CN109714208A (en) | A kind of equipment is included in method, storage medium and the electronic equipment of network management | |
CN111769992B (en) | Network data management method, cloud platform and storage medium | |
CN108667644A (en) | Configure the method and forwarding unit of ACL business |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230625 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |