CN107786410A - A kind of VXLAN implementation methods and terminal based on Ethernet encapsulation - Google Patents

A kind of VXLAN implementation methods and terminal based on Ethernet encapsulation Download PDF

Info

Publication number
CN107786410A
CN107786410A CN201611241988.6A CN201611241988A CN107786410A CN 107786410 A CN107786410 A CN 107786410A CN 201611241988 A CN201611241988 A CN 201611241988A CN 107786410 A CN107786410 A CN 107786410A
Authority
CN
China
Prior art keywords
fields
vlan
data frame
field
vxlan
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
CN201611241988.6A
Other languages
Chinese (zh)
Other versions
CN107786410B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611241988.6A priority Critical patent/CN107786410B/en
Publication of CN107786410A publication Critical patent/CN107786410A/en
Application granted granted Critical
Publication of CN107786410B publication Critical patent/CN107786410B/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
    • 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]
    • H04L12/4645Details on frame tagging

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 embodiment of the invention discloses a kind of VXLAN implementation methods and terminal based on Ethernet encapsulation, wherein method includes:Data frame is obtained, the data frame includes Ethernet protocol field, user-priority field, reference format indication field and VLAN id fields;Selection field and VXLAN id fields are set in the data frame;The VXLAN id fields and the VLAN id fields are merged to form VNI fields;If forwarding the data frame, the selection field is parsed;The data frame forwarding logic corresponding with the data frame is determined to forward the data frame according to the analysis result of the selection field.The present invention can reduce the computational load of network interface card, while can also improve the treatment effeciency of network interface card;Furthermore it is also possible to improve the forward efficiency of interchanger, cost consumption is saved.

Description

