Device and method for scheduling traffic among working groups based on MAC (media access control) VLAN (virtual local area network) division

文档序号:1601352 发布日期:2020-01-07 浏览:21次 中文

阅读说明:本技术 基于mac划分vlan的工作组间流量调度装置及方法 (Device and method for scheduling traffic among working groups based on MAC (media access control) VLAN (virtual local area network) division ) 是由 邓新红 于 2019-09-20 设计创作,主要内容包括:本发明公开了一种基于MAC划分VLAN的工作组间流量调度装置及方法,装置包括交换机、Leaf交换机、Spine交换机和SDN控制器,所述交换机的下行端口分别与工作组的PC连接,所述交换机的上行端口与Leaf交换机的下行端口连接,所述Leaf交换机的上行端口连接与Spine交换机的下行端口连接,所述Spine交换机的上行端口接入Internet网络,所述SDN控制器与Spine交换机连接。本发明能够指定流量调度关系,一个工作组中一台PC调用另一个工作组的哪一台PC可以依据实际使用情况通过作组中PC的具体的MAC地址来指定;解决了当一个HUB所连的PC移动位置后无法进行流量调度。(The invention discloses a device and a method for dispatching flow among working groups based on VLAN division by MAC, wherein the device comprises a switch, a Leaf switch, a Spine switch and an SDN controller, downlink ports of the switch are respectively connected with PCs of the working groups, an uplink port of the switch is connected with the downlink port of the Leaf switch, the uplink port of the Leaf switch is connected with the downlink port of the Spine switch, the uplink port of the Spine switch is accessed into an Internet network, and the SDN controller is connected with the Spine switch. The invention can appoint the flow scheduling relation, which PC in another working group is called by a PC in one working group can be appointed by the specific MAC address of the PC in the working group according to the actual use condition; the problem that the flow scheduling cannot be carried out after the PC connected with one HUB moves the position is solved.)

1. The utility model provides a flow scheduling device between workgroup based on VLAN is divided to MAC, characterized by, including switch, Leaf switch, Spine switch and SDN controller, the downstream port of switch is connected with the PC of workgroup respectively, the ascending port of switch is connected with the downstream port of Leaf switch, the ascending port of Leaf switch is connected with the downstream port of Spine switch, the ascending port of Spine switch inserts Internet, the SDN controller is connected with the Spine switch.

2. The device for dispatching traffic between work groups based on the MAC partition VLAN of claim 1, wherein a plurality of Leaf switches are provided, and all Leaf switches are connected with different downlink ports of the same Spine switch.

3. The device of claim 2, wherein switches of different workgroups are connected to different downstream ports of the same Leaf switch.

4. The device of claim 2, wherein switches of different workgroups are connected to different downstream ports of different Leaf switches.

5. The device for dispatching traffic between work groups based on MAC partition VLAN according to any of claims 1-4, wherein a HUB HUB is arranged between the switch and the PC of the work group.

6. A method for dispatching traffic among working groups based on MAC partition VLAN is characterized by comprising the following steps:

the flow scheduling of PCs among different working groups under the same Leaf switch node;

and (4) carrying out traffic scheduling on the PCs among different working groups under different Leaf switch nodes.

7. The method as claimed in claim 6, wherein the process of traffic scheduling between PCs in different workgroups under the same Leaf switch node comprises the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be the same as the VLANID of the Leaf switch; the MAC address of the downstream port of the dispatched switch connected with the dispatched P is configured as the MAC address of the dispatched PC.

8. The method as claimed in claim 6, wherein the process of traffic scheduling between PCs in different workgroups under different Leaf switch nodes comprises the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be VLAN ID same as the Leaf switch; the MAC address of a downlink port connected with the scheduled P of the scheduled switch is configured as the MAC address of the scheduled PC;

deploying VXLAN on the Leaf switch, and configuring the mapping of VLAN ID to VXLAN;

visiting between the same working group PCs across Leaf switches, wherein the Leaf switches are used as VTEPs of VXLAN networks, and VXLAN tunnels are established between the two Leaf switches;

visiting different work groups PC across Leaf, building VXLAN tunnel between Leaf exchanger and Spine exchanger, and deploying VXLAN three-layer gateway on Spine exchanger.

