CN108322377A - Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN - Google Patents
Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN Download PDFInfo
- Publication number
- CN108322377A CN108322377A CN201711349177.2A CN201711349177A CN108322377A CN 108322377 A CN108322377 A CN 108322377A CN 201711349177 A CN201711349177 A CN 201711349177A CN 108322377 A CN108322377 A CN 108322377A
- Authority
- CN
- China
- Prior art keywords
- vlan
- matching
- priority
- packet
- openflow agreements
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Abstract
A kind of method netted based on SDN and expand VLAN use scopes is provided in the embodiment of the present invention, the method includes:VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet, the priority of 8 VLAN is provided in the matching packet.When matching VLAN in the flow table of openflow agreements, the matching packet is called, and the priority in the matching packet is combined with VLAN ID and is matched.The embodiment of the present invention also proposed a kind of device, product and storage medium netted based on SDN and expand VLAN use scopes.The present invention by the openflow protocol extensions use scope of VLAN, is increased eight times by pervious 4096 in SDN scenes, solves the limitation of user's opening business.
Description
Technical field
The present invention relates to Internet resources technologies, and in particular, to a kind of to net the side for expanding VLAN use scopes based on SDN
Method, device, product and storage medium.
Background technology
In a computer network, a double layer network can be divided into multiple and different broadcast domains, a broadcast domain pair
A specific user group is answered, these different broadcast domains are mutually isolated under default situations.Between different broadcast domains
Want communication, needs through one or more routers.Such a broadcast domain is known as VLAN.
Existing VLAN frame formats as shown in Figure 1, the use scope limiting value of VLAN in 1-4094, portfolio it is larger and
On the basis of interchanger is limited, the value range of VLAN there are limitations.
Invention content
In view of this, an embodiment of the present invention is intended to provide a kind of scheme expanding VLAN use scopes, made with solving VLAN
There is the problem of limitation with range.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention proposes a kind of method netted based on SDN and expand VLAN use scopes, the method includes:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Preferably, the priority of 8 VLAN is provided in the matching packet.
The embodiment of the present invention also proposed a kind of device netted based on SDN and expand VLAN use scopes, include memory,
And one either more than one program one of them or more than one program be stored in memory, and be configured to
It includes the finger for being operated below to execute the one or more programs by one or more than one processor
It enables:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Preferably, the priority of 8 VLAN is provided in the matching packet.
The embodiment of the present invention also proposed a kind of computer program product, and the computer program product is non-including being stored in
Computer program on volatile computer readable storage medium storing program for executing, the computer program include program instruction, work as described program
When instruction is computer-executed, the computer is made to execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Preferably, the priority of 8 VLAN is provided in the matching packet.
The embodiment of the present invention proposes a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit
Storage media stores computer instruction, and the computer instruction is for making the computer execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Preferably, the priority of 8 VLAN is provided in the matching packet.
Beneficial effects of the present invention are as follows:The present invention passes through making for VLAN of openflow protocol extensions in SDN scenes
It with range, is increased eight times by pervious 4096, solves the limitation of user's opening business.
Description of the drawings
Fig. 1 is existing VLAN frame formats schematic diagram;
Fig. 2 is the service interaction system diagram under SDN scenes;
Fig. 3 is that the method flow diagram for expanding VLAN use scopes is netted based on SDN described in the embodiment of the present invention.
Specific implementation mode
In order to make technical solution in the embodiment of the present invention and advantage be more clearly understood, below in conjunction with attached drawing to the present invention
Exemplary embodiment be described in more detail, it is clear that described embodiment be only the present invention a part implement
Example, rather than the exhaustion of all embodiments.It should be noted that in the absence of conflict, embodiment and reality in the present invention
The feature applied in example can be combined with each other.
Fig. 1 is existing VLAN frame formats schematic diagram, makes description below to the relevant technologies noun in the figure below:
Destination address:Destination-mac address;
Source address:Source MAC;
802.1Q TAG:Agreement in a kind of LAN, mainly defines the implementation method of VLAN;
DATA:Data account for 42-1500bytes;
FCS:Frame Check Sequence(Frame.Check Sequence).
IEEE 802.1q agreements namely " Virtual Bridged Local Area Networks "(Virtual bridged office
Domain net, referred to as " virtual LAN ")Agreement mainly defines the implementation method of VLAN.IEEE 802.1q agreements are that mark carries
The Ether frame of member of vlan's information establishes a kind of standard method.IEEE802.1q standards define VLAN bridge operations, to
Allow to realize the operations such as definition, operation and management VLAN topological structures in bridges local area web frame.Wherein 802.1Q TAG
Under meaning tag be respectively:
TYPE:Length is 2 bytes, and value 0x8100 indicates that the type of this frame is 802.1Q TAG frames;
PRI:The priority of User Priority users, which accounts for 3,8 priority(2^3);
CFI:Canonical Format Indicator, CFI values are that 0 explanation is cannonical format, and 1 is non-canonical format;
VID:VLAN ID, are the identification fields to VLAN, 12bite, 2^12=4096, because 0 and 4095 to retain in VLANID
Value, so VLAN value ranges are 1-4094;
The computational methods of VLAN values:
2^0+2^1+2^2+2^3+2^4+2^5+2^6+2^7+2^8+2^9+2^10+2^11=2^12-1-1=4094。
Business is open-minded under SDN scenes, is to be completed by the match pattern of the ports VLAN+, wherein VLAN here makes
Range is exactly 4096, and removing 1 and 4095 cannot be used outside(Give tacit consent to the VLAN retained, does not provide use for business), altogether
4094 VLAN use for different users, the service interaction system diagram being illustrated in figure 2 under certain SDN scene, user user1
Be linked into openflow interchangers from the ends A 1 mouthful has used VLAN100, at 2 mouthfuls of openflow protocol forwards to the ends Z,
VLAN100 equally is also used on this interchanger, then VLAN100 is when user1 is accessed again, this two interchangers
VLAN100 can not be used again, and when the portfolio of a user is more than 5000, the VLAN uses on the port will
Beyond maximum magnitude, it is above the problem of being encountered when being matched by VID using VLAN (VLAN can not surmount 5000).
Embodiment 1
As shown in figure 3, the present embodiment proposes a kind of method netted based on SDN and expand VLAN use scopes, the method includes:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Specifically, PRI is equally supported in the matching of VLAN in openflow agreements:
OpenFlow Switch Specification
enumofp_action_type {
OFPAT_SET_VLAN_VID, /* Set the 802.1q VLAN id. */ OFPAT_SET_VLAN_PCP, /*
Set the 802.1q priority. */
The priority that VLAN matching packets are configured wherein in openflow agreements is exactly VLAN_PCP, and 3bit goes out according to decimal computation
2^3=8 share 8 placeholders, the priority of VLAN, range 0 can be arranged in a matching packet(It is low)-7(It is high), to obtain 8
A priority.
Therefore, in the flow table of openflow agreements, when matching VLAN, PRI and VID, i.e. VID and PRI combinations can be supported
Matching-PRI*VID:
3bit=2^3=8;
12bit=2^12=4096;
Finally obtain:PRI*VID=2^3*2^12=8*4096=32768;
I.e. the value of VLAN has been expanded to pervious 8 times in 2-32768.
Embodiment 2
The present embodiment proposes a kind of device netted based on SDN and expand VLAN use scopes, include memory and one or
The more than one program of person, one of them either more than one program be stored in memory and be configured to by one or
It includes the instruction for being operated below that more than one processor, which executes the one or more programs,:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Specifically, PRI is equally supported in the matching of VLAN in openflow agreements:
OpenFlow Switch Specification
enumofp_action_type {
OFPAT_SET_VLAN_VID, /* Set the 802.1q VLAN id. */ OFPAT_SET_VLAN_PCP, /*
Set the 802.1q priority. */
The priority that VLAN matching packets are configured wherein in openflow agreements is exactly VLAN_PCP, and 3bit goes out according to decimal computation
2^3=8 share 8 placeholders, the priority of VLAN, range 0 can be arranged in a matching packet(It is low)-7(It is high), to obtain 8
A priority.
Therefore, in the flow table of openflow agreements, when matching VLAN, PRI and VID, i.e. VID and PRI combinations can be supported
Matching-PRI*VID:
3bit=2^3=8;
12bit=2^12=4096;
Finally obtain:PRI*VID=2^3*2^12=8*4096=32768;
I.e. the value of VLAN has been expanded to pervious 8 times in 2-32768.
Embodiment 3
The present embodiment proposes a kind of computer program product, and the computer program product includes being stored in non-volatile calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, the computer is made to execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;The matching packet
In be provided with the priority of 8 VLAN;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Embodiment 4
The present embodiment proposes a kind of non-transient computer readable storage medium, and the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction is for making the computer execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;The matching packet
In be provided with the priority of 8 VLAN;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of netting the method for expanding VLAN use scopes based on SDN, which is characterized in that the method includes:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
2. according to the method described in claim 1, it is characterized in that, being provided with the priority of 8 VLAN in the matching packet.
3. a kind of netting the device for expanding VLAN use scopes based on SDN, which is characterized in that include memory and one or
The more than one program of person, one of them either more than one program be stored in memory and be configured to by one or
It includes the instruction for being operated below that more than one processor, which executes the one or more programs,:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
4. device according to claim 3, which is characterized in that be provided with the priority of 8 VLAN in the matching packet.
5. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-volatile calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, the computer is made to execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
6. computer program product according to claim 5, which is characterized in that be provided with 8 VLAN in the matching packet
Priority.
7. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction is for making the computer execute following operation:
VLAN matching packets are configured in openflow agreements, and the priority of VLAN is provided in the matching packet;
When matching VLAN in the flow table of openflow agreements, matching packet is called, and the priority during the matching is wrapped
It is combined and matches with VLAN ID.
8. non-transient computer readable storage medium according to claim 7, which is characterized in that be arranged in the matching packet
There is the priority of 8 VLAN.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711349177.2A CN108322377A (en) | 2017-12-15 | 2017-12-15 | Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711349177.2A CN108322377A (en) | 2017-12-15 | 2017-12-15 | Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108322377A true CN108322377A (en) | 2018-07-24 |
Family
ID=62892272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711349177.2A Pending CN108322377A (en) | 2017-12-15 | 2017-12-15 | Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108322377A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191043A (en) * | 2019-05-23 | 2019-08-30 | 北京永信至诚科技股份有限公司 | The VLAN division method and system in City-level network target range |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104205055A (en) * | 2012-03-29 | 2014-12-10 | 瑞典爱立信有限公司 | Implementing EPC in cloud computer with OPENFLOW data plane |
CN104283756A (en) * | 2013-07-02 | 2015-01-14 | 杭州华三通信技术有限公司 | Method and device for realizing distributed type multi-tenant virtual network |
-
2017
- 2017-12-15 CN CN201711349177.2A patent/CN108322377A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104205055A (en) * | 2012-03-29 | 2014-12-10 | 瑞典爱立信有限公司 | Implementing EPC in cloud computer with OPENFLOW data plane |
CN104283756A (en) * | 2013-07-02 | 2015-01-14 | 杭州华三通信技术有限公司 | Method and device for realizing distributed type multi-tenant virtual network |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110191043A (en) * | 2019-05-23 | 2019-08-30 | 北京永信至诚科技股份有限公司 | The VLAN division method and system in City-level network target range |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3400678B1 (en) | Graph construction for computed spring multicast | |
US9537752B2 (en) | Encoding inter-domain shared service paths | |
CN104468384B (en) | A kind of system and method for realizing multi-priority services | |
US9369293B2 (en) | Compressing singly linked lists sharing common nodes for multi-destination group expansion | |
CN104702479B (en) | The method and apparatus that tunnel is established in SDN network | |
CN106453027B (en) | Gre tunneling implementation method, access device and aggregation gateway | |
US10904136B2 (en) | Multicast distribution tree versioning for minimizing multicast group traffic disruption | |
JP2021530912A (en) | Network slice control method and device, computer readable storage medium | |
CN107026796B (en) | VPN route notification method, data flow forwarding method and related equipment | |
CN110427334A (en) | A kind of method and apparatus for realizing virtual machine communication | |
EP3400685A1 (en) | Mechanism to detect control plane loops in a software defined networking (sdn) network | |
CN105634901B (en) | Mac address information synchronous method and device based on CAS VXLAN | |
CN105991435B (en) | For obtaining the method and device of port path | |
JPWO2014054768A1 (en) | Communication system, virtual network management apparatus, virtual network management method and program | |
US20230006937A1 (en) | Packet flow identification with reduced decode operations | |
JP5573955B2 (en) | Frame connecting device | |
US20220070091A1 (en) | Open fronthaul network system | |
CN104734949B (en) | A kind of method and device for realizing flow table configuration | |
CN112187648A (en) | Multicast message forwarding method and device | |
CN112333076A (en) | Method and device for bearing VXLAN service through FlexE channel | |
CN112769738A (en) | DetNet data packet processing method and device | |
CN108322377A (en) | Method, apparatus, product and the storage medium for expanding VLAN use scopes are netted based on SDN | |
CN107623636A (en) | A kind of user isolation method and interchanger | |
CN106034075B (en) | Method and device for distributing label for VPN route | |
WO2016103187A1 (en) | Method and system for packet redundancy removal |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200325 Address after: 200040 room 1013, No. 250, JIANGCHANG Third Road, Jing'an District, Shanghai Applicant after: Shanghai layer peak Network Technology Co., Ltd Address before: 310012 506, room 4, 998 West Wen Yi Road, Wuchang Street, Hangzhou, Zhejiang. Applicant before: HANGZHOU DAHU TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180724 |
|
RJ01 | Rejection of invention patent application after publication |