A kind of VXLAN implementation methods and terminal based on Ethernet encapsulation
Technical field
The present invention relates to electronic technology field, more particularly to a kind of VXLAN implementation methods and end based on Ethernet encapsulation End.
Background technology
At present, in traditional VXLAN encapsulated message forms, network interface card needs to handle the virtual network mark of 24 bits (Bits) (Virtual Network Identifier, VNI) field is known, and it also requires VXLAN encapsulated messages are loaded and unloaded Load processing, which not only adds the computational load of network interface card, while can also reduce the treatment effeciency of network interface card, and for being configured with The server of corresponding network interface card can bring more cost consumptions.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of VXLAN implementation methods and terminal based on Ethernet encapsulation.
A kind of VXLAN implementation methods based on Ethernet encapsulation, this method include:
Data frame is obtained, the data frame includes Ethernet protocol field, user-priority field, reference format instruction word Section and VLAN id fields;
Selection field and VXLAN id fields are set in the data frame;
The VXLAN id fields and the VLAN id fields are merged to form VNI fields;
If forwarding the data frame, the selection field is parsed;
The data frame forwarding logic corresponding with the data frame is determined to turn according to the analysis result of the selection field Send out data frame described.
Specifically, described set selection field and VXLAN id fields in the data frame, specifically include:
The selection field and institute are set between the reference format indication field and VLAN id fields in the data frame State VXLAN id fields.
Specifically, if described forward the data frame, the selection field is parsed, is specifically included:
Obtain the flag in the selection field;
The analysis result of the selection field is determined according to the flag.
Specifically, the analysis result according to the selection field determines that the data frame corresponding with the data frame turns Logic is sent out to forward the data frame, is specifically included:
Found according to the analysis result in the mapping table pre-set and the VLAN id fields are corresponding reflects Relation is penetrated to forward the data frame;
Or
The mapping corresponding with the VNI fields is found according to the analysis result in the mapping table pre-set to close It is to forward the data frame.
Specifically, the selection field is 4 bits, wherein the last position of the selection field is arranged to flag, it is described VXLAN id fields are 12 bits.
A kind of terminal, the terminal include:
First acquisition unit, for obtaining data frame, the data frame includes Ethernet protocol field, User Priority word Section, reference format indication field and VLAN id fields;
Setting unit, for setting selection field and VXLAN id fields in the data frame;
Combining unit, for merging to form VNI fields the VXLAN id fields and the VLAN id fields;
Resolution unit, if for forwarding the data frame, parse the selection field;
First determining unit, for determining the number corresponding with the data frame according to the analysis result of the selection field According to frame forwarding logic to forward the data frame.
Specifically, the setting unit, is specifically used for:
The selection field and institute are set between the reference format indication field and VLAN id fields in the data frame State VXLAN id fields.
Specifically, the resolution unit, is specifically included:
Second acquisition unit, for obtaining the flag in the selection field;
Second unit, for determining the analysis result of the selection field according to the flag.
Specifically, first determining unit, is specifically included:
First searching unit, for being found and the VLAN in the mapping table pre-set according to the analysis result The corresponding mapping relations of id field are to forward the data frame;
Or
Second searching unit, for being found and the VNI in the mapping table pre-set according to the analysis result The corresponding mapping relations of field are to forward the data frame.
Specifically, the selection field is 4 bits, wherein the last position of the selection field is arranged to flag, it is described VXLAN id fields are 12 bits.
As seen from the above, the embodiment of the present invention sets selection field and VXLAN id fields in a data frame, and by VXLAN Id field merges the data frame newly encapsulated with the VLAN id fields in data frame, in this data frame encapsulation format Under, network interface card only needs processing selection field and VXLAN id fields, it is no longer necessary to and VXLAN encapsulation is loaded and unloaded, this Sample can reduce the computational load of network interface card, while can also improve the treatment effeciency of network interface card;When the data frame after forwarding encapsulates, By parsing selection field and judging the forwarding logic forwarding data frame of data frame, forward efficiency can be so improved, is saved into This consumption.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention.
Fig. 2 is data frame format schematic diagram provided in an embodiment of the present invention.
Fig. 3 is another data frame format schematic diagram provided in an embodiment of the present invention.
Fig. 4 is another data frame format schematic diagram provided in an embodiment of the present invention.
Fig. 5 is a kind of another signal stream of VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Cheng Tu.
Fig. 6 is a kind of another signal stream of VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Cheng Tu.
Fig. 7 is a kind of another signal stream of VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Cheng Tu.
Fig. 8 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 9 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 10 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 11 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 12 is a kind of structure composition schematic diagram of another embodiment of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
As shown in figure 1, it is a kind of signal of the VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Flow chart.The method comprising the steps of S101~S105.
S101, obtains data frame, and the data frame includes Ethernet protocol field, user-priority field, reference format Indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16 bits (Bits), and user-priority field is 3 bits (Bits), Reference format indication field is 1 bit (Bit), and VLAN id fields are 12 bits (Bits).
S102, selection field and VXLAN id fields are set in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the selection is set between the reference format indication field and VLANID fields in traditional VLAN frames Field and the VXLAN id fields, and ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN after being encapsulated Frame;Or Fig. 4 is refer to, as shown in FIG., can also be to carry out another schematic diagram of VLAN encapsulation to the VLAN frames The selection field and the VXLAN id fields are set after the VLAN id fields in traditional VLAN frames, and ensured VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection field With the VXLAN id fields altogether with 2 byte representations, wherein, the selection field is 4 bits (Bits), the VXLAN Id field is 12 bits (Bits).
S103, the VXLAN id fields and the VLAN id fields are merged to form VNI fields.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
S104, if forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
S105, the data frame forwarding logic corresponding with the data frame is determined according to the analysis result of the selection field To forward the data frame.
Specifically, in embodiments of the present invention, the selection field is parsed, if it is 0 that analysis result, which is flag, Represent using the VLAN id fields in VNI fields to carry out mapping forwarding, according to the VLAN being previously positioned in chip layer with VXLAN mapping tables, the mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in the mapping table Forward the VLAN frames;If it is 1 that analysis result, which is flag, represent to carry out mapping forwarding using VNI fields, according to being previously positioned at VLAN and VXLAN mapping tables in chip layer, the mapping relations of VNI fields in the corresponding VLAN frames are found in the mapping table Forward the VLAN frames.
As seen from the above, the embodiment of the present invention sets selection field and VXLAN id fields in a data frame, and by VXLAN Id field merges the data frame newly encapsulated with the VLAN id fields in data frame, in this data frame encapsulation format Under, network interface card only needs processing selection field and VXLAN id fields, it is no longer necessary to and VXLAN encapsulation is loaded and unloaded, this Sample can reduce the computational load of network interface card, while can also improve the treatment effeciency of network interface card;When the data frame after forwarding encapsulates, By parsing selection field and judging the forwarding logic forwarding data frame of data frame, forward efficiency can be so improved, is saved into This consumption.
As shown in figure 5, it is a kind of signal of the VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Flow chart.The method comprising the steps of S201~S206.
S201, obtains data frame, and the data frame includes Ethernet protocol field, user-priority field, reference format Indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
S202, selection field and VXLAN id fields are set in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
S203, the VXLAN id fields and the VLAN id fields are merged to form VNI fields.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
S204, obtain the flag in the selection field.
Specifically, in embodiments of the present invention, the flag in the selection field is first obtained, is corresponded to using in flag Mark determine it is described selection field analysis result.
S205, the analysis result of the selection field is determined according to the flag.
Specifically, in embodiments of the present invention, flag can fill 0 or 1, when flag filling 0, represent to use VLAN id fields in VNI fields carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, flag can also be filled with 1 or 0, when flag filling 1, represent to use the VLAN in VNI fields Id field carries out mapping forwarding, when filling 0, represents to carry out mapping forwarding using VNI fields;The flag can also basis It is actually needed and is arranged to other numerals that can play mark action.
S206, the data frame forwarding logic corresponding with the data frame is determined according to the analysis result of the selection field To forward the data frame.
Specifically, in embodiments of the present invention, the selection field is parsed, if it is 0 that analysis result, which is flag, Represent using the VLAN id fields in VNI fields to carry out mapping forwarding, according to the VLAN being previously positioned in chip layer with VXLAN mapping tables, the mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in the mapping table Forward the VLAN frames;If it is 1 that analysis result, which is flag, represent to carry out mapping forwarding using VNI fields, according to being previously positioned at VLAN and VXLAN mapping tables in chip layer, the mapping relations of VNI fields in the corresponding VLAN frames are found in the mapping table Forward the VLAN frames.
As seen from the above, the embodiment of the present invention is by obtaining the flag selected in field, and passes through acquired mark Position determines analysis result, and the forwarding logic of VLAN frames is determined by the analysis result, improves the forward efficiency of VLAN frames.
As shown in fig. 6, it is a kind of signal of the VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Flow chart.The method comprising the steps of S301~S305.
S301, obtains data frame, and the data frame includes Ethernet protocol field, user-priority field, reference format Indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
S302, selection field and VXLAN id fields are set in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
S303, the VXLAN id fields and the VLAN id fields are merged to form VNI fields.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
S304, if forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
S305, found according to the analysis result in the mapping table pre-set relative with the VLAN id fields The mapping relations answered are to forward the data frame.
Specifically, in embodiments of the present invention, the mapping table pre-set is VLAN and VXLAN mapping tables, and this reflects Firing table is placed on chip layer, and the chip layer is the chip layer in interchanger, and reflecting for VLAN frames is correspondingly arranged in the mapping table Penetrate relation;When it is 0 that analysis result, which is flag, according to the VLAN being previously positioned in chip layer and VXLAN mapping tables, at this The mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in mapping table, and should by interchanger forwarding VLAN frames.
As seen from the above, the embodiment of the present invention is forwarded by the mapping relations being placed in the mapping table of exchanger core lamella The VLAN frames, can save cost consumption.
As shown in fig. 7, it is a kind of signal of the VXLAN implementation methods based on Ethernet encapsulation provided in an embodiment of the present invention Flow chart.The method comprising the steps of S401~S405.
S401, obtains data frame, and the data frame includes Ethernet protocol field, user-priority field, reference format Indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
S402, selection field and VXLAN id fields are set in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
S403, the VXLAN id fields and the VLAN id fields are merged to form VNI fields.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
S404, if forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
S405, found according to the analysis result in the mapping table pre-set corresponding with the VNI fields Mapping relations are to forward the data frame.
Specifically, in embodiments of the present invention, the mapping table pre-set is VLAN and VXLAN mapping tables, and this reflects Firing table is placed on chip layer, and the chip layer is the chip layer in interchanger, and reflecting for VLAN frames is correspondingly arranged in the mapping table Penetrate relation;When it is 1 that analysis result, which is flag, according to the VLAN being previously positioned in chip layer and VXLAN mapping tables, at this The mapping relations of VNI fields in the corresponding VLAN frames are found in mapping table, and the VLAN frames are forwarded by interchanger.
As seen from the above, the embodiment of the present invention is forwarded by the mapping relations being placed in the mapping table of exchanger core lamella The VLAN frames, can save cost consumption.
As shown in figure 8, it is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 500 includes:First Acquiring unit 501, setting unit 502, combining unit 503, resolution unit 504, the first determining unit 505.
Wherein first acquisition unit 501, for obtaining data frame, the data frame includes Ethernet protocol field, user Precedence field, reference format indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
Setting unit 502, for setting selection field and VXLAN id fields in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
Combining unit 503, for merging to form VNI words the VXLAN id fields and the VLAN id fields Section.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
Resolution unit 504, if for forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
Determining unit 505, for determining the number corresponding with the data frame according to the analysis result of the selection field According to frame forwarding logic to forward the data frame.
Specifically, in embodiments of the present invention, the selection field is parsed, if it is 0 that analysis result, which is flag, Represent using the VLAN id fields in VNI fields to carry out mapping forwarding, according to the VLAN being previously positioned in chip layer with VXLAN mapping tables, the mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in the mapping table Forward the VLAN frames;If it is 1 that analysis result, which is flag, represent to carry out mapping forwarding using VNI fields, according to being previously positioned at VLAN and VXLAN mapping tables in chip layer, the mapping relations of VNI fields in the corresponding VLAN frames are found in the mapping table Forward the VLAN frames.
As seen from the above, the embodiment of the present invention sets selection field and VXLAN id fields in a data frame, and by VXLAN Id field merges the data frame newly encapsulated with the VLAN id fields in data frame, in this data frame encapsulation format Under, network interface card only needs processing selection field and VXLAN id fields, it is no longer necessary to and VXLAN encapsulation is loaded and unloaded, this Sample can reduce the computational load of network interface card, while can also improve the treatment effeciency of network interface card;When the data frame after forwarding encapsulates, By parsing selection field and judging the forwarding logic forwarding data frame of data frame, forward efficiency can be so improved, is saved into This consumption.
As shown in figure 9, it is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 600 includes:First Acquiring unit 601, setting unit 602, combining unit 603, second acquisition unit 604, the second determining unit 605, first determine Unit 606.
Wherein first acquisition unit 601, for obtaining data frame, the data frame includes Ethernet protocol field, user Precedence field, reference format indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
Setting unit 602, for setting selection field and VXLAN id fields in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
Combining unit 603, for merging to form VNI words the VXLAN id fields and the VLAN id fields Section.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
Second acquisition unit 604, for obtaining the flag in the selection field.
Specifically, in embodiments of the present invention, the flag in the selection field is first obtained, is corresponded to using in flag Mark determine it is described selection field analysis result.
Second determining unit 605, for determining the analysis result of the selection field according to the flag.
Specifically, in embodiments of the present invention, flag can fill 0 or 1, when flag filling 0, represent to use VLAN id fields in VNI fields carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, flag can also be filled with 1 or 0, when flag filling 1, represent to use the VLAN in VNI fields Id field carries out mapping forwarding, when filling 0, represents to carry out mapping forwarding using VNI fields;The flag can also basis It is actually needed and is arranged to other numerals that can play mark action.
First determining unit 606, it is corresponding with the data frame for being determined according to the analysis result of the selection field Data frame forwarding logic to forward the data frame.
Specifically, in embodiments of the present invention, the selection field is parsed, if it is 0 that analysis result, which is flag, Represent using the VLAN id fields in VNI fields to carry out mapping forwarding, according to the VLAN being previously positioned in chip layer with VXLAN mapping tables, the mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in the mapping table Forward the VLAN frames;If it is 1 that analysis result, which is flag, represent to carry out mapping forwarding using VNI fields, according to being previously positioned at VLAN and VXLAN mapping tables in chip layer, the mapping relations of VNI fields in the corresponding VLAN frames are found in the mapping table Forward the VLAN frames.
As shown in Figure 10, it is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 700 includes:The One acquiring unit 701, setting unit 702, combining unit 703, resolution unit 704, the first searching unit 705.
Wherein described first acquisition unit 701, for obtaining data frame, the data frame include Ethernet protocol field, User-priority field, reference format indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
Setting unit 702, for setting selection field and VXLAN id fields in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
Combining unit 703, for merging to form VNI words the VXLAN id fields and the VLAN id fields Section.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
Resolution unit 704, if for forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
First searching unit 705, for found according to the analysis result in the mapping table pre-set with it is described The corresponding mapping relations of VLAN id fields are to forward the data frame.
Specifically, in embodiments of the present invention, the mapping table pre-set is VLAN and VXLAN mapping tables, and this reflects Firing table is placed on chip layer, and the chip layer is the chip layer in interchanger, and reflecting for VLAN frames is correspondingly arranged in the mapping table Penetrate relation;When it is 0 that analysis result, which is flag, according to the VLAN being previously positioned in chip layer and VXLAN mapping tables, at this The mapping relations of the VLAN id fields in the corresponding VLAN frames in VNI fields are found in mapping table, and should by interchanger forwarding VLAN frames.
As shown in figure 11, it is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 800 includes:The One acquiring unit 801, setting unit 802, combining unit 803, resolution unit 804, the second searching unit 805.
Wherein first acquisition unit 801, for obtaining data frame, the data frame includes Ethernet protocol field, user Precedence field, reference format indication field and VLAN id fields.
Specifically, in embodiments of the present invention, the data frame is traditional VLAN frames, as shown in Fig. 2 traditional VLAN The frame structure of frame is made up of 4 parts, including Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields, wherein, Ethernet protocol field is 16Bits, user-priority field 3Bits, reference format instruction Field is 1Bit, and VLAN id fields are 12Bits.
Setting unit 802, for setting selection field and VXLAN id fields in the data frame.
Specifically, in embodiments of the present invention, Fig. 3 is refer to, to carry out the schematic diagram of VLAN encapsulation to the VLAN frames, As shown in FIG., the choosing is set between the reference format indication field and VLAN id fields in traditional VLAN frames Select field and the VXLAN id fields, and ensure that VXLANID fields are adjacent with VLAN id fields, and after being encapsulated VLAN frames;Or Fig. 4 is refer to, to carry out another schematic diagram of VLAN encapsulation to the VLAN frames, as shown in FIG., may be used also To set the selection field and the VXLAN id fields after the VLAN id fields in traditional VLAN frames, and Ensure that VXLAN id fields are adjacent with VLAN id fields, and the VLAN frames after being encapsulated;It should be noted that the selection Field and the VXLAN id fields use 2 byte representations altogether, wherein, described to select field be 4Bits, the VXLAN ID Field is 12Bits.
Combining unit 803, for merging to form VNI words the VXLAN id fields and the VLAN id fields Section.
Specifically, in traditional VLAN encapsulation format, VNI fields are 24Bits so that VXLAN ID number can be with Reach 2^24=16M, with meet in cloud platform rent a house Network Isolation the needs of;In embodiments of the present invention, will be arranged on VXLAN id fields in VLAN frames merge with the VLAN id fields in the frame format of VLAN frames, are provided with VLAN VXLAN id fields in frame are 12Bits, and VLAN id fields are 12Bits, VXLAN id fields and VLAN ID after merging Field is total up to 24Bits as VIN fields, and equivalent to the VNI fields in traditional VLAN encapsulation format, by this new The obtained VLAN frames of VLAN packaged types, 24Bits VNI fields flexibly be present, that is, cause VLAN frames have extension bits can be with Compatible extensions, network interface card only need processing selection field and VXLAN id fields, that is to say, that network interface card only needs to handle 16Bits's Extended field, the extended field are to select field and VXLAN id fields so that network interface card no longer needs to add VLAN frames Carry and unload, can so reduce the computational load of network interface card.
Resolution unit 804, if for forwarding the data frame, parse the selection field.
Specifically, in embodiments of the present invention, the last position of the selection field is arranged to flag, by the selection word Section front three as reserved place, wherein, flag can fill 0 or 1, when flag filling 0 when, represent use VNI words VLAN id fields in section carry out mapping forwarding, when filling 1, represent to carry out mapping forwarding using VNI fields.
Wherein, the setting of flag is not restricted to 0 or 1, can also be arranged to other according to being actually needed and can play The numeral of mark action.
Second searching unit 805, for found according to the analysis result in the mapping table pre-set with it is described The corresponding mapping relations of VNI fields are to forward the data frame.
Specifically, in embodiments of the present invention, the mapping table pre-set is VLAN and VXLAN mapping tables, and this reflects Firing table is placed on chip layer, and the chip layer is the chip layer in interchanger, and reflecting for VLAN frames is correspondingly arranged in the mapping table Penetrate relation;When it is 1 that analysis result, which is flag, according to the VLAN being previously positioned in chip layer and VXLAN mapping tables, at this The mapping relations of VNI fields in the corresponding VLAN frames are found in mapping table, and the VLAN frames are forwarded by interchanger.
Figure 12 is the structure composition schematic diagram of another embodiment of the terminal of the present invention.As shown in figure 12, it may include:It is defeated Enter device 99, output device 88, R-T unit 77, memory 66 and processor 55, wherein:
The input unit 99, for receiving the input data of outside access control device.In the specific implementation, the present invention is real Apply the input unit 99 described in example may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input unit, Scanner etc..
The output device 88, the output data for external output access control device.In the specific implementation, the present invention is real Applying the output device 88 described in example may include display, loudspeaker, printer etc..
The R-T unit 77, for sending data to other equipment by communication link or receiving number from other equipment According to.In the specific implementation, the R-T unit 77 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memory 66, for storing the routine data with various functions.Memory 66 is deposited in the embodiment of the present invention The data of storage include the routine data that can be called and run.In the specific implementation, the memory 66 of the embodiment of the present invention can be Unite memory, such as, volatile (such as RAM), the combination of non-volatile (such as ROM, flash memory etc.), or both.Tool During body is realized, the memory 66 of the embodiment of the present invention can also be the external memory storage outside system, such as, disk, CD, magnetic Band etc..
The processor 55, for calling the routine data stored in the memory 66, and perform following operation:
Data frame is obtained, the data frame includes Ethernet protocol field, user-priority field, reference format instruction word Section and VLAN id fields;Selection field and VXLAN id fields are set in the data frame;By the VXLAN id fields Merge to form VNI fields with the VLAN id fields;If forwarding the data frame, the selection field is parsed;According to institute The analysis result for stating selection field determines the data frame forwarding logic corresponding with the data frame to forward the data frame.
Further, the processor 55 also performs following operation:
The selection field and institute are set between the reference format indication field and VLAN id fields in the data frame State VXLAN id fields.
Further, the processor 55 also performs following operation:
Obtain the flag in the selection field;The analysis result of the selection field is determined according to the flag.
Further, the processor 55 also performs following operation:
Found according to the analysis result in the mapping table pre-set and the VLAN id fields are corresponding reflects Relation is penetrated to forward the data frame;
Or
The mapping corresponding with the VNI fields is found according to the analysis result in the mapping table pre-set to close It is to forward the data frame.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of VXLAN implementation methods based on Ethernet encapsulation, it is characterised in that methods described includes:
Obtain data frame, the data frame include Ethernet protocol field, user-priority field, reference format indication field with And VLAN id fields;
Selection field and VXLAN id fields are set in the data frame;
The VXLAN id fields and the VLAN id fields are merged to form VNI fields;
If forwarding the data frame, the selection field is parsed;
Determine the data frame forwarding logic corresponding with the data frame to forward according to the analysis result of the selection field State data frame.
2. the method as described in claim 1, it is characterised in that described that selection field and VXLAN are set in the data frame Id field, specifically include:
The selection field and described is set between reference format indication field and VLAN id fields in the data frame VXLAN id fields.
3. the method as described in claim 1, it is characterised in that if described forward the data frame, the selection field is parsed, Specifically include:
Obtain the flag in the selection field;
The analysis result of the selection field is determined according to the flag.
4. the method as described in claim 1, it is characterised in that the analysis result according to the selection field determines and institute The corresponding data frame forwarding logic of data frame is stated to forward the data frame, is specifically included:
The mapping corresponding with the VLAN id fields is found according to the analysis result in the mapping table pre-set to close It is to forward the data frame;
Or
Found according to the analysis result in the mapping table pre-set the mapping relations corresponding with the VNI fields with Forward the data frame.
5. such as claim 1-4 any one methods describeds, it is characterised in that the selection field is 4 bits, wherein by described in The last position of selection field is arranged to flag, and the VXLAN id fields are 12 bits.
6. a kind of terminal, it is characterised in that the terminal includes:
First acquisition unit, for obtaining data frame, the data frame include Ethernet protocol field, user-priority field, Reference format indication field and VLAN id fields;
Setting unit, for setting selection field and VXLAN id fields in the data frame;
Combining unit, for merging to form VNI fields the VXLAN id fields and the VLAN id fields;
Resolution unit, if for forwarding the data frame, parse the selection field;
First determining unit, for determining the data frame corresponding with the data frame according to the analysis result of the selection field Forwarding logic is to forward the data frame.
7. terminal as claimed in claim 6, it is characterised in that the setting unit, be specifically used for:
The selection field and described is set between reference format indication field and VLAN id fields in the data frame VXLAN id fields.
8. terminal as claimed in claim 6, it is characterised in that the resolution unit, specifically include:
Second acquisition unit, for obtaining the flag in the selection field;
Second unit, for determining the analysis result of the selection field according to the flag.
9. terminal as claimed in claim 6, it is characterised in that first determining unit, specifically include:
First searching unit, for being found according to the analysis result in the mapping table pre-set and the VLAN ID The corresponding mapping relations of field are to forward the data frame;
Or
Second searching unit, for being found according to the analysis result in the mapping table pre-set and the VNI fields Corresponding mapping relations are to forward the data frame.
10. the terminal as described in claim 6-9 any one, it is characterised in that the selection field is 4 bits, wherein by institute The last position for stating selection field is arranged to flag, and the VXLAN id fields are 12 bits.
CN201611241988.6A 2016-12-29 2016-12-29 VXLAN implementation method and terminal based on Ethernet encapsulation Active CN107786410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611241988.6A CN107786410B (en) 2016-12-29 2016-12-29 VXLAN implementation method and terminal based on Ethernet encapsulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611241988.6A CN107786410B (en) 2016-12-29 2016-12-29 VXLAN implementation method and terminal based on Ethernet encapsulation