9. The method for dispatching the traffic between the working groups based on the MAC partition VLAN of claim 8, wherein a Leaf switch and a Spine switch are configured as an EVPN network.

Technical Field

The invention relates to a device and a method for dispatching traffic among working groups based on MAC partition VLAN, belonging to the technical field of computer networks.

Background

The great advantage of dividing VLANs based on MAC addresses is that VLANs do not need to be reconfigured when the physical location of a user moves, i.e. from one switch to another. Vxlan (virtual Extensible lan) is a network virtualization technology, which is based on IP network and adopts a two-layer VPN technology in the form of "MAC in UDP" encapsulation. The VXLAN technology creates a large number of virtual extensible local area networks on the existing Network architecture by establishing VXLAN tunnels, and different virtual extensible local area networks are identified by using VNI (virtual extensible local area Network Identifier). VXLAN provides the same layer 2 network services as VLAN, but with greater scalability and flexibility than VLAN. SDN (Software defined network) is an implementation manner of network virtualization, and a control plane and a data plane of a network device are separated, so that flexible scheduling of data traffic is realized, and a network becomes more intelligent as a transmission pipeline.

Disclosure of Invention

Aiming at the defects of the method, the invention provides the device and the method for dispatching the flow among the working groups based on the MAC partition VLAN, the flow dispatching relationship can be manually appointed according to the MAC address of the actual PC, and the flow dispatching relationship is still kept unchanged after the PC is changed.

The technical scheme adopted for solving the technical problems is as follows:

on one hand, the inter-workgroup traffic scheduling device for dividing VLANs based on MAC provided in the embodiments of the present invention includes a switch, a Leaf switch, a Spine switch, and an SDN controller, where downstream ports of the switch are respectively connected to PCs of workgroups, an upstream port of the switch is connected to a downstream port of the Leaf switch, an upstream port of the Leaf switch is connected to a downstream port of the Spine switch, an upstream port of the Spine switch is connected to an Internet network, and the SDN controller is connected to the Spine switch.

In combination with a possible implementation manner as this embodiment, there are a plurality of Leaf switches, and all Leaf switches are connected to different downlink ports of the same Spine switch.

In combination with a possible implementation manner as this embodiment, the switches of different working groups are connected to different downstream ports of the same Leaf switch.

In combination with a possible implementation manner as this embodiment, the switches of different workgroups are connected to different downstream ports of different Leaf switches.

In combination with a possible implementation manner as this embodiment, a HUB is disposed between the switch and the PC of the workgroup.

On the other hand, the method for scheduling traffic between work groups based on the MAC-partitioned VLAN according to the embodiments of the present invention includes:

the flow scheduling of PCs among different working groups under the same Leaf switch node;

and (4) carrying out traffic scheduling on the PCs among different working groups under different Leaf switch nodes.

In combination with a possible implementation manner of this embodiment, the process of scheduling traffic of PCs between different workgroups in the same Leaf switch node includes the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be VLAN ID same as the Leaf switch; the MAC address of the downstream port of the dispatched switch connected with the dispatched P is configured as the MAC address of the dispatched PC.

In combination with a possible implementation manner of this embodiment, the process of scheduling traffic of PCs between different workgroups under different Leaf switch nodes includes the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be VLAN ID same as the Leaf switch; the MAC address of a downlink port of the dispatched PC is configured as the MAC address of the dispatched PC;

deploying VXLAN on the Leaf switch, and configuring the mapping of VLAN ID to VXLAN;

visiting between the same working group PCs across Leaf switches, wherein the Leaf switches are used as VTEPs of VXLAN networks, and VXLAN tunnels are established between the two Leaf switches;

visiting different work groups PC across Leaf, building VXLAN tunnel between Leaf exchanger and Spine exchanger, and deploying VXLAN three-layer gateway on Spine exchanger.

In combination with a possible implementation manner as this embodiment, the Leaf switch and the Spine switch are configured as an EVPN network.

The technical scheme of the embodiment of the invention has the following beneficial effects:

