Redirect checking in a network device
First Claim
Patent Images
1. A method for redirect checking in a network device, the method comprising:
- receiving a data packet, from a station located in a subnet, on a first one of a plurality of interfaces;
generating forwarding information identifying a next hop for the data packet;
determining whether the first one of the plurality of interfaces, on which the data packet was received, is the same as an interface, of the plurality of interfaces, on which the data packet is to be forwarded to on the next hop;
forwarding the data packet to the next hop based on the determining;
determining whether the data packet was forwarded via the first one of the plurality of interfaces;
determining whether the station, originating the data packet, belongs to a same subnet as the next hop, based on a hash value representing the subnet of the next hop;
generating a redirect message when the data packet is received and forwarded via the first one, of the plurality of interfaces, and the station, originating the data packet, belongs to the same subnet as the next hop; and
transmitting the generated redirect message to the station originating the data packet.
0 Assignments
0 Petitions
Accused Products
Abstract
A network device includes an input device configured to receive a data packet, where the input device includes a number of interfaces and the data packet includes a source address and a destination address. The network device also includes processing logic configured to generate forwarding information identifying a next hop for the data packet and determine whether an interface on which the data packet was received is a same interface on which the data packet is to be forwarded to the next hop. The processing logic is also configured to determine whether the data packet originated from a device that is part of a same subnet as the next hop.
30 Citations
23 Claims
-
1. A method for redirect checking in a network device, the method comprising:
-
receiving a data packet, from a station located in a subnet, on a first one of a plurality of interfaces; generating forwarding information identifying a next hop for the data packet; determining whether the first one of the plurality of interfaces, on which the data packet was received, is the same as an interface, of the plurality of interfaces, on which the data packet is to be forwarded to on the next hop; forwarding the data packet to the next hop based on the determining; determining whether the data packet was forwarded via the first one of the plurality of interfaces; determining whether the station, originating the data packet, belongs to a same subnet as the next hop, based on a hash value representing the subnet of the next hop; generating a redirect message when the data packet is received and forwarded via the first one, of the plurality of interfaces, and the station, originating the data packet, belongs to the same subnet as the next hop; and transmitting the generated redirect message to the station originating the data packet. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A network device, comprising:
an input device to receive a plurality of data packets, each of the plurality of data packets including a source address and a destination address, from a plurality of interfaces associated with the input device and the input device including a memory and a processor, the memory containing instructions that cause the processor to; generate forwarding information identifying a next hop associated with at least one of the plurality of data packets; determine whether an index interface, of the plurality of interfaces, on which the at least one of the plurality of data packets was received, is the same as an index interface, of the plurality of interfaces, on which the at least one of the plurality of data packets are to be forwarded to on the next hop; and determine whether a device, originating the at least one of the plurality of data packets, belongs to the same subnet as the next hop, based on a hash value representing a subnet of the next hop; generate a redirect message based on both determinations; and transmit the generated redirect message to the device originating the at least one of the plurality of data packets. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
14. A network device, including one or more processors, comprising:
an input device to receive a data packet from an interface, the data packet including a source address and a destination address and the input device including a memory containing instructions that when executed by the one or more processors, cause the one or more processors to; generate data forwarding information identifying a next hop for the data packet; retrieve redirect checking information based on the data forwarding information; determine, using the redirect checking information, whether the data packet is to be forwarded via the interface at which the data packet was received; perform, using the redirect checking information, a subnet address check associated with the data packet, the subnet address check including; generating a hash value using a portion of the source address of the data packet, and comparing the generated hash value to a predetermined hash value; and forward a message to a host processor indicating that a redirect message, associated with the received data packet, is required when the data packet is to be forwarded via the interface at which the data packet was received and when the subnet address check indicates that a device originating the data packet belongs to a same subnet as the next hop. - View Dependent Claims (15, 16, 17, 18)
-
19. A system for performing redirect checking in a network device, the system comprising:
-
a processor; and a memory to store instructions that when executed by the processor cause the processor to; receive a data packet, on a first one of a plurality of interfaces, the data packet including a source address and a destination address; generate forwarding information for the data packet, the forwarding information identifying a next hop for the data packet; retrieve information indicating whether the data packet is to be forwarded on the first one of the plurality of interfaces; determine, using the retrieved information, whether the data packet is to be forwarded via the first one of the plurality of interfaces, at which the data packet was received; perform, using the retrieved information, a subnet address check associated with the data packet, when performing the subnet address check, the processor is to; generate a hash value using a portion of the source address of the data packet, and compare the generated hash value to a predetermined hash value; and generate a redirect message, associated with the data packet, when the data packet is to be forwarded on the first one of the plurality of interfaces, and when the subnet address check indicates that the data packet originated from a device that belongs to the same subnet as the next hop; and transmit the generated redirect message to the device originating the data packet.
-
-
20. A network device, including at least one processor, comprising:
-
an input unit to receive data packets, each data packet including a source address having a number of bits; and a memory containing instructions that when executed by the at least one processor, cause the at least one processor to; generate data forwarding information for a received data packet; compare an incoming interface on which the data packet was received to an outgoing interface on which the data packet is to be forwarded; generate a hash value using a portion of the number of bits of the source address of the data packet; compare the generated hash value to a stored hash value; and determine whether to transmit a redirect message based on both the comparison of the incoming interface to the outgoing interface and the comparison of the generated hash value to the stored hash value. - View Dependent Claims (21, 22, 23)
-
Specification