摘要:
A method and a device for policy based routing. The method comprises: setting interfaces of router(s) to be multiple redirection groups, the redirection groups being ordered according to a priority order; detecting interface states of interfaces in the redirection groups; and switching traffic among the multiple redirection groups according to the interface states of the interfaces in the redirection groups. With the adoption of the method and the device of the embodiments of the present invention, paths passing through other operators may be optionally preferred and operating costs are saved; and moreover, by configuring multi-level policy based routing, the reliability of data transmission is enhanced, and the networking of the operator is more flexible.
摘要:
Embodiments of the present invention relate to a method and an apparatus for sending a packet. The method for sending a packet includes: determining whether a packet is a fragmented packet; if the packet is a fragmented packet, determining whether the number of tokens in a token bucket is sufficient; sending the fragmented packet, and deducting the number of tokens in the token bucket, where the deducted number of tokens corresponds to the number of bytes of the sent fragmented packet; and when the number of tokens in the token bucket is insufficient, the number of tokens in the token bucket is a negative number after the number of tokens corresponding to the number of bytes of the sent fragmented packet is deducted. The method and apparatus for sending a packet that are provided in the embodiments of the present invention, even if tokens in a token bucket are insufficient, can send out the fragmented packet by using a deficit of the token bucket, so that a receiving party is capable of receiving all fragmented packets belonging to the same packet and assemble all the fragmented packets into one complete packet, thereby avoiding waste of network resources and bandwidths.
摘要:
A method and a device for policy based routing. The method comprises: setting interfaces of router(s) to be multiple redirection groups, the redirection groups being ordered according to a priority order; detecting interface states of interfaces in the redirection groups; and switching traffic among the multiple redirection groups according to the interface states of the interfaces in the redirection groups. With the adoption of the method and the device of the embodiments of the present invention, paths passing through other operators may be optionally preferred and operating costs are saved; and moreover, by configuring multi-level policy based routing, the reliability of data transmission is enhanced, and the networking of the operator is more flexible.
摘要:
Embodiments of the present invention relate to a method and an apparatus for sending a packet. The method for sending a packet includes: determining whether a packet is a fragmented packet; if the packet is a fragmented packet, determining whether the number of tokens in a token bucket is sufficient; sending the fragmented packet, and deducting the number of tokens in the token bucket, where the deducted number of tokens corresponds to the number of bytes of the sent fragmented packet; and when the number of tokens in the token bucket is insufficient, the number of tokens in the token bucket is a negative number after the number of tokens corresponding to the number of bytes of the sent fragmented packet is deducted. The method and apparatus for sending a packet that are provided in the embodiments of the present invention, even if tokens in a token bucket are insufficient, can send out the fragmented packet by using a deficit of the token bucket, so that a receiving party is capable of receiving all fragmented packets belonging to the same packet and assemble all the fragmented packets into one complete packet, thereby avoiding waste of network resources and bandwidths.