the invention can appoint the flow scheduling relation, which PC in another working group is called by a PC in one working group can be appointed by the specific MAC address of the PC in the working group according to the actual use condition; the PC connected to the switch or HUB can move position arbitrarily within the workgroup and still perform MAC-based traffic scheduling as long as the MAC address is unchanged. The invention solves the problem that the flow scheduling can not be carried out after the PC connected with a HUB moves the position.

Description of the drawings:

fig. 1 is a schematic diagram illustrating an inter-working group traffic scheduling apparatus for partitioning VLANs based on MAC according to an exemplary embodiment;

FIG. 2 is a flow diagram illustrating a method for inter-workgroup traffic scheduling based on MAC partitioning of VLANs in accordance with an illustrative embodiment;

fig. 3 is a schematic diagram illustrating traffic scheduling of PCs between different workgroups under the same Leaf switch node in accordance with an exemplary embodiment;

fig. 4 is a schematic diagram of a switch configuration, according to an example embodiment;

fig. 5 is a schematic diagram illustrating traffic scheduling of PCs between different workgroups under different Leaf switch nodes in accordance with an exemplary embodiment.

Detailed Description

The invention is further illustrated by the following examples in conjunction with the accompanying drawings:

in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.

Fig. 1 is a schematic diagram illustrating an inter-working group traffic scheduling apparatus for partitioning VLANs based on MAC according to an exemplary embodiment. As shown in fig. 1, a device for scheduling traffic between work groups based on MAC-based VLAN according to an embodiment of the present invention includes a switch, a Leaf switch, a Spine switch, and an SDN controller, where downstream ports of the switch are respectively connected to PCs of the work groups, an upstream port of the switch is connected to a downstream port of the Leaf switch, an upstream port of the Leaf switch is connected to a downstream port of the Spine switch, an upstream port of the Spine switch is connected to an Internet network, and the SDN controller is connected to the Spine switch.

In combination with a possible implementation manner as this embodiment, there are a plurality of Leaf switches, and all Leaf switches are connected to different downlink ports of the same Spine switch.

In combination with a possible implementation manner as this embodiment, the switches of different working groups are connected to different downstream ports of the same Leaf switch.

In combination with a possible implementation manner as this embodiment, the switches of different workgroups are connected to different downstream ports of different Leaf switches.

In combination with a possible implementation manner as this embodiment, a HUB is disposed between the switch and the PC of the workgroup.

Fig. 2 is a flowchart illustrating an inter-working group traffic scheduling method for VLAN based MAC partitioning according to an exemplary embodiment. As shown in fig. 2, a method for scheduling inter-working-group traffic based on MAC-based VLAN according to an embodiment of the present invention includes:

the flow scheduling of PCs among different working groups under the same Leaf switch node;

and (4) carrying out traffic scheduling on the PCs among different working groups under different Leaf switch nodes.

In combination with a possible implementation manner of this embodiment, the process of scheduling traffic of PCs between different workgroups in the same Leaf switch node includes the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be VLAN ID same as the Leaf switch; the MAC address of the downstream port of the dispatched switch connected with the dispatched P is configured as the MAC address of the dispatched PC.

In combination with a possible implementation manner of this embodiment, the process of scheduling traffic of PCs between different workgroups under different Leaf switch nodes includes the following steps:

the uplink and downlink ports of the Leaf switch are configured to be the same VLAN ID;

an uplink port and a downlink port of a switch to be scheduled are both configured to be VLAN ID same as that of a Leaf switch; configuring the MAC address of a downlink port connected with a switch to be scheduled and a PC to be scheduled into the MAC address of the PC to be scheduled;

the uplink port and the downlink port of the dispatched switch are both configured to be VLAN ID same as the Leaf switch; the MAC address of a downlink port connected with the scheduled P of the scheduled switch is configured as the MAC address of the scheduled PC;

deploying VXLAN on the Leaf switch, and configuring the mapping of VLAN ID to VXLAN;

visiting between the same working group PCs across Leaf switches, wherein the Leaf switches are used as VTEPs of VXLAN networks, and VXLAN tunnels are established between the two Leaf switches;

visiting different work groups PC across Leaf, building VXLAN tunnel between Leaf exchanger and Spine exchanger, and deploying VXLAN three-layer gateway on Spine exchanger.

