CN108111432A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN108111432A
CN108111432A CN201711476340.1A CN201711476340A CN108111432A CN 108111432 A CN108111432 A CN 108111432A CN 201711476340 A CN201711476340 A CN 201711476340A CN 108111432 A CN108111432 A CN 108111432A
Authority
CN
China
Prior art keywords
data message
network equipment
message
tracking
information
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
CN201711476340.1A
Other languages
Chinese (zh)
Other versions
CN108111432B (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 CN201711476340.1A priority Critical patent/CN108111432B/en
Publication of CN108111432A publication Critical patent/CN108111432A/en
Application granted granted Critical
Publication of CN108111432B publication Critical patent/CN108111432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/36Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/628Queue scheduling characterised by scheduling criteria for service slots or service orders based on packet size, e.g. shortest packet first
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Abstract

The present embodiments relate to a kind of message forwarding method and device, including:Obtaining includes the first data message with interior telemetry network INT information fields and first flag;According to INT information fields, statistical information corresponding with INT information fields is obtained, and statistical information is stored in INT information fields, obtains the second data message;According to first flag, replication processes are carried out to the second data message, obtain the 3rd data message;Second data message is sent to software defined network SDN controllers, so that SDN controllers determine to be used for transmission the transmission path of data message according to the second data message;When the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to the next-hop network equipment of the network equipment, so that next-hop network equipment performs the 3rd data message the step identical with the network equipment.The message forwarding method and device that there is provided according to embodiments of the present invention can improve the treatment effeciency of SDN controllers.

Description

Message forwarding method and device
Technical field
The present invention relates to network technique field more particularly to a kind of message forwarding methods and device.
Background technology
Band network telemetering (English:Inband Network Telemetry, referred to as:INT) it is a kind of new network Management framework.The participation of the control plane of the network equipment can be not required in the network structure, only put down by the data of the network equipment Face is the state for collecting and reporting network.However, in software defined network (English:Software Defined Network, Referred to as:SDN in), except the collection to network state, the also demand there are longest path detection.
In the architecture model of INT, transmission link is formed between node device two-by-two.Multistage transmission link composition data Transmission path.In a transmission path, including INT first nodes, INT transfers hop node and INT tail nodes.INT first nodes (INT Source) i.e. source network device is responsible for specific data message addition INT heads and INT Monitoring instructions, to obtain INT reports Text.INT transfers hop node (INT Transit Hop) i.e. intermediary network device receives INT messages, performs above-mentioned Monitoring instruction. INT Transit Hop in INT messages (or end) add specify information.INT tail nodes (INT Sink) i.e. purpose network Equipment receives INT messages, by above-mentioned INT message up sending to SDN controllers, so that SDN controllers can carry out data traffic And the analysis in path.But if data plane has message dropping, INT Sink is caused not receive INT source The INT messages sent.SDN controllers can not realizing route monitoring, the architecture model of current INT lacks longest path detection Function.
Based on the above problem, SDN controllers can indicate above-mentioned INT equipment (INT source, INT Transit Hop, And INT Sink) INT messages are sent on SDN controllers.The equipment for the last one above-mentioned INT message that SDN controllers receive The farthest equipment that data message can transmit is regarded as, longest path is determined with this.
But since the data message of data plane is numerous, a large amount of INT messages sent in said program in INT equipment can account for With the substantial amounts of resource of SDN controllers, and then the treatment effeciency of SDN controllers can be influenced.
The content of the invention
In view of this, the present invention proposes a kind of message forwarding method and device, to reduce the network equipment to SDN controllers The message amount of upper hair reduces the resource occupation to SDN controllers, improves the treatment effeciency of SDN controllers.
In a first aspect, the present invention provides a kind of message forwarding method, applied to the network equipment, the described method includes: The first data message is obtained, first data message is included with interior telemetry network INT information fields and first flag;
According to the INT information fields, statistical information corresponding with the INT information fields is obtained, and by the statistics Information is stored in the INT information fields, obtains the second data message;
According to the first flag, replication processes are carried out to second data message, obtain the 3rd data message;
Second data message is sent to software defined network SDN controllers, so that the SDN controllers are according to institute The second data message is stated, determines to be used for transmission the transmission path of data message;
When the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to the network and is set Standby next-hop network equipment, so that the next-hop network equipment performs and the network equipment the 3rd data message Identical step.
With reference to first aspect, in the first possible implementation, when the network equipment is source network device, institute It states and obtains the first data message, including:
Receive the tracking indication information that the SDN controllers issue;
According to the tracking indication information, target data message is determined from multiple data messages;
The target data message is replicated, and is added in the INT information fields of the target data message of duplication One mark obtains tracking message;
The tracking message is determined as first data message.
The possible realization method of with reference to first aspect the first, in second of realization method, the method further includes:
The target data message is sent to the next-hop network equipment of the network equipment.
The possible realization method of with reference to first aspect the first, in the 3rd possible realization method, the tracking refers to Show that information includes:The identification information of target data message and the frequency reproduction replicated to the target data message,
It is described that target data message is determined from multiple data messages according to the tracking indication information, including:
According to the identification information and the frequency reproduction, determined from multiple data messages and the identification information The data message matched somebody with somebody is as the target data message.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method, the tracking Indication information further includes:Tracking starts identification information;
Before the duplication target data message, the method further includes:
Identify that the tracking starts whether identification information is second identifier;
If it is second identifier that the tracking, which starts identification information, the target data message is replicated.
In second aspect, the present invention provides a kind of apparatus for forwarding message, and applied to the network equipment, described device includes:
First acquisition module, for obtaining the first data message, first data message is included with interior telemetry network INT Information field and first flag;
Second acquisition module, for according to the INT information fields, obtaining statistics corresponding with the INT information fields Information, and the statistical information is stored in the INT information fields, obtain the second data message;
Processing module, for according to the first flag, carrying out replication processes to second data message, obtaining the 3rd Data message;
Determining module, for second data message to be sent to software defined network SDN controllers, so that described SDN controllers determine to be used for transmission the transmission path of data message according to second data message;
First sending module, for when the network equipment is there are during the next-hop network equipment, by the 3rd datagram Text is sent to the next-hop network equipment of the network equipment, so that the next-hop network equipment is to the 3rd data message Perform the step identical with the network equipment.
With reference to first aspect, in the first possible implementation, when the network equipment is source network device, institute The first acquisition module is stated, including:
Receiving submodule, for receiving the tracking indication information that the SDN controllers issue;
First determination sub-module, for according to the tracking indication information, target data to be determined from multiple data messages Message;
Submodule is replicated, for replicating the target data message, and the INT letters of the target data message in duplication First flag is added in breath field, obtains tracking message;
Second determination sub-module, for the tracking message to be determined as first data message.
The possible realization method of with reference to first aspect the first, in second of realization method, described device further includes:
Second sending module, for sending the target data message to the next-hop network equipment of the network equipment.
The possible realization method of with reference to first aspect the first, in the 3rd possible realization method, the tracking refers to Show that information includes:The identification information of target data message and the frequency reproduction replicated to the target data message;
First determination sub-module is additionally operable to according to the identification information and the frequency reproduction, from multiple datagrams It is determined in text with the data message of the identification information match as the target data message.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method,
The tracking indication information further includes:Tracking starts identification information;Described device further includes:
Identification module, for identifying that the tracking starts whether identification information is second identifier;
Replication module if it is second identifier to start identification information for the tracking, replicates the target data report Text.
So, the network equipment is after the first data message is received, the first mark included according to the first data message Know and determine the first data message for tracking message.System is added in the INT information fields that the network equipment includes in the first data message Meter information obtains the second data message, and the second data message is replicated, and obtains the 3rd data message.The network equipment is sent Second data message forwards the 3rd data message to the next-hop network equipment of the network equipment to SDN controllers.
Due to sent out in the embodiment of the present invention on SDN controllers be have first flag tracking message and not be net Whole data messages that network equipment receives, so a kind of message forwarding method and device according to embodiments of the present invention is being visited When surveying the longest path of data message transmission, the message amount sent out on SDN controllers can be reduced, further improves SDN The treatment effeciency of controller.
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
Comprising 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 the flow chart of message forwarding method according to an embodiment of the invention.
Fig. 2 shows the flow chart of message forwarding method according to an embodiment of the invention.
Fig. 3 shows the flow chart of message forwarding method according to an embodiment of the invention.
Fig. 4 shows one illustrative message forwarding schematic diagram of the present invention.
Fig. 5 shows the structure diagram of apparatus for forwarding message according to an embodiment of the invention.
Fig. 6 shows the structure diagram of apparatus for forwarding message according to an embodiment of the invention.
Fig. 7 is the hardware block diagram according to a kind of apparatus for forwarding message shown in an exemplary embodiment.
Specific embodiment
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 represent functionally the same or similar element.Although the various aspects of embodiment are shown in the 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 embodiment below. It will be appreciated by those skilled in the art that without some details, the present invention can equally be implemented.In some instances, for Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the present invention.
In order to solve SDN controllers when carrying out the longest path of probe transmission data message, data message quantity is received It is more, the problem of causing resource occupation excessive, influence the treatment effeciency of SDN controllers.In the embodiment of the present invention, the network equipment is connecing Target data message is determined in the data message of receipts, and first flag is added in target data message, obtains tracking message.When There are during the next-hop network equipment, the forwarding of the down hop network equipment tracks message.So so that the network on whole path is set It is standby by first flag recognition and tracking message, to send tracking message to SDN controllers so that SDN controllers can according to Track message is transmitted the detection of the longest path of data message.The embodiment of the present invention can reduce the network equipment and be controlled to SDN The data message quantity sent out on device can reduce the occupancy to SDN controller resources, improve the treatment effeciency of SDN controllers.
Fig. 1 shows the flow chart of message forwarding method according to an embodiment of the invention, and this method can be applied to network Equipment.The network equipment can be specially VTEP equipment or interchanger (SW) or gateway etc..As shown in Figure 1, this method can wrap Include following steps:
Step 101 obtains the first data message, and first data message is included with interior telemetry network INT information fields And first flag.
Specifically, the first data message can be that the upper hop network equipment of the network equipment is forwarded to the data of the network equipment Message or the first data message can be from the virtual machine with network device communications and be with the addition of first through the network equipment Data message after mark.
Wherein, first flag is to identify the identification information that the first data message is tracking message.INT information fields can be used In specify current network device information to be counted (such as:Bandwidth, delay, packet loss etc.).
For example, the mark of information to be counted can be included in INT information fields, so that the network equipment can basis Above-mentioned mark determines corresponding statistical information.
Further, if the network equipment is source network device, which refers to for source network device according to tracking Show information generation.The tracking indication information is issued to the network equipment for SDN controllers, to indicate network equipment generation tracking report Text and on give the tracking message to the information of SDN controllers.
For example, the Internet protocol (English that mark data stream is carried in indication information is tracked:Internet Protocol, referred to as:IP) information, Virtual Private Network (English:Virtual Private Network, referred to as:VPN) identify And tenant identification.The network equipment be source network device when, the network equipment determine tenant identification, VPN mark and IP information with The data message that tenant identification, VPN indicated by track indication information identify and IP information is consistent, the network equipment is in the datagram First flag is added in text, to generate tracking message.
Step 102, according to the INT information fields, obtain statistical information corresponding with the INT information fields, and general The statistical information is stored in the INT information fields, obtains the second data message.
Specifically, the network equipment determines according to INT information fields and obtains corresponding statistical information.
Such as:Above-mentioned INT information fields instruction network equipment statistics bandwidth information, then the network equipment is to the band that currently occupies Width is counted, and the bandwidth information that statistics is obtained is added in above-mentioned INT information fields, to obtain the second data message.
Step 103, according to the first flag, replication processes are carried out to second data message, obtain the 3rd data Message.
Second data message is sent to software defined network SDN controllers by step 104, so that the SDN is controlled Device determines to be used for transmission the transmission path of data message according to second data message.
Specifically, in the embodiment of the present invention, the first data message carries first flag, and the network equipment determines first data Message is tracking message.Information to be counted is stored in INT information fields in the network equipment, after obtaining the second data message, net Network device replication second data message, obtains the 3rd data message.
The network equipment is by the second data message forwarding to SDN controllers, so that SDN controllers can be according to reception should Second data message determines to be used for transmission the transmission path of data message.
For example, after SDN controllers receive the second data message from network equipment A, determine to be used for transmission data The transmission path of message passes through network equipment A.Next, if SDN controllers receive the second number from network equipment B again After message, determine that the transmission path for being used for transmission data message also passes through network equipment B.
Step 105, when the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to institute State the next-hop network equipment of the network equipment so that the next-hop network equipment to second data message perform with it is described The identical step of the network equipment.
Specifically, in the network equipment there are during the next-hop network equipment, the 3rd data message is sent to net by the network equipment The next-hop network equipment of network equipment.The next-hop network equipment receives the 3rd data message, statistical information is added to above-mentioned In INT information fields, the 4th data message is obtained.First flag of the next-hop network equipment in the 3rd data message, it is multiple The 4th data message is made, and the 4th data message after duplication is sent to SDN controllers, meanwhile, the 4th data message is turned It is sent to next-hop network equipment.
In other words, if next-hop network equipment is the non-purpose network equipment, step 101- steps 105 are performed again.
If next-hop network equipment is the purpose network equipment, the purpose network equipment is in the 4th data message of reception Corresponding statistical information is added, the 5th data message is obtained, and the 5th data message is sent to SDN controllers.Purpose network Equipment no longer performs the process for replicating the 5th data message and the 5th data message being forwarded to the jump network equipment once.
In fact, since the second data message and the 3rd data message are identical message, therefore the network equipment can also will 3rd data message is sent to SDN controllers, by the next-hop network equipment of the second data message forwarding to the network equipment, this hair Bright embodiment does not limit this.So, the network equipment is after the first data message is received, according to the first data message Including first flag determine the first data message for tracking message.The INT information that the network equipment includes in the first data message Addition statistical information obtains the second data message in field, and the second data message is replicated, and obtains the 3rd data message. The network equipment sends the second data message to SDN controllers, and the next-hop network of the 3rd data message to the network equipment of forwarding is set It is standby.
In the embodiment of the present invention, the first data message, the second data message, the 3rd data message, the 4th data message with And the 5th data message be carry out VXLAN tunnel encapsulations after message.
It is understood that when the network equipment is source network device, the virtual machine that source network device receives connection is sent Initial data message.After source network device determines initial data message for tracking message, to initial data message addition the One mark, and VXLAN tunnel encapsulations are carried out, obtain the first data message.First data message is passed through VXLAN by source network device Tunnel is sent to next-hop network equipment.
When the network equipment is the purpose network equipment, the purpose network equipment receives the 4th of upper hop network equipment transmission Data message.The purpose network equipment adds corresponding statistical information in the 4th data message, obtains the 5th data message, by Five data messages are sent to SDN controllers.Meanwhile the purpose network equipment carries out VXLAN tunnel decapsulations to the 4th data message, Initial data message is obtained, and initial data message is sent to the virtual machine of connection.
Due to sent out in the embodiment of the present invention on SDN controllers be have first flag tracking message and not be net Whole data messages that network equipment receives, so a kind of message forwarding method and device according to embodiments of the present invention is being visited When surveying the longest path of data message transmission, the message amount sent out on SDN controllers can be reduced, further improves SDN The treatment effeciency of controller.
Fig. 2 shows the flow chart of message forwarding method according to an embodiment of the invention.Wherein, in Fig. 2 step 204 to step Rapid 207 is identical to step 105 with step 102 in previous embodiment, and details are not described herein for the embodiment of the present invention.
In a kind of possible realization method, with reference to Fig. 2, when the network equipment is source network device, the above method includes Following steps.
Step 201 receives the tracking indication information that the SDN controllers issue.
Specifically, track indication information and be issued to the network equipment for SDN controllers, to indicate network equipment generation tracking report Text and on give the tracking message to the information of SDN controllers.
For example, SDN controllers can in the form of flow table and/or information command, to the network equipment issue it is above-mentioned with Track indication information.
Step 202, according to the tracking indication information, target data message is determined from multiple data messages.
Specifically, the network equipment determines target data according to tracking indication information from multiple data messages of reception Message.
Such as:The IP information (source IP and destination IP) of mark data stream and VPN marks are carried in above-mentioned tracking indication information. The network equipment determines that IP information and VPN marks identify consistent number with IP information indicated in tracking indication information and VPN It is target data message according to message.
Again for example:Track the IP information that mark data stream is carried in indication information, VPN marks and tenant identification.Network is set Standby definite tenant identification, VPN marks and IP information are believed with tenant identification indicated in tracking indication information, VPN marks and IP Consistent data message is ceased for target data message.
For another example can also carry frequency reproduction in tracking indication information, which determines target for the network equipment The frequency of data message.For example, when frequency reproduction is 1/second, represent that the network equipment can be in the datagram of reception every 1s A target data message is determined in text.That is, the network equipment determined specified tenant's (tenant identification every one second Corresponding tenant) and an IP information in VPN and tracking indication information in indicated identical tenant (tenant identification institute Corresponding tenant) and VPN in the consistent data message of IP information be target data message.
Step 203 replicates the target data message, and the INT information fields of the target data message in duplication Middle addition first flag obtains tracking message.
The tracking message is determined as first data message by step 204.
Specifically, the network equipment replicates target data message, and is added in the INT information fields of the object message of duplication First flag obtains tracking message.The network equipment determines that the tracking message is the first data message.
Wherein, first flag be for identification message be track message mark.The mark can be the extension of INT messages Mark shows that the INT messages detect for the tracking in path when the extension flag set.
Step 205, according to the INT information fields, obtain statistical information corresponding with the INT information fields, and general The statistical information is stored in the INT information fields, obtains the second data message.
Step 206, according to the first flag, replication processes are carried out to second data message, obtain the 3rd data Message.
Second data message is sent to software defined network SDN controllers by step 207, so that the SDN is controlled Device determines to be used for transmission the transmission path of data message according to second data message.
Step 208, when the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to institute State the next-hop network equipment of the network equipment so that the next-hop network equipment to the 3rd data message perform with it is described The identical step of the network equipment.
Optionally, in a kind of possible realization method, the above method can also include:
The network equipment sends the target data message to the next-hop network equipment of the network equipment.
Specifically, the network equipment sends the 3rd data message (tracking message) to the next-hop network equipment of the network equipment Meanwhile also the down hop network equipment sends target data message.
After next-hop network equipment receives the 3rd data message and target data message, the in the 3rd data message One identifies the 3rd data message for tracking message.In the INT fields of the 3rd data message and target data message After adding statistical information, above-mentioned the 3rd data message for being with the addition of statistical information is replicated, the 3rd number of statistical information will be with the addition of According to message up sending to SDN controllers.
Meanwhile next-hop network equipment carries out target data message normal forward process, and when there are next-hop nets During network equipment, the 3rd data message of duplication is forwarded to.
So, the tracking indication information that the network equipment is issued according to SDN controllers determines target data message, and right Target data message is replicated.The network equipment adds first flag in the target data message of duplication, obtains tracking message, The all-network equipment in network allow according to first flag recognition and tracking message, and on tracking message is sent to control to SDN Device.
Since what is sent out in the embodiment of the present invention on SDN controllers is tracking message, and tracking message is referred to according to tracking Show the target data message generation that information determines in data message, so a kind of message forwarding according to embodiments of the present invention Method in the longest path of probe transmission data message, can reduce the message amount sent out on SDN controllers, further Raising SDN controllers treatment effeciency.
Fig. 3 shows the flow chart of message forwarding method according to an embodiment of the invention, wherein step 301 and step 303 Similar to step 208 with abovementioned steps 201 and step 203 respectively to step 308, details are not described herein for the embodiment of the present invention.
In a kind of possible realization method, above-mentioned tracking indication information can include:The mark letter of target data message It ceases and to the frequency reproduction that the target data message is replicated, with reference to Fig. 3, the above method may comprise steps of:
Step 301 receives the tracking indication information that the SDN controllers issue.
Step 302, according to the identification information and the frequency reproduction, determined from multiple data messages and the mark The data message of information matches is known as the target data message.
Wherein, the identification information of target data message can identify a data flow.Above-mentioned identification information can include source IP address and purpose IP address, VPN marks and tenant identification.Frequency reproduction determines the frequency of target data message for the network equipment Rate.For example, when frequency reproduction is 1/second, represent that the network equipment can determine one every 1s in multiple data messages of reception Target data message.
For example, the network equipment can determine time interval and message number, time interval according to above-mentioned frequency reproduction To determine the time interval of target data message, message number is the number of the target data message determined.For example, message number For N, wherein, N is positive integer.
Illustratively, the network equipment can set target data message to fix time really according to time interval.Such as:Network Equipment receives above-mentioned tracking indication information at the moment 1 or is determined in target data message of the completion of moment 1, then 2 at the time of determining to be spaced above-mentioned time interval with the moment 1, the time that the moment 2 is next definite target data message is set. Moment 2, the network equipment can determine N number of target data message in the data message of reception.For example, the network equipment can determine There is the data message of the identification information in tracking indication information in the data message received at the moment 2, and in above-mentioned datagram Determine that N number of data message is target data message in text at random.
Illustratively, the network equipment can also set timer according to time interval.Such as:The network equipment can receive To tracking indication information or be complete target data message it is definite after, start timer.Reach in timer During time interval, the network equipment determines N number of target data message in the data message of reception.For example, when timer reaches Between when being spaced, the network equipment determines the datagram in the data message received at this time with the identification information in tracking indication information Text, and determine that N number of data message is target data message at random in data message.
Step 303 replicates the target data message, and the interior telemetry network of band of the target data message in duplication First flag is added in INT information fields, obtains tracking message;
The tracking message is determined as the first data message by step 304.
Step 305, according to the INT information fields, obtain statistical information corresponding with the INT information fields, and general The statistical information is stored in the INT information fields, obtains the second data message;
Step 306, according to the first flag, replication processes are carried out to second data message, obtain the 3rd data Message;
Second data message is sent to software defined network SDN controllers by step 307, so that the SDN is controlled Device determines to be used for transmission the transmission path of data message according to second data message;
Step 308, when the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to institute State the next-hop network equipment of the network equipment so that the next-hop network equipment to the 3rd data message perform with it is described The identical step of the network equipment.
Optionally, in a kind of possible realization method, tracking indication information further includes:Tracking starts identification information, on The method of stating can also include:
Identify that the tracking starts whether identification information is second identifier;
If it is second identifier that the tracking, which starts identification information, the target data message is replicated.SDN controllers to The network equipment issues tracking and starts identification information.
For example, SDN controllers are issuing the same of the IP information of target data message and frequency reproduction to the network equipment When, it also issues above-mentioned tracking and starts identification information.
The tracking start identification information instruction the network equipment whether generate tracking message and on send tracking message to SDN control Device.Tracking, which starts identification information, includes second identifier and the 3rd mark.Second identifier instruction network equipment generation tracking message is simultaneously On send tracking message to SDN controllers;3rd mark instruction the network equipment do not generate tracking message and not on send tracking message To SDN controllers.
When it is second identifier that tracking, which starts identification information, the network equipment is in response to the second identifier.The network equipment according to Tracking indication information determines target data message, and performs and replicate the target data message, and in the number of targets of duplication According to first flag is added in the interior telemetry network INT information fields of the band of message, to obtain the process of tracking message.
When tracking starts identification information and identified for the 3rd, even if the network equipment receives the tracking from SDN controllers and refers to Show information, also do not perform the process of definite target data message.
Fig. 4 shows one illustrative message forwarding schematic diagram of the present invention.
Illustratively, by taking example shown in Fig. 4 as an example, after SW2 receives the data message from SW1, if identifying the number According to carrying first flag in message, that is to say, that the data message is tracking message, can be sent to the data message SDN controllers, and can be by the data message forwarding to SW3.
So, the network equipment only carries the tracking message of first flag to the transmission of SDN controllers, can reduce to The message amount sent out on SDN controllers, it is further to improve the treatment effeciency of SDN controllers, and can accurately judge network event Hinder position, the efficiency of Network Fault Detection, the further high efficiency for improving network operation can be improved.
Illustratively, with reference to example shown in Fig. 4.Wherein, VM10 and VM40 is to belong to same virtual extended LAN (English:Virtual Extensible LAN, referred to as:VXLAN the virtual machine in), SW1 and SW4 are access VXLAN tunnels end Point (English:VXLAN Tunnel End Point, referred to as:VTEP) equipment, SW1, SW2, SW3 and SW4 support INT functions. SW1 is INT Source equipment, and SW2, SW3 are INT Transit Hop equipment, and SW4 is INT Sink equipment.
Under primary condition, SDN controllers issue tracking instruction letter to all network equipments (SW1, SW2, SW3 and SW4) Breath (including tracking flow table and frequency reproduction information, wherein, source IP (VM10), destination IP (VM40) can be included by tracking in flow table, Namely the IP information of object message, tenant identification, VPN marks can also include the INT type of messages (agreement in VXLAN heads Type), first flag, wherein the action item of tracking flow table can include normal forwarding and on send controller etc.).
VM10 sends datagram to SW1.After SW1 receives data message, INT Information encapsulations are carried out to data message, are obtained To INT messages.At this point, it is second identifier that the tracking that SW1 is received, which starts identification information,.Therefore, can be referred to according to above-mentioned tracking Show that information determines target data message in above-mentioned INT messages, and target data message is replicated.SW1 is in the INT of duplication First flag is added in the INT fields of message, obtains tracking message.SW1 will be tracked on message and is sent to SDN controllers, and will be with Track message and target data message are transmitted to SW2.Wherein, network equipment SW1, SW2, SW3 and SW4 receive data message (with Track message and target data message) after, it is performed both by the operation of the INT information fields addition statistical information to data message, this hair It is bright to be no longer described in detail in following examples.
Assuming that the path of VW10 to VM40 is normal, SW1 will track message and target data message is forwarded to SW2.SW2 will be with Track message up sending continues tracking message and target data message being forwarded to SW3 to SDN controllers.SW3 will be tracked on message It send to SDN controllers, and continues tracking message and target data message being forwarded to SW4.SW4 will track message up sending to SDN Controller, meanwhile, the destination address of the tunnel header of SW4 recognition and tracking messages is the address of SW4, thus SW4 do not perform duplication with The process of track message, and decapsulation processing (solution VXLAN encapsulation, and by INT information from above-mentioned target is carried out to target data message It is stripped out in message), obtain original data message.SW4 is by data message forwarding to VM40.So, SDN controllers The tracking message from SW1, SW2, SW3 and SW4 successively is received, the longest path for determining VM10 to VM40 is SW1-SW2-SW3- SW4。
Assuming that SW3 is to SW4 path failures.After SW3 receives tracking message from SW2 and target data message, SW3 will be with SDN controllers are sent on track message, and continue tracking message and target data message being forwarded to SW4.SW4 does not receive SW3 The tracking message of forwarding and target data message, SW4 do not send tracking message to SDN controllers.Within the default time, SDN Controller successively receives the tracking message from SW1, SW2, SW3.After the default time, SDN controllers receive only The tracking message of SW1, SW2, SW3, therefore SDN controllers determine that the longest path of VM10 to VM40 is SW1-SW2-SW3.SDN is controlled Device processed reports the longest path of VM10 to VM40 as SW1-SW2-SW3 to network management platform, while reports the road of SW3 to SW4 Footpath is abnormal, so that network management platform handles the SW3 of failure to SW4 paths.
So, SDN controllers can realize the most long transmission path detection to data flow based on INT frames, and can Accurately to judge network failure position, the efficiency of Network Fault Detection can be improved, it is further to improve the efficient of network operation Property.
Fig. 5 shows the structure diagram of apparatus for forwarding message according to an embodiment of the invention, which can be applied to net Network equipment, as shown in figure 5, the device can include:First acquisition module 501, the second acquisition module 502, processing module 503, 504 and first sending module 505 of determining module;Wherein,
First acquisition module 501 can be used for obtaining the first data message, and first data message is included with interior telemetering Network INT information fields and first flag;
Second acquisition module 502 can be used for, according to the INT information fields, obtaining corresponding with the INT information fields Statistical information, and the statistical information is stored in the INT information fields, obtains the second data message;
Processing module 503 can be used for according to the first flag, and replication processes are carried out to second data message, Obtain the 3rd data message;
Determining module 504 can be used for second data message being sent to software defined network SDN controllers, with The SDN controllers is made to determine to be used for transmission the transmission path of data message according to second data message;
First sending module 505 can be used for when the network equipment is there are during the next-hop network equipment, by the described 3rd Data message is sent to the next-hop network equipment of the network equipment, so that the next-hop network equipment is counted to the described 3rd The step identical with the network equipment is performed according to message.
Fig. 6 shows the structure diagram of apparatus for forwarding message according to an embodiment of the invention.
In a kind of possible realization method, when the network equipment is source network device, with reference to Fig. 6, described first Acquisition module 501 can include:
Receiving submodule 5011 can be used for receiving the tracking indication information that the SDN controllers issue;
First determination sub-module 5012 can be used for, according to the tracking indication information, determining from multiple data messages Target data message;
Submodule 5013 is replicated, can be used for replicating the target data message, and in the target data report of duplication First flag is added in the INT information fields of text, obtains tracking message;
Second determination sub-module 5014 can be used for the tracking message being determined as first data message.
In a kind of possible realization method, with reference to Fig. 6, described device can also include:
Second sending module 506 can be used for sending the number of targets to the next-hop network equipment of the network equipment According to message.
In a kind of possible realization method, the tracking indication information can include:The mark letter of target data message Breath and the frequency reproduction replicated to the target data message;
First determination sub-module 5012 can be also used for according to the identification information and the frequency reproduction, from multiple numbers According to being determined in message with the data message of the identification information match as the target data message.
In a kind of possible realization method, tracking indication information further includes:Tracking starts identification information;With reference to Fig. 6, institute Stating device can also include:
Identification module 507 can be used for identifying that the tracking starts whether identification information is second identifier;
Replication module 508 if can be used for the tracking to start identification information is second identifier, replicates the target Data message.
Fig. 7 is the hardware block diagram according to a kind of apparatus for forwarding message shown in an exemplary embodiment.Actually should In, which can be realized by server.With reference to Fig. 7, which, which may include processor 701, be stored with machine can perform The machine readable storage medium 702 of instruction.Processor 701 can be logical via system bus 703 with machine readable storage medium 702 Letter.Also, processor 701 can by machine corresponding with data processing method logic in read machine readable storage medium storing program for executing 702 It executes instruction to perform message processing method described above.
Machine readable storage medium 702 referred to herein can be any electronics, magnetism, optics or other physical stores Device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:With Machine access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory, sudden strain of a muscle It deposits, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar 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.In the case of 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 It is best explaining the principle of each embodiment, practical application or to the technological improvement of the technology in market or is leading this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (10)

1. a kind of message forwarding method, which is characterized in that applied to the network equipment, the described method includes:
The first data message is obtained, first data message is included with interior telemetry network INT information fields and first flag;
According to the INT information fields, statistical information corresponding with the INT information fields is obtained, and by the statistical information It is stored in the INT information fields, obtains the second data message;
According to the first flag, replication processes are carried out to second data message, obtain the 3rd data message;
Second data message is sent to software defined network SDN controllers, so that the SDN controllers are according to described Two data messages determine to be used for transmission the transmission path of data message;
When the network equipment is there are during the next-hop network equipment, the 3rd data message is sent to the network equipment Next-hop network equipment, so that the next-hop network equipment is identical with the network equipment to the 3rd data message execution The step of.
2. according to the method described in claim 1, it is characterized in that, when the network equipment be source network device when, it is described to obtain The first data message is taken, including:
Receive the tracking indication information that the SDN controllers issue;
According to the tracking indication information, target data message is determined from multiple data messages;
Replicate the target data message, and the first mark of addition in the INT information fields of the target data message of duplication Know, obtain tracking message;
The tracking message is determined as first data message.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
The target data message is sent to the next-hop network equipment of the network equipment.
4. according to the method described in claim 2, it is characterized in that, the tracking indication information includes:Target data message Identification information and the frequency reproduction replicated to the target data message,
It is described that target data message is determined from multiple data messages according to the tracking indication information, including:
According to the identification information and the frequency reproduction, determined from multiple data messages and the identification information match Data message is as the target data message.
5. according to the method described in claim 4, it is characterized in that, the tracking indication information further includes:Tracking starts mark Information;
Before the duplication target data message, the method further includes:
Identify that the tracking starts whether identification information is second identifier;
If it is second identifier that the tracking, which starts identification information, the target data message is replicated.
6. a kind of apparatus for forwarding message, which is characterized in that applied to the network equipment, described device includes:
First acquisition module, for obtaining the first data message, first data message is included with interior telemetry network INT information Field and first flag;
Second acquisition module, for according to the INT information fields, obtaining statistical information corresponding with the INT information fields, And the statistical information is stored in the INT information fields, obtain the second data message;
Processing module, for according to the first flag, carrying out replication processes to second data message, obtaining the 3rd data Message;
Determining module, for second data message to be sent to software defined network SDN controllers, so that the SDN is controlled Device processed determines to be used for transmission the transmission path of data message according to second data message;
First sending module, for when the network equipment is there are during the next-hop network equipment, the 3rd data message to be sent out It send to the next-hop network equipment of the network equipment, so that the next-hop network equipment performs the 3rd data message The step identical with the network equipment.
7. device according to claim 6, which is characterized in that when the network equipment is source network device, described the One acquisition module, including:
Receiving submodule, for receiving the tracking indication information that the SDN controllers issue;
First determination sub-module, for according to the tracking indication information, target data message to be determined from multiple data messages;
Submodule is replicated, for replicating the target data message, and the INT information words of the target data message in duplication First flag is added in section, obtains tracking message;
Second determination sub-module, for the tracking message to be determined as first data message.
8. device according to claim 7, which is characterized in that described device further includes:
Second sending module, for sending the target data message to the next-hop network equipment of the network equipment.
9. device according to claim 7, which is characterized in that the tracking indication information includes:Target data message Identification information and the frequency reproduction replicated to the target data message;
First determination sub-module is additionally operable to according to the identification information and the frequency reproduction, from multiple data messages It determines with the data message of the identification information match as the target data message.
10. device according to claim 9, which is characterized in that the tracking indication information further includes:Tracking starts mark Information;Described device further includes:
Identification module, for identifying that the tracking starts whether identification information is second identifier;
Replication module if it is second identifier to start identification information for the tracking, replicates the target data message.
CN201711476340.1A 2017-12-27 2017-12-27 Message forwarding method and device Active CN108111432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711476340.1A CN108111432B (en) 2017-12-27 2017-12-27 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711476340.1A CN108111432B (en) 2017-12-27 2017-12-27 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN108111432A true CN108111432A (en) 2018-06-01
CN108111432B CN108111432B (en) 2021-07-02

Family

ID=62214845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711476340.1A Active CN108111432B (en) 2017-12-27 2017-12-27 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN108111432B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN109787833A (en) * 2019-01-23 2019-05-21 清华大学 Network exception event cognitive method and system
CN110752993A (en) * 2019-10-24 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
WO2020052557A1 (en) * 2018-09-10 2020-03-19 Zte Corporation Techniques to collect and transport telemetry information in a communication network
CN111698161A (en) * 2020-04-01 2020-09-22 北京华三通信技术有限公司 Message processing method and device
CN112350844A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method and device for data transmission
WO2021128927A1 (en) * 2019-12-27 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus, storage medium, and electronic apparatus
CN113098749A (en) * 2020-01-08 2021-07-09 华为技术有限公司 Message sending method, device and storage medium
CN113300951A (en) * 2020-02-21 2021-08-24 华为技术有限公司 Method, equipment and system for sending message
CN113328956A (en) * 2021-06-07 2021-08-31 新华三技术有限公司 Message processing method and device
CN113364778A (en) * 2021-06-07 2021-09-07 新华三技术有限公司 Message processing method and device
CN114157595A (en) * 2020-09-08 2022-03-08 超聚变数字技术有限公司 Communication system, data processing method and related equipment
JP2022071112A (en) * 2018-06-06 2022-05-13 華為技術有限公司 Data packet detection method, device, and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464590A (en) * 2015-11-27 2017-02-22 华为技术有限公司 Method and apparatus for obtaining path information
CN106612211A (en) * 2015-10-23 2017-05-03 华为技术有限公司 A rout detecting method, a controller and a network device in a VxLAN
CN106936655A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 Chain circuit detecting method, device and the network equipment, controller
CN107294743A (en) * 2016-03-30 2017-10-24 华为技术有限公司 A kind of network path detection method, controller and the network equipment
CN107453884A (en) * 2016-05-30 2017-12-08 华为技术有限公司 The service quality detection method and device of a kind of network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612211A (en) * 2015-10-23 2017-05-03 华为技术有限公司 A rout detecting method, a controller and a network device in a VxLAN
CN106464590A (en) * 2015-11-27 2017-02-22 华为技术有限公司 Method and apparatus for obtaining path information
CN106936655A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 Chain circuit detecting method, device and the network equipment, controller
CN107294743A (en) * 2016-03-30 2017-10-24 华为技术有限公司 A kind of network path detection method, controller and the network equipment
CN107453884A (en) * 2016-05-30 2017-12-08 华为技术有限公司 The service quality detection method and device of a kind of network equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
P.LAPUKHOV,R.CHANG: "Data-plane probe for in-band telemetry collection (draft-lapukhov-dataplane-probe-01)", 《INTERNET-DRAFT》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022071112A (en) * 2018-06-06 2022-05-13 華為技術有限公司 Data packet detection method, device, and system
JP7375068B2 (en) 2018-06-06 2023-11-07 華為技術有限公司 Data packet detection methods, devices, and systems
CN109194581B (en) * 2018-08-24 2020-12-25 新华三技术有限公司 Message processing method and device
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN112689977A (en) * 2018-09-10 2021-04-20 中兴通讯股份有限公司 Techniques for collecting and transmitting telemetry information in a communication network
WO2020052557A1 (en) * 2018-09-10 2020-03-19 Zte Corporation Techniques to collect and transport telemetry information in a communication network
US10979787B2 (en) 2018-09-10 2021-04-13 Zte Corporation Techniques to collect and transport telemetry information in a communication network
CN109787833A (en) * 2019-01-23 2019-05-21 清华大学 Network exception event cognitive method and system
CN109787833B (en) * 2019-01-23 2020-05-08 清华大学 Network abnormal event sensing method and system
CN112350844B (en) * 2019-08-09 2024-03-29 华为技术有限公司 Method and device for data transmission
CN112350844A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method and device for data transmission
CN110752993A (en) * 2019-10-24 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
CN110752993B (en) * 2019-10-24 2022-02-25 新华三信息安全技术有限公司 Message forwarding method and device
WO2021128927A1 (en) * 2019-12-27 2021-07-01 盛科网络(苏州)有限公司 Message processing method and apparatus, storage medium, and electronic apparatus
CN113098749A (en) * 2020-01-08 2021-07-09 华为技术有限公司 Message sending method, device and storage medium
WO2021139288A1 (en) * 2020-01-08 2021-07-15 华为技术有限公司 Packet transmission method and apparatus and storage medium
CN113300951A (en) * 2020-02-21 2021-08-24 华为技术有限公司 Method, equipment and system for sending message
CN113300951B (en) * 2020-02-21 2023-10-24 华为技术有限公司 Method, equipment and system for sending message
CN111698161A (en) * 2020-04-01 2020-09-22 北京华三通信技术有限公司 Message processing method and device
CN111698161B (en) * 2020-04-01 2022-09-02 北京华三通信技术有限公司 Message processing method and device
CN114157595A (en) * 2020-09-08 2022-03-08 超聚变数字技术有限公司 Communication system, data processing method and related equipment
CN113328956B (en) * 2021-06-07 2022-07-01 新华三技术有限公司 Message processing method and device
CN113364778B (en) * 2021-06-07 2022-07-29 新华三技术有限公司 Message processing method and device
CN113364778A (en) * 2021-06-07 2021-09-07 新华三技术有限公司 Message processing method and device
CN113328956A (en) * 2021-06-07 2021-08-31 新华三技术有限公司 Message processing method and device

Also Published As

Publication number Publication date
CN108111432B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN108111432A (en) Message forwarding method and device
US11924090B2 (en) Segment routing network signaling and packet processing
WO2019128950A1 (en) Packet processing method, network node, and system
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
US10742532B2 (en) Non-intrusive mechanism to measure network function packet processing delay
US8582466B2 (en) Flow statistics aggregation
CN104618194B (en) Software defined network monitoring messages method and SDN controllers, switching equipment
CN105684382A (en) Packet control method, switch and controller
CN103581021B (en) The method and apparatus of business detection under software defined network
JP4973734B2 (en) Network monitoring system, route extraction method, program, and computer-readable recording medium recording the program
CN108777646A (en) Flux monitoring method and device
CN105812197A (en) Bit-forwarding ingress router, bit-forwarding router and operation administration maintenance detection method
EP3496346B1 (en) Data message forwarding method and apparatus
JP5681067B2 (en) Traffic generator using dynamic MPLS label allocation
CN110213129B (en) Forwarding path time delay detection method, controller and forwarding equipment
CN109194581A (en) Message processing method and device
CN110011915A (en) SDN network framework, flow transmission control method and device based on SDN
CN106789625A (en) A kind of loop detecting method and device
US20140293825A1 (en) Timestamping data packets
CN108156046A (en) Distributed route detecting method and device
CN111026324B (en) Updating method and device of forwarding table entry
US20160127227A1 (en) Information processing system, method, and apparatus
CN114050994B (en) Network telemetry method based on SRv6
CN109379241A (en) A kind of routing information determines method and device
CN108521371A (en) Message forwarding method and device

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