Network and network management method

文档序号:1591070 发布日期:2020-01-03 浏览:5次 中文

阅读说明:本技术 一种网络及网络管理方法 (Network and network management method ) 是由 丁雷 左少夫 于 2018-04-27 设计创作,主要内容包括:本申请公开了一种网络,包括第一翅片和第二翅片,每个翅片包括至少一个骨干交换机和至少一个叶子交换机,翅片间通过骨干交换机通信,每个骨干交换机内存储有第一流表集,每个叶子交换机内存储有第二流表集。通过预先存储的流表集控制了该网络在引导阶段时产生的报文的广播范围。(The application discloses a network, including first fin and second fin, every fin includes at least one backbone switch and at least one leaf switch, and through backbone switch communication between the fin, the first flow table set is stored to every backbone switch, and the second flow table set is stored to every leaf switch. The broadcasting range of the messages generated by the network in the boot phase is controlled by the pre-stored flow table set.)

A network, comprising a first fin and a second fin, each fin comprising at least one backbone switch and at least one leaf switch, the leaf switch of the first fin communicating with the backbone switch of the second fin through the backbone switch of the first fin, the leaf switch of the second fin communicating with the backbone switch of the first fin through the backbone switch of the second fin, the leaf switches in each fin communicating with each other through the backbone switch of the fin, an upstream forwarding port of the leaf switch of each fin being connected to the backbone switch of the fin, a downstream forwarding port of the backbone switch of each fin being connected to the leaf switch of the fin, and an upstream forwarding port of the backbone switch of each fin being connected to the backbone switches of the other fins;

a first flow table set is stored in each backbone switch, the first flow table set comprises a first uplink flow table and a first downlink flow table, the first uplink flow table indicates that messages received through downlink forwarding ports are sent out from all the forwarding ports, and the first downlink flow table indicates that messages received through the uplink forwarding ports are discarded;

each leaf switch is internally stored with a second flow table set, the second flow table set comprises a second uplink flow table and a second downlink flow table, the second uplink flow table indicates that messages received through the downlink forwarding ports are sent out from all the forwarding ports, and the second downlink flow table indicates that messages received through the uplink forwarding ports are sent out from all the downlink forwarding ports.

The network of claim 1, wherein a downstream forwarding port of a first leaf switch of the first fin is connected to a Dynamic Host Configuration Protocol (DHCP) server;

the second blade switch of the first fin is used for generating a first DHCP request and broadcasting the first DHCP request;

the first backbone switch of the first fin is configured to receive the first DHCP request from a downstream forwarding port of the first backbone switch, and send the first DHCP request from all forwarding ports of the first backbone switch according to the first upstream flow table;

the second backbone switch of the second fin is configured to receive the first DHCP request from an upstream forwarding port of the second backbone switch, and discard the first DHCP request according to the first downstream flow table;

the first leaf switch is configured to receive the first DHCP request from the upstream forwarding port of the first leaf switch, and send the first DHCP request to the DHCP server from the downstream forwarding port of the first leaf switch according to the second downstream flow table;

the first leaf switch is configured to receive, from a downstream forwarding port of the first leaf switch, a first DHCP response generated by the DHCP server according to the first DHCP request, and send, according to the second upstream flow table, the first DHCP response from all forwarding ports of the first leaf switch;

the first backbone switch is configured to receive the first DHCP response from the downstream forwarding port of the first backbone switch, and send the first DHCP request from all forwarding ports of the first backbone switch according to the first upstream flow table;

and the second leaf switch is used for receiving the first DHCP response from an uplink forwarding port of the second leaf switch, and sending the first DHCP response from all downlink forwarding ports of the second leaf switch according to the second downlink flow table, so that a management port of the second leaf switch receives the first DHCP response, and the management port of the second leaf switch is connected with one downlink forwarding port of the second leaf switch.

The network of claim 1 or 2, wherein a downstream forwarding port of a first leaf switch of the first fin is connected to a DHCP server;

the first backbone switch is used for generating a second DHCP request and broadcasting the second DHCP request;

the second backbone switch is configured to receive the second DHCP request from an upstream forwarding port of the second backbone switch, and discard the second DHCP request according to the first downstream flow table;

the first leaf switch is configured to receive the second DHCP request from the upstream forwarding port of the first leaf switch, and send the second DHCP request to the DHCP server from the downstream forwarding port of the first leaf switch according to the second downstream flow table;

the first leaf switch is configured to receive, from the downstream forwarding port of the first leaf switch, a second DHCP response generated by the DHCP server according to the second DHCP request, and send, according to the second upstream flow table, the second DHCP response from all forwarding ports of the first leaf switch;

the first backbone switch is configured to receive the second DHCP response from the downstream forwarding port of the first backbone switch, and send the second DHCP response from all forwarding ports of the first backbone switch according to the first upstream flow table, so that a management port of the first backbone switch receives the second DHCP response, and the management port of the first backbone switch is connected to one forwarding port of the first backbone switch.

The network according to any of claims 1 to 3,

the second backbone switch is configured to obtain a third DHCP request, and broadcast the third DHCP request, where the third DHCP request is generated by the second backbone switch, or generated by a leaf switch of the second fin and sent to the second backbone switch through a downstream forwarding port of the second backbone switch;

the first backbone switch is configured to receive the third DHCP request from the uplink forwarding port of the first backbone switch, and discard the third DHCP request according to the first downstream flow table.

The network of any of claims 1 to 4, wherein a downstream forwarding port of the first leaf switch is connected to a controller;

the controller is configured to identify a connection relationship between forwarding ports of the switches of the first fin after the DHCP server allocates IP addresses to the switches of the first fin, generate a third flow table set for the backbone switch of the first fin according to the connection relationship, and generate a fourth flow table set for the leaf switch of the first fin, where a priority of the third flow table set is higher than that of the first flow table set and a priority of the fourth flow table set is higher than that of the second flow table set, or delete the first flow table set after the backbone switch of the first fin receives the third flow table set and delete the second flow table set after the leaf switch of the first fin receives the fourth flow table set; the third flow table set comprises a first forward flow table and a first reverse flow table, and the first forward flow table indicates that the message with the type of DHCP request is forwarded to the DHCP server; the first reverse flow table indicates to forward a packet to a switch corresponding to a destination MAC address of the packet, the fourth flow table set includes a second forward flow table and a second reverse flow table, and the second forward flow table indicates to forward the packet of which the type is a DHCP request to the DHCP server; and the second reverse flow table indicates to forward the message to the switch corresponding to the destination MAC address of the message.

A message processing method is used for a network comprising a first fin and a second fin, each fin comprises at least one backbone switch and at least one leaf switch, the leaf switches of the first fin communicate with the backbone switches of the second fin through the backbone switches of the first fin, the leaf switches of the second fin communicate with the backbone switches of the first fin through the backbone switches of the second fin, the leaf switches in each fin communicate with each other through the backbone switches of the fin, a downlink forwarding port of the first leaf switch of the first fin is connected with a DHCP server, an uplink forwarding port of the leaf switch of each fin is connected with the backbone switches of the fin, and a downlink forwarding port of the backbone switch of each fin is connected with the leaf switches of the fin, the uplink forwarding port of the backbone switch of each fin is connected with the backbone switches of other fins;

a first flow table set is stored in each backbone switch, the first flow table set comprises a first uplink flow table and a first downlink flow table, the first uplink flow table indicates that messages received through downlink forwarding ports are sent out from all the forwarding ports, and the first downlink flow table indicates that messages received through the uplink forwarding ports are discarded;

each leaf switch is internally stored with a second flow table set, wherein the second flow table set comprises a second uplink flow table and a second downlink flow table, the second uplink flow table indicates that messages received through downlink forwarding ports are sent out from all forwarding ports, and the second downlink flow table indicates that messages received through uplink forwarding ports are sent out from all downlink forwarding ports; the method comprises the following steps:

a second blade switch of the first fin generates a first DHCP request and broadcasts the first DHCP request;

the first backbone switch of the first fin receives the first DHCP request from a downstream forwarding port of the first backbone switch, and sends the first DHCP request from all forwarding ports of the first backbone switch according to the first upstream flow table;

the second backbone switch of the second fin receives the first DHCP request from an upstream forwarding port of the second backbone switch, and discards the first DHCP request according to the first downstream flow table;

the first leaf switch receives the first DHCP request from an uplink forwarding port of the first leaf switch, and sends the first DHCP request to the DHCP server from a downlink forwarding port of the first leaf switch according to the second downlink flow table;

the first leaf switch receives a first DHCP response generated by the DHCP server according to the first DHCP request from a downlink forwarding port of the first leaf switch, and sends the first DHCP response from all forwarding ports of the first leaf switch according to the second uplink flow table;

the first backbone switch receives the first DHCP response from a downstream forwarding port of the first backbone switch, and sends the first DHCP request from all forwarding ports of the first backbone switch according to the first upstream flow table;

and the second leaf switch receives the first DHCP response from an uplink forwarding port of the second leaf switch, and sends the first DHCP response to a management port of the second leaf switch from the downlink forwarding port of the second leaf switch according to the second downlink flow table, wherein the management port of the second leaf switch is connected with one downlink forwarding port of the second leaf switch.

The method of claim 6, further comprising:

a first backbone switch of the first fin generates a second DHCP request and broadcasts the second DHCP request;

the second backbone switch of the second fin receives the second DHCP request from an upstream forwarding port of the second backbone switch, and discards the second DHCP request according to the first downstream flow table;

the first leaf switch receives the second DHCP request from an uplink forwarding port of the first leaf switch, and sends the second DHCP request to the DHCP server from a downlink forwarding port of the first leaf switch according to the second downlink flow table;

the first leaf switch receives a second DHCP response generated by the DHCP server according to the second DHCP request from a downlink forwarding port of the first leaf switch, and sends the second DHCP response from all forwarding ports of the first leaf switch according to the second uplink flow table;

and the first backbone switch receives the second DHCP response from the downstream forwarding port of the first backbone switch, and sends the second DHCP response from the forwarding port of the first backbone switch to the management port of the first backbone switch according to the first upstream flow table, wherein the management port of the first backbone switch is connected with one forwarding port of the first backbone switch.

The method of claim 6 or 7, further comprising:

a second backbone switch of the second fin acquires a third DHCP request, and broadcasts the third DHCP request, where the third DHCP request is generated by the second backbone switch or generated by a leaf switch of the second fin and sent to a downstream forwarding port of the second backbone switch;

and the first backbone switch receives the third DHCP request from an uplink forwarding port of the first backbone switch, and discards the second DHCP request according to the first downlink flow table.

A backbone switch is characterized in that the backbone switch comprises a memory, a processor, an uplink forwarding port and a downlink forwarding port;

a first flow table set is stored in the memory, the first flow table set comprises a first upstream flow table and a first downstream flow table, and the first upstream flow table indicates that messages received through the downstream forwarding ports are sent out from all the forwarding ports; the first downstream flow table indicates to discard the message received through the upstream forwarding port;

and the processor is used for processing the received message according to the first flow table set.

The backbone switch of claim 9, wherein the backbone switch is further configured to receive a third set of flow tables generated by a controller, the third set of flow tables having a higher priority than the first set of flow tables or the backbone switch deleting the first set of flow tables upon receiving the third set of flow tables; the third flow table set comprises a first forward flow table and a first reverse flow table, and the first forward flow table indicates that the message with the type of the DHCP request is forwarded to a DHCP server; and the first reverse flow table indicates to forward the message to a switch corresponding to the destination MAC address of the message.

A leaf switch, wherein the leaf switch comprises a memory, a processor, an upstream forwarding port, and a downstream forwarding port;

a second flow table set is stored in the memory, the second flow table set comprises a second upstream flow table and a second downstream flow table, the second upstream flow table indicates that messages received through the downstream forwarding port are sent out from all the forwarding ports, and the second downstream flow table indicates that messages received through the upstream forwarding port are sent out from the downstream forwarding port; the method comprises the following steps:

and the processor is used for processing the received message according to the second flow table set.

The leaf switch of claim 11, wherein the leaf switch is further configured to receive a fourth set of flow tables generated by a controller, the fourth set of flow tables having a higher priority than the second set of flow tables or the leaf switch deleting the second set of flow tables upon receipt of the fourth set of flow tables; the fourth flow table set comprises a second forward flow table and a second reverse flow table, and the second forward flow table indicates that the message with the type of the DHCP request is forwarded to a DHCP server; and the second reverse flow table indicates to forward the message to the switch corresponding to the destination MAC address of the message.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于策略的路由系统中的路由表选择

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!