Publications (2)

Publication Number Publication Date
CN107786410A true CN107786410A (en) 2018-03-09
CN107786410B CN107786410B (en) 2020-08-28

Family

ID=61437541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611241988.6A Active CN107786410B (en) 2016-12-29 2016-12-29 VXLAN implementation method and terminal based on Ethernet encapsulation

Country Status (1)

Country Link
CN (1) CN107786410B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
CN103905283A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Communication method and apparatus based on expandable virtual local area network
CN103957160A (en) * 2014-05-12 2014-07-30 华为技术有限公司 Message sending method and device
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
CN104486246A (en) * 2014-12-23 2015-04-01 上海斐讯数据通信技术有限公司 SDN (software defined networking) architecture based method for realizing QoS (quality of service) mechanism of VXLAN (virtual extensible LAN)
CN104796353A (en) * 2014-01-17 2015-07-22 华为技术有限公司 Packet forwarding method and switch
WO2015144033A1 (en) * 2014-03-24 2015-10-01 Hangzhou H3C Technologies Co., Ltd. Packets forwarding
CN105721359A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 VXLAN message transmission method and device
CN105812221A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data transmission device and method in virtual extensible local area network
CN105991438A (en) * 2015-01-30 2016-10-05 华为技术有限公司 Method and device for processing data packet in virtual two-layer network
CN106161115A (en) * 2016-09-23 2016-11-23 杭州迪普科技有限公司 A kind of device management method being applied to VXLAN and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857416A (en) * 2012-09-18 2013-01-02 中兴通讯股份有限公司 Method for implementing virtual network and virtual network
CN103905283A (en) * 2012-12-25 2014-07-02 华为技术有限公司 Communication method and apparatus based on expandable virtual local area network
CN104796353A (en) * 2014-01-17 2015-07-22 华为技术有限公司 Packet forwarding method and switch
WO2015144033A1 (en) * 2014-03-24 2015-10-01 Hangzhou H3C Technologies Co., Ltd. Packets forwarding
CN103957160A (en) * 2014-05-12 2014-07-30 华为技术有限公司 Message sending method and device
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
CN105721359A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 VXLAN message transmission method and device
CN104486246A (en) * 2014-12-23 2015-04-01 上海斐讯数据通信技术有限公司 SDN (software defined networking) architecture based method for realizing QoS (quality of service) mechanism of VXLAN (virtual extensible LAN)
CN105812221A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data transmission device and method in virtual extensible local area network
CN105991438A (en) * 2015-01-30 2016-10-05 华为技术有限公司 Method and device for processing data packet in virtual two-layer network
CN106161115A (en) * 2016-09-23 2016-11-23 杭州迪普科技有限公司 A kind of device management method being applied to VXLAN and device

