CN106302258A - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN106302258A
CN106302258A CN201610810332.5A CN201610810332A CN106302258A CN 106302258 A CN106302258 A CN 106302258A CN 201610810332 A CN201610810332 A CN 201610810332A CN 106302258 A CN106302258 A CN 106302258A
Authority
CN
China
Prior art keywords
message
vxlan
unit
default
source device
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
CN201610810332.5A
Other languages
Chinese (zh)
Other versions
CN106302258B (en
Inventor
周立伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610810332.5A priority Critical patent/CN106302258B/en
Publication of CN106302258A publication Critical patent/CN106302258A/en
Application granted granted Critical
Publication of CN106302258B publication Critical patent/CN106302258B/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
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

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

Abstract

The application provides a kind of message forwarding method and device, is applied on VXLAN switch, and described method includes: receive the default message that source device sends;Described default message is packaged into VXLAN message;Wherein, described VXLAN message includes multiple data cell, and any data unit in multiple data cells is for encapsulating described default message, other data cells for encapsulating other messages that described source device sends;Described VXLAN message is forwarded, so so that a large amount of messages can pass through a link transmission in transmitting procedure, and without taking multilink, contributes to reducing tunnel transmission pressure, thus reduces packet loss phenomenon, improves message transmissions efficiency by VXLAN tunnel.

Description

A kind of message forwarding method and device
Technical field
The application relates to network communication technology field, particularly relates to a kind of message forwarding method and device.
Background technology
Due to server virtualization technology widespread deployment, and EVM(extended virtual machine) scale is restricted, therefore proposes VXLAN (Virtual eXtensible LAN, expansible VLAN) technology.In correlation technique, in VXLAN message transmission procedure In, when message is transferred to opposite end from local terminal by VXLAN tunnel by needs, in order to save resource, generally at two virtual machines Erect a tunnel between equipment, carry out multiple VXLAN message communication by this tunnel.
But, when same tunnel is shared for this multilink, owing to the forwarding performance in tunnel is limited, work as tunnel When the link of middle transmission message is too much, tunnel communication may be exerted heavy pressures on, cause when by tunnel transmission message The a large amount of packet losses of meeting, and then cause network service to be normally carried out.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device, is applied on VXLAN switch, Ke Yi When transmitting a large amount of message, reduce tunnel transmission pressure, it is ensured that tunnel communication is normally carried out.
Specifically, the application is achieved by the following technical solution:
According to the first aspect of the invention, it is proposed that a kind of message forwarding method, it is applied on VXLAN switch, described Method includes:
Receive the default message that source device sends;
Described default message is packaged into VXLAN message;Wherein, described VXLAN message includes multiple data cell, multiple Any data unit in data cell is used for encapsulating described default message, other data cells and sends out for encapsulating described source device Other messages sent;
Described VXLAN message is forwarded by VXLAN tunnel.
According to the second aspect of the invention, it is proposed that a kind of apparatus for forwarding message, it is applied on VXLAN switch, described Device includes:
First receives unit, receives the default message that source device sends;
Encapsulation unit, is packaged into VXLAN message by described default message;Wherein, described VXLAN message includes multiple data Unit, any data unit in multiple data cells is used for encapsulating described default message, other data cells for encapsulating State other messages that source device sends;
First retransmission unit, forwards described VXLAN message by VXLAN tunnel.
According to the third aspect of the invention we, it is proposed that another kind of message forwarding method, it is applied on VXLAN switch, institute The method of stating includes:
VXLAN message is received by VXLAN tunnel;Wherein, described VXLAN message includes multiple data cell, many numbers Default message, other data cells of sending for packaged source equipment according to any data unit in unit are used for encapsulating described source Other messages that equipment sends;
Described VXLAN message is decapsulated;
The message of encapsulation in each data cell that decapsulation obtains is sent to purpose equipment.
According to the fourth aspect of the invention, it is proposed that another kind of apparatus for forwarding message, it is applied on VXLAN switch, institute State device to include:
Second receives unit, receives VXLAN message by VXLAN tunnel;Wherein, described VXLAN message includes many numbers According to unit, any data unit in multiple data cells is used for default message, other data cells that packaged source equipment sends For encapsulating other messages that described source device sends;
Decapsulation unit, decapsulates described VXLAN message;
Transmitting element, sends the message of encapsulation in each data cell that decapsulation obtains to purpose equipment.
From above technical scheme, the present invention is encapsulated in VXLAN message by the multiple messages sent by source device, Forward above-mentioned VXLAN message by VXLAN tunnel again, and each message decapsulation obtained send to purpose equipment so that A large amount of messages can pass through a link transmission in transmitting procedure, and without taking multilink, contribute to reducing tunnel and pass Defeated pressure, thus reduce packet loss phenomenon, improve message transmissions efficiency.
Accompanying drawing explanation
Fig. 1 is a kind of network architecture schematic diagram in correlation technique;
Fig. 2 is that the present invention describes a kind of message forwarding method flow chart of an exemplary embodiment from message package-side;
Fig. 3 is that the present invention describes a kind of message forwarding method flow chart of an exemplary embodiment from message decapsulation side;
Fig. 4-Fig. 5 is VXLAN message structure schematic diagram in the present invention;
Fig. 6 is that the present invention describes the another kind of message forwarding method flow chart of an exemplary embodiment from message package-side;
Fig. 7 is that the present invention describes the another kind of message forwarding method flow process of an exemplary embodiment from message decapsulation side Figure;
Fig. 8 is that the present invention describes a kind of apparatus for forwarding message schematic diagram of an exemplary embodiment from message package-side;
Fig. 9 is that the present invention describes a kind of apparatus for forwarding message schematic diagram of an exemplary embodiment from message decapsulation side.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application. " a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
Fig. 1 is a kind of network architecture schematic diagram in correlation technique, as shown in Figure 1: source device and purpose equipment lead to During letter, between VXLAN switch 1 and VXLAN switch 2, set up a VXLAN tunnel, when a large amount of messages are by VXLAN tunnel During transmission, multilink can share a VXLAN tunnel and communicate, and so can exert heavy pressures on VXLAN tunnel communication, Cause by a large amount of packet losses during VXLAN tunnel transmission message, and then cause cannot be carried out proper communication.
Therefore, the present invention is by proposing the improvement project that a kind of message forwards, and can solve in correlation technique above-mentioned asks Topic, illustrates below in conjunction with embodiment.
Fig. 2 is that the present invention describes a kind of message forwarding method flow chart of an exemplary embodiment from message package-side, as Shown in Fig. 2, the method is applied on VXLAN switch, and wherein, the method specifically includes following steps:
In step 201, the default message that source device sends is received.
In the present embodiment, above-mentioned default message can be that ARP floods message, is flooded by this ARP of VXLAN tunnel transmission During message, the message that needs to flood this ARP is encapsulated in VXLAN message, but, owing to the flood length of message of ARP is much smaller than The length of above-mentioned VXLAN message, flooding message if encapsulating an ARP in a VXLAN message, the most not making full use of VXLAN message structure, causes the waste of this VXLAN message structure, then, by following step 202, flood report by multiple ARP Literary composition is encapsulated in VXLAN message and is transmitted, and contributes to making full use of message structure, thus improves VXLAN tunnel utilization rate;When So, above-mentioned default message can be other kinds of message, and this is not limited by the present invention.
In step 202., above-mentioned default message is packaged into VXLAN message;Wherein, this VXLAN message includes many numbers According to unit, any data unit in multiple data cells is used for encapsulating above-mentioned default message, other data cells for encapsulating Other messages that above-mentioned source device sends.
In the present embodiment, when there is not the VXLAN message of establishment being in buffer status, can create above-mentioned VXLAN message, it is possible to by above-mentioned default message encapsulation to any data unit of above-mentioned VXLAN message, and can be by Above-mentioned VXLAN message is set to buffer status;When there is the VXLAN message of establishment being in buffer status, can be by above-mentioned pre- If message encapsulation has created in VXLAN message to above-mentioned;Wherein, above-mentioned created VXLAN message can comprise at least one can For encapsulating the data cell of above-mentioned default message.
In step 203, described VXLAN message is forwarded by VXLAN tunnel.
In the present embodiment, each VXLAN message can be recorded and be in the caching duration of buffer status;As arbitrary VXLAN When the caching duration that message is corresponding exceedes preset duration, described arbitrary VXLAN message can be forwarded by VXLAN tunnel.
Fig. 3 is that the present invention describes a kind of message forwarding method flow chart of an exemplary embodiment from message decapsulation side, As it is shown on figure 3, the method is applied on VXLAN switch, wherein, the method specifically includes following steps:
In step 301, VXLAN message is received by VXLAN tunnel;Wherein, above-mentioned VXLAN message includes multiple data Unit, default message, other data cells that any data unit in multiple data cells sends for packaged source equipment are used In encapsulating other messages that described source device sends.
In the present embodiment, above-mentioned VXLAN message can include multiple data cell, each data cell can include by The message of encapsulation and corresponding VXLAN mark, after this VXLAN mark may be used in following step 303 labelling decapsulation The link that message is to be mail to.
In step 302, above-mentioned VXLAN message is decapsulated.
In the present embodiment, during resolving the arbitrary VXLAN message received, when any of the above-described VXLAN message Heading in when comprising predefined message identification, it may be determined that this arbitrary VXLAN message includes the described source of encapsulation and sets Any of the above-described data cell of the default message that preparation is sent,
In the present embodiment, the message number in the heading of any of the above-described VXLAN message can be resolved;And can lead to Cross decapsulation and obtain the message that number is above-mentioned message number.
In step 303, the message of encapsulation in each data cell that decapsulation obtains is sent to purpose equipment.
In the present embodiment, each data cell can include packed message and corresponding VXLAN mark;To mesh Equipment send in each data cell of obtaining of decapsulation before the message of encapsulation, can first obtain the VXLAN after decapsulation Mark, then can be according to the message encapsulated in each data cell that decapsulation is obtained by this VXLAN mark according to accordingly Link sends to purpose equipment.
From above technical scheme, the present invention is encapsulated in VXLAN message by the multiple messages sent by source device, Forward above-mentioned VXLAN message by VXLAN tunnel again, and each message decapsulation obtained send to purpose equipment so that A large amount of messages can pass through a link transmission in transmitting procedure, and without taking multilink, contribute to reducing tunnel and pass Defeated pressure, thus reduce packet loss phenomenon, improve message transmissions efficiency.
In the inventive solutions, by VXLAN message structure is improved, the source device that can will receive The message sent is encapsulated in VXLAN message, so can forward a large amount of messages by a link, solves a large amount of message simultaneously Problem during transmission exerted heavy pressures on VXLAN tunnel, to reduce packet loss phenomenon, improves tunnel transmission efficiency, but whole The network architecture is essentially identical with the network architecture in correlation technique, can change the network construction in correlation technique into source device and arrive VXLAN switch 2 communicates the network architecture diagram as the present invention by a link.
So, in order to make it easy to understand, network architecture diagram and Fig. 4 to Fig. 6 below in conjunction with the present invention describe and will receive Message be packaged into the process of VXLAN message, wherein, Fig. 4-Fig. 5 is VXLAN message structure schematic diagram in the present invention, such as Fig. 4 institute Showing, above-mentioned VXLAN message comprises outer layer MAC header, outer layer IP head and outer layer UDP head, and deposits message in reserved bit Identify and message number, and n data cell shown in Fig. 4 is the data cell that VXLAN message can encapsulate in theory, actual On, the message number of VXLAN message encapsulation may be less than n.It is to describe the one of the present invention from message package-side to show as shown in Figure 6 The another kind of message forwarding method flow chart of example embodiment, said method comprising the steps of:
In step 601, the default message that source device sends is received.
In the present embodiment, above-mentioned default message can include that ARP floods message, general by this ARP of VXLAN tunnel transmission During flood message, the message that needs to flood this ARP is encapsulated in VXLAN message, but, owing to the flood length of message of ARP is the least In the length of above-mentioned VXLAN message, flooding message if encapsulating an ARP in a VXLAN message, the most not making full use of VXLAN message structure, causes the waste of this VXLAN message structure, then, by following step 603a, can be by general for multiple ARP Flood message is encapsulated in VXLAN message transmission, contributes to making full use of message structure, improves the utilization rate of VXLAN message;When So, above-mentioned default message can also be other kinds of message, and this is not limited by the present invention.
In step 602, it may be judged whether there is the VXLAN message of establishment being in buffer status.
In the present embodiment, when receiving the default message that source device sends, it can be determined that whether exist and be in caching The VXLAN message of establishment of state, this VXLAN message includes multiple data cell, any data list in multiple data cells Unit is for encapsulating above-mentioned default message, other data cells for encapsulating other messages that described source device sends, multiple data Unit can include with preset message and other messages corresponding VXLAN mark.
Such as, in inventive network framework, when VXLAN switch 1 receives the default message that source device sends, it is assumed that Including at least the data cell of as shown in Figure 4 in VXLAN message, this data cell is packaged with the source device received and sends Message and correspondence VXLAN mark, then, it may be determined that above-mentioned VXLAN message belongs to the establishment being in buffer status VXLAN message.
In step 603a, by above-mentioned default message encapsulation to the above-mentioned VXLAN message created.
In the present embodiment, when in above-mentioned steps 602, it may be determined that there is the VXLAN of establishment being in buffer status During message, the default message that the source device received sends can be encapsulated to creating in VXLAN message, i.e. can will receive To source device send message and correspondence VXLAN mark be encapsulated in data cell, and splice creating VXLAN report After a upper data cell in literary composition.
Such as, receive, when VXLAN switch 1, the default message that source device sends, it is assumed that may determine that as shown in Figure 4 VXLAN message is in the VXLAN message of establishment of buffer status, and has been packaged with in data cell 1 as shown in Figure 5 and connects The message that the source device received sends, then the above-mentioned default message that the source device received can be sent and correspondence VXLAN mark is encapsulated in data cell 2, and splices after data cell 1, when receiving the message that next source device sends Time, this message and corresponding VXLAN can be identified and be encapsulated in data cell 3, and splice after data cell 2.
In step 603b, create described VXLAN message.
In the present embodiment, when in above-mentioned steps 602, it may be determined that there is not the establishment being in buffer status During VXLAN message, this VXLAN message can be created, it is possible to again perform step 603a, i.e. can be by the above-mentioned source received The default message encapsulation that equipment sends has created in VXLAN message to this.
Such as, receive, when VXLAN switch 1, the default message that source device sends, it is possible to determine and there is not place The VXLAN message of establishment in buffer status, then, VXLAN message as shown in Figure 4 can be created, and pre-by receive If the VXLAN mark of message and correspondence is encapsulated in data cell 1 as shown in Figure 5, send when receiving next source device Message time, the VXLAN of this message and correspondence thereof can be identified and be encapsulated in data cell 2, and be spliced in data sheet After unit 1.
In step 604, the message number that cumulative packed source device sends.
In the present embodiment, when VXLAN switch 1 receives the message that source device sends, can by this message with Corresponding VXLAN mark is encapsulated in VXLAN message, at this point it is possible to the report will deposited in VXLAN heading as shown in Figure 4 Literary composition number adds one, when packed message total length reach the maximum of VXLAN message that created can encapsulated message length time, VXLAN switch 1 forwards this VXLAN message.
In step 605, record VXLAN message is in the caching duration of buffer status.
In the present embodiment, being not up to the maximum of the above-mentioned VXLAN message created at packed message total length can Before encapsulated message length, this VXLAN message can be recorded and be in the caching duration of buffer status.
In step 606, it is judged that whether the caching duration that VXLAN message is corresponding exceedes preset duration.
In the present embodiment, the above-mentioned VXLAN message that created that can above-mentioned steps 605 be recorded is in buffer status Caching duration is made comparisons with preset buffer memory duration, when the above-mentioned VXLAN message that created is in the caching duration of buffer status and does not reaches During to preset buffer memory duration, above-mentioned steps 603a, the message envelope that i.e. source device received can be sent can be continued executing with It is filled in above-mentioned VXLAN message.
In step 607, VXLAN message is forwarded.
In the present embodiment, when when creating the caching that VXLAN message is in buffer status of record in above-mentioned steps 605 Length reaches preset buffer memory duration, and VXLAN switch 1 can forward this VXLAN message.
In the inventive solutions, when VXLAN exchange 1, the message that the source device received sends is packaged into VXLAN message, to purpose equipment send before, VXLAN switch 2 can be first passed through and decapsulate, below in conjunction with Fig. 4, Fig. 5 and Fig. 7 describes the another kind of message forwarding method flow chart of one example embodiment of the present invention from message decapsulation side, as Shown in Fig. 7, said method comprising the steps of:
In step 701, receive VXLAN message.
In the present embodiment, the VXLAN switch 2 in inventive network framework receives what VXLAN switch 1 sent VXLAN message, this VXLAN message includes multiple data cell, and any data unit in multiple data cells is used for packaged source Default message, other data cells that equipment sends are used for encapsulating other messages that described source device sends, multiple data cells Can include with preset message and other messages corresponding VXLAN mark.
In a step 702, when resolving the VXLAN message received, determine in VXLAN message according to message identification and contain The data cell of the default message that packaged source equipment sends.
In the present embodiment, during resolving any of the above-described VXLAN mark, VXLAN heading to be checked is deposited Message identification, determine the number of default message sent in above-mentioned VXLAN message containing packaged source equipment according to this message identification According to unit, wherein, this data cell is packaged with message, corresponding VXLAN mark, message identification and message that source device sends The information such as number.
For example, it is assumed that VXLAN switch 2 receives VXLAN message as shown in Figure 4, resolving this VXLAN message process In, determine in above-mentioned VXLAN message containing the transmission of packaged source equipment according to the message identification in the heading of this VXLAN message Preset the data cell of message, then, can resolve and obtain default message and the VXLAN mark of correspondence thereof that source device sends.
In step 703, the accumulative message number reduced in VXLAN heading.
In the present embodiment, when VXLAN switch 2 often parses the message that a source device sends, can be by such as Fig. 4 institute The message number deposited in the VXLAN heading shown subtracts one, when the message number in above-mentioned VXLAN heading is reduced to zero, Illustrate that in this VXLAN message, all messages of encapsulation are the most resolved.
In step 704, it is judged that the message after whether VXALN function is unlocked and decapsulates is the most legal.
In the present embodiment, it can be determined that whether the VXLAN function of VXLAN switch 2 is unlocked, and may determine that solution The message that the source device that encapsulation obtains sends is the most legal.
In step 705a, send to mesh according to corresponding link according to the message that decapsulation is obtained by this VXLAN mark Equipment.
In the present embodiment, when in above-mentioned steps 704, it may be determined that the VXLAN function of VXLAN switch 2 is unlocked, and When the message of decapsulation acquisition is legal, the VXLAN mark that the message of the source device transmission that decapsulation obtains is corresponding can be obtained, and Send to purpose equipment according to corresponding link according to the message that decapsulation is obtained by this VXLAN mark.
Such as, the data cell that VXLAN message as shown in Figure 4 comprises is packaged with source device send default message and Its correspondence VXLAN mark, it is assumed that may determine that the VXLAN function of VXLAN switch 2 is unlocked, and decapsulation obtain pre- If message is legal, and above-mentioned default message corresponding VXLAN mark be VXLAN2, then, VXLAN switch 2 can by this This default message is sent to purpose equipment by the link 2 in the invention network architecture.
In step 705b, abandon the message that decapsulation obtains.
In the present embodiment, in above-mentioned steps 704, when the VXLAN function that may determine that VXLAN switch 2 is not opened Opening, or the message that decapsulation obtains is illegal, VXLAN switch 2 can abandon the message that decapsulation obtains.
From above technical scheme, the present invention is encapsulated in VXLAN message by the multiple messages sent by source device, Forward above-mentioned VXLAN message by VXLAN tunnel again, and each message decapsulation obtained send to purpose equipment so that A large amount of messages can pass through a link transmission in transmitting procedure, and without taking multilink, contribute to reducing tunnel and pass Defeated pressure, thus reduce packet loss phenomenon, improve message transmissions efficiency, it addition, the present invention is by being encapsulated in VXLAN by a large amount of messages Message forwards, contributes to making full use of message structure, improve the utilization rate of VXLAN message.
Corresponding with the embodiment of aforementioned message forwarding method, present invention also provides the embodiment of apparatus for forwarding message.
The embodiment of the application apparatus for forwarding message can be applied on VXLAN switch.Device embodiment can be passed through Software realizes, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as a logic meaning Device in justice, is that computer program instructions corresponding in nonvolatile memory is read by the processor by its place equipment Formation is run in internal memory.For hardware view, except processor, internal memory, network interface and nonvolatile memory Outside, it is also possible to include other hardware, this is repeated no more.
Fig. 8 is that the present invention describes a kind of apparatus for forwarding message flow chart of an exemplary embodiment from message package-side, should Device includes: first receives unit 801, encapsulation unit 802 and the first retransmission unit 803.
Wherein, first receives unit 801, receives the default message that source device sends.
Encapsulation unit 802, is packaged into VXLAN message by described default message;Wherein, described VXLAN message includes multiple Data cell, any data unit in multiple data cells is used for encapsulating described default message, other data cells for sealing Fill other messages that described source device sends.
First retransmission unit 803, forwards described VXLAN message by VXLAN tunnel.
Optionally, described default message is packaged into VXLAN message by following manner by described encapsulation unit:
When there is not the VXLAN message of establishment being in buffer status, create described VXLAN message, and by described pre- If in the described any data unit of message encapsulation extremely described VXLAN message, and being set to described VXLAN message cache shape State;
When there is the VXLAN message of establishment being in buffer status, the encapsulation of described default message is created to described In VXLAN message;Wherein, the described VXLAN message that created comprises at least one data that can be used for encapsulating described default message Unit.
Optionally, also include:
Record unit 804, records each VXLAN message and is in the caching duration of buffer status;
Second retransmission unit 805, when the caching duration that arbitrary VXLAN message is corresponding exceedes preset duration, passes through VXLAN Tunnel forwards described arbitrary VXLAN message.
Optionally, described default message includes that ARP floods message.
Fig. 9 is that the present invention describes a kind of apparatus for forwarding message flow chart of an exemplary embodiment from message decapsulation side, This device includes: second receives unit 901, decapsulation unit 902 and transmitting element 903.
Wherein, second receives unit 901, receives VXLAN message by VXLAN tunnel;Wherein, described VXLAN message bag Include multiple data cell, any data unit in multiple data cells for packaged source equipment send default message, other Data cell is for encapsulating other messages that described source device sends.
Decapsulation unit 902, decapsulates described VXLAN message;
Transmitting element 903, sends the message of encapsulation in each data cell that decapsulation obtains to purpose equipment.
Optionally, also include:
Determine unit 904, during resolving the arbitrary VXLAN message received, if described arbitrary VXLAN message Heading in when comprising predefined message identification, determine and described arbitrary VXLAN message include the described source device of encapsulation The described any data unit of the default message sent.
Optionally, described each data cell includes packed message and corresponding VXLAN mark;Described transmitting element By following manner message of encapsulation in each data cell that the transmission decapsulation of purpose equipment obtains:
Obtain the VXLAN mark after decapsulation;
According to the message of encapsulation in each data cell that described decapsulation is obtained by described VXLAN mark according to accordingly Link sends to purpose equipment.
Optionally, described VXLAN message is decapsulated by described decapsulation unit by following manner:
Resolve the message number in the heading of described arbitrary VXLAN message;
Decapsulation obtains the message that number is described message number.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.

Claims (10)

1. a message forwarding method, it is characterised in that being applied on VXLAN switch, described method includes:
Receive the default message that source device sends;
Described default message is packaged into VXLAN message;Wherein, described VXLAN message includes multiple data cell, multiple data Any data unit in unit is for encapsulating described default message, other data cells for encapsulating what described source device sent Other messages;
Described VXLAN message is forwarded by VXLAN tunnel.
Method the most according to claim 1, it is characterised in that described default message is packaged into VXLAN message, including:
When there is not the VXLAN message of establishment being in buffer status, create described VXLAN message, and by described default report In the described any data unit of literary composition encapsulation extremely described VXLAN message, and described VXLAN message is set to buffer status;
When there is the VXLAN message of establishment being in buffer status, the encapsulation of described default message is created VXLAN to described In message;Wherein, the described VXLAN message that created comprises at least one data cell that can be used for encapsulating described default message.
Method the most according to claim 2, it is characterised in that also include:
Record each VXLAN message and be in the caching duration of buffer status;
When the caching duration that arbitrary VXLAN message is corresponding exceedes preset duration, forward described arbitrary by VXLAN tunnel VXLAN message.
Method the most according to claim 1, it is characterised in that described default message includes that ARP floods message.
5. a message forwarding method, it is characterised in that being applied on VXLAN switch, described method includes:
VXLAN message is received by VXLAN tunnel;Wherein, described VXLAN message includes multiple data cell, multiple data sheets Default message, other data cells that any data unit in unit sends for packaged source equipment are used for encapsulating described source device Other messages sent;
Described VXLAN message is decapsulated;
The message of encapsulation in each data cell that decapsulation obtains is sent to purpose equipment.
Method the most according to claim 5, it is characterised in that also include:
During resolving the arbitrary VXLAN message received, if the heading of described arbitrary VXLAN message comprising predetermined During the message identification of justice, determine described arbitrary VXLAN message includes and encapsulate the institute of default message that described source device sends State any data unit.
Method the most according to claim 5, it is characterised in that each data cell includes that packed message is with corresponding VXLAN identifies;Described transmission to purpose equipment decapsulates the message of encapsulation in each data cell obtained, including:
Obtain the VXLAN mark after decapsulation;
According to the message of encapsulation in each data cell that described decapsulation is obtained by described VXLAN mark according to corresponding link Send to purpose equipment.
Method the most according to claim 5, it is characterised in that described described VXLAN message is decapsulated, including:
Resolve the message number in the heading of described arbitrary VXLAN message;
Decapsulation obtains the message that number is described message number.
9. an apparatus for forwarding message, it is characterised in that being applied on VXLAN switch, described device includes:
First receives unit, receives the default message that source device sends;
Encapsulation unit, is packaged into VXLAN message by described default message;Wherein, described VXLAN message includes multiple data sheet Unit, it is described for encapsulating that any data unit in multiple data cells is used for encapsulating described default message, other data cells Other messages that source device sends;
First retransmission unit, forwards described VXLAN message by VXLAN tunnel.
10. an apparatus for forwarding message, it is characterised in that being applied on VXLAN switch, described device includes:
Second receives unit, receives VXLAN message by VXLAN tunnel;Wherein, described VXLAN message includes multiple data sheet Unit, default message, other data cells that any data unit in multiple data cells sends for packaged source equipment are used for Encapsulate other messages that described source device sends;
Decapsulation unit, decapsulates described VXLAN message;
Transmitting element, sends the message of encapsulation in each data cell that decapsulation obtains to purpose equipment.
CN201610810332.5A 2016-09-08 2016-09-08 A kind of message forwarding method and device Active CN106302258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810332.5A CN106302258B (en) 2016-09-08 2016-09-08 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810332.5A CN106302258B (en) 2016-09-08 2016-09-08 A kind of message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106302258A true CN106302258A (en) 2017-01-04
CN106302258B CN106302258B (en) 2019-06-04

Family

ID=57710523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810332.5A Active CN106302258B (en) 2016-09-08 2016-09-08 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106302258B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612827A (en) * 2017-10-11 2018-01-19 郑州云海信息技术有限公司 A kind of method and apparatus for improving strange land data center vxlan network qualities
CN110445658A (en) * 2019-08-16 2019-11-12 中国银行股份有限公司 A kind of message processing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618596A (en) * 2013-05-15 2014-03-05 盛科网络(苏州)有限公司 Encryption method for inner layer information in VXLAN (Virtual Extensible Local Area Net) tunnel
CN103795636A (en) * 2012-11-02 2014-05-14 华为技术有限公司 Multicast processing method, device and system
US20140348166A1 (en) * 2013-05-21 2014-11-27 Cisco Technology, Inc. Optimal forwarding for trill fine-grained labeling and vxlan interworking
CN104426772A (en) * 2013-09-10 2015-03-18 ***通信集团公司 Precision time protocol (PTP) message transmitting and receiving methods and PTP message transmitting and receiving equipment
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
EP2981031A1 (en) * 2014-07-31 2016-02-03 Arista Networks, Inc. Method and system for vtep redundancy in a multichassis link aggregation domain
CN105634901A (en) * 2015-12-28 2016-06-01 杭州华三通信技术有限公司 MAC address information synchronization method and device based on CAS VXLAN

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795636A (en) * 2012-11-02 2014-05-14 华为技术有限公司 Multicast processing method, device and system
CN103618596A (en) * 2013-05-15 2014-03-05 盛科网络(苏州)有限公司 Encryption method for inner layer information in VXLAN (Virtual Extensible Local Area Net) tunnel
US20140348166A1 (en) * 2013-05-21 2014-11-27 Cisco Technology, Inc. Optimal forwarding for trill fine-grained labeling and vxlan interworking
CN104426772A (en) * 2013-09-10 2015-03-18 ***通信集团公司 Precision time protocol (PTP) message transmitting and receiving methods and PTP message transmitting and receiving equipment
EP2981031A1 (en) * 2014-07-31 2016-02-03 Arista Networks, Inc. Method and system for vtep redundancy in a multichassis link aggregation domain
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
CN105634901A (en) * 2015-12-28 2016-06-01 杭州华三通信技术有限公司 MAC address information synchronization method and device based on CAS VXLAN

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612827A (en) * 2017-10-11 2018-01-19 郑州云海信息技术有限公司 A kind of method and apparatus for improving strange land data center vxlan network qualities
CN110445658A (en) * 2019-08-16 2019-11-12 中国银行股份有限公司 A kind of message processing method and system

Also Published As

Publication number Publication date
CN106302258B (en) 2019-06-04

Similar Documents

Publication Publication Date Title
US10757231B2 (en) Providing network efficiencies in forwarding packets among provider networks and applying segment routing policies
CN103888386B (en) The transmission method and device, system of expansible virtual local area network packet
CN106878138B (en) A kind of message transmitting method and device
RU2493677C2 (en) Method and router for implementing mirroring
CN103401773B (en) Method and network equipment realizing interboard communication
CN106209557B (en) Message forwarding method and device
CN106998286A (en) A kind of VXLAN message forwarding methods and device
CN106254256A (en) Data message forwarding methods based on three layers of VXLAN gateway and equipment
CN107645433B (en) Message forwarding method and device
JP2019521619A (en) Packet forwarding
CN101262429B (en) A system and method for realizing virtual private network communication
WO2021088813A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN106878072A (en) A kind of message transmitting method and device
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN107948077A (en) The retransmission method and device of a kind of data message
CN104521220A (en) Method and device for message processing
CN104579973B (en) Message forwarding method and device in a kind of Virtual Cluster
CN113364660A (en) Data packet processing method and device in LVS load balancing
CN101969404A (en) Method and equipment for processing messages
CN106302258B (en) A kind of message forwarding method and device
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN113890680A (en) Transmission method applied to fiber channel avionics network DDS
CN105897929A (en) Video monitoring data backup method and device
CN102655476B (en) Internet protocol flow transmitting method and device
CN110300064A (en) A kind of data traffic processing method, equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant