VDP REQUEST PACKET PROCESSING
A method and an edge switch for processing a VDP request packet are provided. The edge switch receives a notification for changing traffic features and a VDP request packet from a data server, determines filter information to be changed according to filter information in the VDP request packet, requests a VSI management server to process a VSI configuration and strategy according to the filter information to be changed, receiving a response from the VSI management server and processing the VSI configuration and strategy according to the filter information to be changed.
1 . A method for processing a Virtual Station Interface Discovery and Configuration Protocol (VDP) request packet, comprising an edge switch:
receiving a notification for changing traffic features and a VDP request packet from a data server,
determining filter information to be changed according to filter information in the VDP request packet,
requesting a VSI management server to process a VSI configuration and strategy according to the filter information to be changed, and
receiving a response from the VSI management server, and processing the VSI configuration and strategy according to the filter information to be changed.
2 . The method according to claim 1 , wherein the notification for changing the traffic features comprises a notification for increasing the traffic features; and
determining the filter information to be changed according to the filter information in the VDP request packet, requesting the VSI management server to process the VSI configuration and strategy according to the filter information to be changed, receiving the response from the VSI management server and processing the VSI configuration and strategy according to the filter information to be changed comprises:
determining filter information to be increased according to the filter information in the VDP request packet, requesting the VSI configuration and strategy from the VSI management server according to the filter information to be increased, receiving the VSI configuration and strategy from the VSI management server and configuring the received VSI configuration and strategy.
3 . The method according to claim 1 , wherein the notification for changing the traffic features comprises a notification for reducing the traffic features; and
determining the filter information to be changed according to the filter information in the VDP request packet, requesting the VSI management server to process the VSI configuration and strategy according to the filter information to be changed, receiving the processing response from the VSI management server and processing the VSI configuration and strategy according to the filter information to be changed comprises:
determining filter information to be deleted according to the filter information in the VDP request packet, sending a request for deleting the VSI configuration and strategy according to the filter information to be deleted, receiving an acknowledgement response from the VSI management server and deleting the VSI configuration and strategy corresponding to the filter information to be deleted.
4 . The method according to claim 1 , further comprising:
processing, by the edge switch when the VDP request packet is received, the VDP request packet according to a type of the VDP request packet if the edge switch receives a notification for keeping the traffic features unchanged from the data server or the edge switch does not receive a notification.
5 . The method according to claim 4 , wherein
the notification for increasing the traffic features is carried in the VDP request packet or a VDP notification packet;
the notification for reducing the traffic features is carried in the VDP request packet or the VDP notification packet; and
the notification for keeping the traffic features unchanged is carried in the VDP request packet or the VDP notification packet; wherein
a filter information status field in the VDP request packet indicates whether the received notification is for increasing the traffic features, for reducing the traffic features or for keeping the traffic features unchanged;
the filter information status field is placed between a filter format filed and a filter field of the VDP request packet.
6 . The method according to claim 4 , wherein when the VDP request packet is received, the method further comprises: recording a VSI Type ID and a VSI ID in the VDP request packet, recording and updating the type of the VDP request packet; and wherein processing the VDP request packet according to the type of the VDP request packet comprises:
processing the VDP request packet taken as a keep-alive packet if the VDP request packet is a VDP pre-association request packet, configuring an invalid VSI configuration and strategy as a valid VSI configuration and strategy, updating the recorded type of the VDP request packet and responding to a VDP association request of the data server if the VDP request packet is a VDP association request packet and the type of the recorded VDP request packet is a pre-association request packet,
processing the VDP request packet taken as the keep-alive packet if the VDP request packet is the VDP association request packet and the recorded type of the VDP request packet is an association request packet, deleting the VSI configuration and strategy corresponding to the VSI, notifying the VSI management server and making a response to a VDP de-association request of the data server if the VDP request packet is a de-association request packet.
7 . The method according to claim 2 , wherein when the VDP request packet is received, the method further comprises: recording a VSI Type ID, VSI ID and the filter information in the VDP request packet;
wherein determining the filter information to be increased according to the filter information in the VDP request packet comprises: comparing the filter information in the VDP request packet with filter information corresponding to the recorded VSI Type ID and VSI ID and determining that the filter information which is comprised in the VDP request packet but not comprised in the recorded filter information is the filter information to be increased.
8 . The method according to claim 3 , wherein when the VDP request packet is received, the method further comprises: recording a VSI Type ID, VSI ID and the filter information in the VDP request packet;
wherein determining the filter information to be deleted according to the filter information in the VDP request packet comprises: comparing the filter information in the VDP request packet with the recorded filter information and determining that the filter information which is comprised in the recorded filter information but not comprised in the VDP request packet is the filter information to be deleted.
9 . An edge switch, comprising a processor and a packet processing chip; wherein
the processor is to receive, via the packet processing chip, a notification for changing traffic features and a VDP request packet sent from a data server via an interface; and
determine filter information to be changed according to filter information in the VDP request packet, request a VSI management server to process a VSI configuration and strategy corresponding to the filter information to be changed according to the filter information to be changed, receive a processing response from the VSI management server via the packet processing chip and process the VSI configuration and strategy according to the filter information to be changed.
10 . The edge switch according to claim 9 , wherein the notification for changing the traffic features comprises: a notification for increasing the traffic features; wherein
the processor is further to determine filter information to be increased according to the filter information in the VDP request packet, request the VSI configuration and strategy from the VSI management server according to the filter information to be increased via the packet processing chip, receive the VSI configuration and strategy corresponding to the filter information to be increased from the VSI management server via the packet processing chip and configure the received VSI configuration and strategy.
11 . The edge switch according to claim 9 , wherein the notification for changing the traffic features comprises a notification for reducing the traffic features; wherein
the processor is further to determine filter information to be deleted according to the filter information in the VDP request packet, send a request for deleting the VSI configuration and strategy corresponding to the filter information to be deleted to the VSI management server according to the filter information to be deleted via the packet processing chip, receive an acknowledgement response from the VSI management server via the packet processing chip and delete the VSI configuration and strategy corresponding to the filter information to be deleted from the local.
12 . The edge switch according to claim 9 , wherein
the processor is further to receive a notification for keep the traffic features unchanged from the data server via the packet processing chip; and
process the VDP request packet according to a type of the VDP request packet if the notification for keeping the traffic features unchanged is received from the data server or no notification is received.
13 . The edge switch according to claim 12 , wherein
the notification for increasing the traffic features is carried in the VDP request packet or a VDP notification packet;
the notification for reducing the traffic features is carried in the VDP request packet or VDP notification packet; and
the notification for keeping the traffic features unchanged is carried in the VDP request packet or VDP notification packet; wherein
a filter information status field in the VDP request packet indicates whether the received notification is for increasing the traffic features, reducing the traffic features or keeping the traffic features unchanged; and
the filter information status field is placed between a filter format filed and a filter field of the VDP request packet.
14 . The edge switch according to claim 12 , wherein the edge switch further comprises:
a storage, to record a VSI Type ID and a VSI ID in the VDP request packet, record and update the type of the VDP request packet; wherein
the processor is further to process the VDP request packet taken as a keep-alive packet if the VDP request packet is a VDP pre-association request packet, configure an invalid VSI configuration and strategy as a valid VSI configuration and strategy, update the recorded type of the VDP request packet and respond to a VDP association request of the data server via the packet processing chip if the VDP request packet is a VDP association request packet and the type of the recorded VDP request packet is a pre-association request packet, process the VDP request packet taken as the keep-alive packet if the VDP request packet is the VDP association request packet and the recorded type of the VDP request packet is an association request packet, delete the VSI configuration and strategy corresponding to the VSI, notify the VSI management server and make a response to a VDP de-association request of the data server via the packet processing chip if the VDP request packet is a de-association request packet.
15 . The edge switch according to claim 10 , further comprising:
a storage to record a VSI Type ID, VSI ID and the filter information in the VDP request packet;
the processor is further to compare the filter information in the VDP request packet with filter information corresponding to the recorded VSI Type ID and VSI ID and determine that the filter information in the VDP request packet but not in the recorded filter information is the filter information to be increased.
16 . The edge switch according to claim 11 , further comprising:
a storage to record a VSI Type ID, VSI ID and the filter information in the VDP request packet; and
the processor is further to compare the filter information in the VDP request packet with the recorded filter information and determine that the filter information in the recorded filter information but not in the VDP request packet is the filter information to be deleted.