Also Published As

Publication number Publication date
CN107786410B (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN111552838B (en) Data processing method and device, computer equipment and storage medium
CN110928483B (en) Data storage method, data acquisition method and equipment
CN110912836B (en) Method for forwarding data by forwarding device, control device, storage medium and system
CN109413154A (en) Conversion method of data format, device, computer equipment and storage medium
JP6864783B2 (en) Data transmission methods and new access layer sublayer entities
US10552068B2 (en) Access method and device for random access memories, control chip and storage medium
CN112804146B (en) Message transmission method, communication device and system
CN114157461B (en) Industrial control protocol data stream processing method, device, equipment and storage medium
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN106921578A (en) The generation method and device of a kind of forwarding-table item
WO2021088629A1 (en) Detnet data packet processing method and apparatus
KR20210043865A (en) NGSI-LD API Wrapping Method
CN111930757B (en) Data processing method, system, encapsulation node and decapsulation node
CN105099919A (en) Message processing method and apparatus
JP6929946B2 (en) Data transmission method, device, transmitting end, receiving end and system
CN113438633B (en) Communication data processing method, terminal and computer readable storage medium
CN112787902A (en) Message encapsulation method and device and message de-encapsulation method and device
CN110581792B (en) Message transmission method and device
CN107277011B (en) Data classification method and device for terminal equipment
CN107786410A (en) A kind of VXLAN implementation methods and terminal based on Ethernet encapsulation
CN104853447A (en) Method and device for processing data information
CN110109848B (en) DSP hardware abstraction layer and DSP processor
CN113760799B (en) Scalable communication method, device, computer equipment and storage medium of UPP interface
CN103605594B (en) Terminal-based funcall method and device
CN112491554A (en) Information hiding method and device, IP host and network node

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