In combination with a possible implementation manner as this embodiment, the Leaf switch and the Spine switch are configured as an EVPN network.

The invention mainly solves the problem that the flow scheduling can not be carried out after the PC connected with a HUB moves the position. The specific application examples are: the user of one internet cafe can call the resources of other internet cafes to surf the internet and play games. Based on the condition that the user calls resources in the internet bar, the internet flow accesses the internet from the called nodes of the resources of the internet bar, and if the PC of the internet bar moves, other internet bar flows can still be appointed to be called as long as the MAC address of the PC is unchanged.

The method comprises the steps of firstly discovering a full network topology by utilizing an SDN controller, and then configuring VLAN division based on MAC according to needs. The PC of an internet cafe is connected to the Leaf switch via the HUB. As shown in fig. 3.

Some internet cafes have more people and less people, the flow may need to be borrowed among the internet cafes, and the internet cafes with more people schedule the flow resources of the internet cafes with less people.

1. If the A internet bar needs to schedule the resources of the B internet bar, and the A and B internet bars are under the same Leaf node, that is, in the same operator node machine room as shown in FIG. 1. The configuration process is as follows (illustrated by the switch shown in fig. 4):

1.1 Leaf node switch ports 0-1 and 0-25 with IP 172.20.234.103 each add VLAN 100.

1.2, configuring VLAN 100 at port 0-1 of the switch with IP 172.20.234.102(SW-A), configuring VLAN based on MAC at port 0-5, wherein the MAC address is the MAC address of the PC to be dispatched, and the VLAN is consistent with the VLAN at the uplink port.

1.3, the switch configuration with 172.20.234.104(SW-B) IP is similar to 172.20.234.102, VLAN 100 is configured on ports 0-28, VLAN based on MAC is configured on ports 0-11, the MAC address is the MAC address of the scheduled PC, and the VLAN is consistent with the VLAN on the uplink port.

The configuration specific commands are as follows:

103(Leaf node):

vlan database

vlan 100

interface eth-0-1

switchport mode trunk

switchport trunk allowed vlan add 100

interface eth-0-25

switchport mode trunk

switchport trunk allowed vlan add 100

102(SW-A):

vlan classifier rule 11mac 1c39.47cc.93ad vlan 100

vlan classifier rule 12mac 1c39.47cc.93aa vlan 100

vlan classifier group 8add rule 11

vlan classifier group 8add rule 12

vlan database

vlan 100

interface eth-0-1

switchport mode trunk

switchport trunk allowed vlan add 100

interface eth-0-5

switchport mode hybrid

switchport hybrid allowed vlan add 100untagged

vlan classifier activate 8based mac

104(SW-B):

vlan database

vlan 100

vlan classifier rule 2mac 8c16.454a.69c8 vlan 100

vlan classifier rule 11mac 8c16.454a.69c6 vlan 100

vlan classifier group 31add rule 2

vlan classifier group 31add rule 11

interface eth-0-11

switchport mode hybrid

switchport hybrid allowed vlan add 100untagged

vlan classifier activate 31based mac

interface eth-0-28

switchport mode trunk

switchport trunk allowed vlan add 100

2. if the A internet bar needs to schedule the resources of the B internet bar, and the A and B internet bars are under different Leaf nodes, the configuration is as follows

2.1, SW-A and SW-B and Leaf are the same basic configuration as above.

And 2.2, deploying VXLAN on the Leaf node, and configuring and completing the mapping of the VLAN ID to the VXLAN.

And 2.3, accessing the same subnet across Leaf, taking the Leaf node as a VTEP of the VXLAN network, and building a VXLAN tunnel between the two leaves, so that the mutual communication between the PCs in the same network segment can be realized. As shown in fig. 5.

And 2.4, accessing different subnets across Leaf, respectively building VXLAN tunnels between Leaf1 and Spine and between Leaf2 and Spine, and deploying VXLAN three-layer gateways on Spine, so that the mutual communication of PCs between different network segments can be realized. As shown in fig. 3.

2.5, between Leaf-Spine, EVPN can be used to reduce configuration difficulty.

The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:网络接口卡、交换卡及线路卡

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!