This application claims priority to Japanese Patent Application No. P2001-097965.
1. Field of the Invention
The present invention relates to routers for routing Internet Protocol (IP) packets and, more specifically, relates to routers and routing methods capable of transmitting packets according to a dynamic distribution ratio and responsive to a fault state in an output line.
2. Description of the Background
IP networks have gained explosive popularity in recent years, with the potential to substitute for telephone networks as one of the most important social infrastructures of society.
In order to reduce the cost of transmission line facilities, a procedure called Equal Cost Multipath is provided in an OSPF (Open Shortest Path First) protocol. The OSPF protocol increases the availability of the effective bandwidth allocated per virtual transmission channel by setting up redundant paths per channel, using a plurality of reduced cost lower-speed lines, and by distributing packets to the multiple lines. Descriptions of OSPF are given, for example, in RFC 2328.
In the OSPF procedure, if a plurality of paths exist and their costs (in terms of line speed, delay time, etc.) are equal when a router computes routing to a destination, the router sets these paths as the candidates for packet-forwarding paths in the routing table. If a plurality of packet-forwarding paths are set, when the router receives packets and determines a packet-forwarding path by searching the routing table, it selects one of the multiple paths according to a suitable distribution procedure. In this way, packets are load-distributed to a plurality of paths, and the multiple paths are regarded as one virtual transmission channel. Utilizing this method, an increase in the availability of effective transmission channel bandwidth can be realized with reduced cost.
Procedures for enabling a quick recovery from a network fault, for example, Automatic Protection Switch (APS), are known. In the APS, as the substitute for a normally operating communication path (working path), an additional communication path (backup path) is prepared in advance to be used in the event that a fault occurs in the working path. While the working path is normally used to forward data, in addition to the data forwarded by the working path, some data (referred to herein as “surplus data”) can be forwarded by using the backup path. When a fault occurs, path switchover is performed in order to use the backup path to forward data that has been forwarded by the working path. Because of the backup path setup in advance and the definite correspondence between the working and backup paths, switchover processing in the event of a fault occurring is simple, and rapid path switchover can be performed.
In the Equal Cost Multipath procedure, a packet-distributing procedure is determined (whether or not the packets are distributed to multiple paths, the number of paths to be used for distributing the packets, and others) in accordance with the destination of the packets, but distributing packets in accordance with their priority cannot be performed.
On the other hand, in the APS, no consideration is given to the protection of high-priority packets at the switchover from the working path to the backup path.
In at least one preferred embodiment of a router according to the present invention, the router sends out high-priority packets with a first destination address specified in their header part over a first output line and high-priority packets with a second destination address specified in their header part over a second output line. The router preferably distributes low-priority packets between the first and second output lines at a distribution ratio that is determined depending on the redundant bandwidth of the first output line and the redundant bandwidth of the second output line.
In another embodiment of the router of the present invention, the router is provided with a first queue for queuing high-priority packets (a first string of packets) with a first destination address specified in their header part, a second queue for queuing low-priority packets (a second string of packets), a third queue for queuing the first string of packets, a fourth queue for queuing high-priority packets (a third string of packets) with a second destination address specified in their header part, a fifth queue for queuing the second string of packets, a first packet delivery controller that reads packets from the first and second queues and sends out the packets over a first output line, and a second packet delivery controller that reads packets from the third, fourth, and fifth queues and sends out the packets over a second output line.
The first packet delivery controller preferably reads the first string of packets from the first queue in preference to (giving preference over) reading the second string of packets from the second queue. The second packet delivery controller reads the first string of packets from the third queue and the third string of packets from the fourth queue in preference to reading the second string of packets from the fifth queue. When the first output line operates free from fault, the packet distribution processing unit determines to send out the first string of packets over the first output line, and the first string of packets are queued in the first queue. At the same time, the packet distribution processing unit preferably determines to send out the third string of packets over the second output line, and the third string of packets are queued in the fourth queue.
If a fault occurs in the first output line thereby placing the first output line in the fault state, the packet distribution processing unit preferably determines to send out the first string of packets over the second output line, and the first string of packets are queued in the third queue. At the same time, the packet distribution processing unit determines to send out the third string of packets over the second output line, and the third string of packets are queued in the fourth queue.
These and other potential objects, features and advantages of the present invention will appear more fully from the following detailed description of the invention, the drawings, and the attached claims.
For the present invention to be clearly understood and readily practiced, the present invention will be described in conjunction with the following figures, wherein like reference characters designate the same or similar elements, which figures are incorporated into and constitute a part of the specification, wherein:
It is to be understood that the figures and descriptions of the present invention have been simplified to illustrate elements that are relevant for a clear understanding of the present invention, while eliminating, for purposes of clarity, other elements that may be well known. Those of ordinary skill in the art will recognize that other elements are desirable and/or required in order to implement the present invention. However, because such elements are well known in the art, and because they do not facilitate a better understanding of the present invention, a discussion of such elements is not provided herein. The detailed description will be provided hereinbelow with reference to the attached drawings.
Before explaining the preferred embodiments of the router of the present invention, an example of the format of an IP packet coming into the router and an example of the internal packet format that is used inside the router are explained with reference to FIG. 2 and FIG. 3.
A preferred embodiment of the router of the present invention will now be described below with reference to
When one of the packet receiving circuits 120-i receives an IP packet through the input line 110-i terminated thereto, it adds the internal header 230 to the received IP packet. The packet receiving unit 120-i counts the length in bytes of the received IP packet and stores the count value (in units of bytes) into the packet length field 231 of the internal header 230. The packet receiving unit 120-i stores the line number (i) of the input line 110-i through which the packet was received in the input line field 232 of the internal header 230 and delivers the packet to the packet forwarding unit 130. At this time, the output line number 233 field contains a dummy value (the output line has not been determined yet).
When the packet forwarding unit 130 receives the packet including the header part 210, the data part 220, and the internal header part 230, the forwarding unit 130 extracts the header information 210 and the internal header information 230, and delivers this information to the routing processing unit 600. Using this header information 210 and internal header information 230, the routing processing unit 600 executes flow detection and routing table look-up and determines packet distribution. Then, the routing processing unit 600 determines the priority of the packet and an output line over which to send out the packet. The routing processing unit 600 then preferably notifies the packet forwarding unit 130 of the output line (for example, 160-j) and the QoS information indicating the priority of the packet. The configuration and operation of the routing processing unit 600 will be described in greater detail below.
The packet forwarding unit 130 stores the line number (j) of the output line 160-j in the output line number field 233 and stores the QoS information in the QoS information field 234 of the internal header 230. The unit 130 then delivers the packet to the switch 140.
In accordance with the output line number 233, the switch 140 switches the packet to the appropriate path and delivers the packet to the corresponding queuing unit 500-j as per the intended output line. The queuing unit 500-j executes transmission control suitable for the priority of the packet according to the QoS information 234 and delivers the packet to the corresponding packet transmitting unit 150-j. Upon receiving the packet, the packet transmitting unit 150-j removes the internal header part 230 from the packet and delivers the packet to the corresponding output line 160-j.
The operation of a queuing unit 500-j will now be explained.
The queuing unit 500 preferably also includes a packet delivery controller 504 that controls the transmission of the packets placed in the FIFO packet queues 510-k in accordance with an agreement (e.g., a contract) made for each priority level of packets. The unit 500 may also include FIFO counters 520-k that count the number of packets placed in the FIFO packet queues 510-k and passage/discard counters 530-k that count the number and byte size of queued packets and the number and byte size of discarded packets for the packets queued and discarded under the control of the queuing processing circuit 502.
When the queuing processing unit 502 receives a packet from the switch 140, the header part 210, the data part 220 and the internal header part 230 of the packet are all preferably stored into the buffer 501, and the internal header 230 is additionally stored in the queuing processing circuit 502. The queuing processing circuit 502 selects a FIFO packet queue (for example, 510-k) into which the packet is to be queued according to the QoS information 234 of the internal header part 230. Then, the queuing processing circuit 502 reads the value of the FIFO counter 520-k corresponding to the selected FIFO packet queue 510-k and determines to “place the packet into the queue” if the following inequality is true:
In this case, the queuing processing circuit 502 requests the buffer 501 to deliver the packet to the FIFO packet queue 510-k, increments by “1” the read value of the FIFO counter 520-k, and stores this incremented value into the FIFO counter 520. Then, the queuing processing circuit 502 increments by “1” the number of passed packets and adds the byte count contained in the packet length 231 field of the internal header 230 to the number of bytes of passed packets in the appropriate passage/discard counter 530-k.
On the other hand, the queuing processing circuit 502 determines to “discard the packet” if the following equation is satisfied:
In this case, the queuing processing circuit 502 does not request the buffer 501 to deliver the packet. The buffer 501 overwrites the information for the packet determined to be “discarded” with the information of the next packet to arrive. The queuing processing circuit 502 also does not increment the FIFO counter 520-k. Instead, the queuing processing circuit 502 increments by “1” the number of discarded packets and adds the byte count contained in the packet length 231 field of the internal header 230 to the number of the bytes of the discarded packets in the appropriate passage/discard counter 530-k.
In accordance with the agreement made for each priority level of packets, the packet delivery controller 504 preferably reads a packet from one of the FIFO packet queues 510-k provided for the priority levels and delivers it to the associated packet transmitting unit 150. For example, the packet delivery controller reads a packet from a high-priority packet queue and delivers it to the packet transmitting unit so that its transmission within the agreement bandwidth will be ensured. When sending out a low-priority packet, the packet delivery controller 504 preferably reads a packet from a low-priority packet queue at such timing so as not to interrupt the transmission of a high-priority packet. When a packet is read from a FIFO packet queue 510-k, the value of the FIFO counter 520-k corresponding to the FIFO packet queue 510-k is decremented by “1” and stored into the counter 520-k again.
The controller 170 may periodically monitor the passage/discard counters 530-k provided for each of the queues 510-k and may calculate the bandwidth for passage packets and the bandwidth for discard packets for each queue. For example, the bandwidth may be calculated by monitoring the byte size over a given period of time and dividing the byte size by the time to get the bandwidth.
The router 401 is connected to terminal A 411, terminal B 412, terminal C 413, and terminal D 414. The router 402 is connected to terminal E 415, terminal F 416, terminal G 417, and terminal H 418. The router 401 and the router 402 are interconnected with two lines 421 and 422. The line 421 and the line 422 are capable of backing up each other in a redundant configuration. In the event that one line becomes inoperative in a fault state, both the router 401 and the router 402 send all packets over the other line, including those intended to be transmitted over the inoperative (fault) line. During normal operation, the routers preferably distribute packets between these two lines for effective use of bandwidth.
For purposes of example, it is assumed that the users E and F of the terminal E 415 and the terminal F 416 made an agreement with the carrier to use the IP network 400 for packet transfer in accordance with a priority predetermined per application. The agreement preferably includes the following general guidelines. For example, real-time processing communication packets are given high priority, and it is ensured that they are preferentially transferred (i.e., transferred before lower priority packets) by using a fixed bandwidth. On the other hand, web data and E-mail data packets are handled as low-priority packets and are transmitted in a low-priority transfer manner. It may also be assumed that the users G and H of the terminal G 417 and the terminal H 418 have agreed with the carrier to use the IP network 400 with agreement terms in which all packets are transferred as low-priority packets.
Packets transmitted from any of terminal A 411, terminal B 412, terminal C 413, and terminal D 414 are carried through the routers 401 and 402 and arrive at any of terminal E 415, terminal F 416, terminal G 417, and terminal H 418. The router 401 is set to forward high-priority packets whose destination is the terminal E 415 over the line 421 and high-priority packets whose destination is the terminal F 416 over the line 422. The router 401 is also set to forward all packets (low-priority packets) whose destination is the terminal G 417 or the terminal H 418 by distributing them between the line 421 and the line 422. The ratio setting of this distribution between both lines are preferably changed periodically so that unoccupied bandwidth of the lines 421 and 422 can be used more efficiently. The setting of this distribution ratio will be described below.
By referring to
A series of packets that meet any flow conditions is called a flow. A process consisting of identifying a flow to which an input packet belongs by determining what conditions are fulfilled by the information in the header of the packet and identifying a priority level predetermined for the flow is called flow detection. A non-entry marking “-” in the flow condition 701 fields in
This Hash-Threshold procedure calculates a hash value from, for example, the SIP and DIP of a received packet and distributes the packet based on this hash value. The use of this procedure preferably ensures that packets having the same SIP and DIP are routed on the same path. Therefore, the packets in the same flow will preferably arrive at the receiving terminal in the sequence in which they have been sent out. If another distribution procedure is used that does not ensure that the packets arrive in sequence, the packets received at the receiving terminal may need to be rearranged into the proper sequence or a TCP retransmission may occur thereby decreasing the packet transmission bandwidth.
The packet distribution determining unit 1000 is preferably comprised of an output line number candidate storing means 1001, a distribution thresholds storing means 1002, a hash value generating circuit 1003, and an output line determining circuit 1004. The output line number candidates storing means 1001 stores a plurality of output line number candidates 901 which are obtained as the result of searching the packet distribution table 900. The distribution thresholds storing means 1002 stores distribution thresholds 902 which are also obtained as the result of searching the packet distribution table 900. The hash value generating circuit 1003 generates a hash value 1005 from, for example, the SIP 211 and DIP 213 in the header part 210 which is stored in the header information storing unit 601. Hash values thus generated are, for example, 8-bit values (0 to 255).
The space equivalent to the bandwidth of a virtual transmission channel consisting of a plurality of output lines is evenly partitioned in units of these hash values. The distribution thresholds 902 are used to divide this space and allocate each space division to each output line candidate. This allocation is explained using the entry 913 in
Out of the plurality of space divisions, each allocated to one of the output line candidates according to the distribution thresholds 902, the output line determining circuit 1004 determines which is the space division having a predetermined hash value range within which the generated hash value 1005 falls. Then, this circuit 1004 outputs an output line number 1006 to which the determined space division is allocated as the result of the output line determination.
If there are a great number of combinations of source terminals and destination terminals (that is, SIP and DIP combinations) of packets to be handled by the router 100, it can be expected that hash values generated from the SIPs and DIPs are evenly distributed throughout the space partitioned in units of hash values. Thus, the packet distribution ratio can be expected to approximate the ratio of size between the space divisions divided, according to the distribution thresholds 902. For example, packets to be routed as in the entry 913 can be distributed between line 1 and line 2 at a ratio of approximately 1:3.
While the configuration of the packet distribution determining unit 1000 for implementing the Hash-Threshold procedure was explained above with reference to
While the configuration of the packet distribution determining unit 1000 for implementing the Hash-Threshold procedure was explained above with reference to FIG. 9 and
The operation of the routing processing unit 600 will now be described (see FIG. 6). Initially, the flow detection processing unit 602 searches the flow table 700 for a match with the search key of information required for flow detection retrieved from the information stored in the header information storing unit 601. QoS information 702 indicating a priority level matching with the search key, obtained as the result of search, is preferably delivered to the packet forwarding unit 130 and the routing table look-up processing unit 603.
Thereafter, the routing table look-up processing unit 603 searches the routing table 800 for a match with the search key consisting of the QoS information 702 and the DIP 212 retrieved from the information stored in the header information storing unit 601. An output path identifier 802 matching the search key obtained as the result of the search is preferably delivered to the packet distribution determining unit 1000. Then, the packet distribution determining unit 1000 searches the packet distribution table 900 for a match with the search key that is the output path identifier 802.
A plurality of output line candidates 901 obtained as the result of search are stored in the output line number candidates storing means 1001, and the distribution thresholds 902 predetermined for the output line number candidates are stored by the distribution threshold storing means 1002 (see FIG. 10). At the same time, the hash value generating circuit 1003 generates a hash value 1005 from the combination of appropriate information items in the header 210, stored in the header information storing unit 601, and delivers it to the output line determining circuit 1004. Based on the hash value 1005 and the distribution thresholds 902, the output line determining circuit 1004 determines an output line number 1006 and delivers it to the packet forwarding unit 130.
As described above, the router 100 executes flow detection, determines the level of priority of the received packets, searches the routing table for a match with the search key consisting of the priority level (QoS information) and DIP, and executes packet distribution. Thus, even for multiple packets whose destination is the same terminal, the router can perform the distribution of individual packets according to the priority.
While the routing table 800 and the packet distribution table 900 are separate in the configuration shown in
In
With reference to
For simplification, the FIFO counters corresponding to the queues 1101-1 to 1101-3 and 1102-1 to 1102-3 are also omitted from this schematic drawing, and the controller 160 appears to read the values of the passage/discard counters directly from the queues. Furthermore, the controller 170 appears to be notified of the line states (indicating whether a line fault occurs) of output line 1 and output line 2 directly from the lines in this drawing.
In
The packet distribution table 900 preferably contains the settings as exemplified in FIG. 9. Output line 1 is assigned to the output path identifier “1.” Output line 2 is assigned to the output path identifier “2.” Two output lines 1 and 2 are assigned to the output path identifier “3.”
The router 100 preferably includes the queues for output line 1: queue 1101-1 for storing high-priority packets to terminal E 1141; queue 1101-2 for storing high-priority packets to terminal F 1142; and queue 1101-3 for storing low-priority packets to terminals E, F, G, and H 1143. The same priority is given to the queue 1101-1 and the queue 1101-2. Among these queues, the queue 1101-2 is to store high-priority packets to terminal F 1142 in the event that a fault in the output line 2 occurs, but no packets are queued in this queue 1102-2 during normal operation.
In addition, the router 100 preferably includes the queues for output line 2: queue 1102-1 for storing high-priority packets to terminal E 1141; queue 1102-2 for storing high-priority packets to terminal F 1142; and queue 1102-3 for storing low-priority packets to terminals E, F, G, and H 1143. The same priority is given to the queue 1102-1 and the queue 1102-2. Among these queues, the queue 1102-1 is to store high-priority packets to terminal E 1141 in the event that a fault in the output line 1 occurs, but no packets are queued in this queue 1102-1 during normal operation.
The packet delivery controller 504-1 for output line 1 holds the agreement bandwidth settings for the packets in the queue 1101-1 and the packets in the queue 1101-2 to assure that the packets from each queue are transmitted within each agreement bandwidth. Thus, the packet delivery controller 504-1 delivers the packets to the output line 1 in accordance with the agreement bandwidth for transmitting the packets. If it is assumed that the agreement bandwidth setting for the packets in the queue 1101-1 is BW1, that for the packets in the queue 1101-2 is BW2, and the bandwidth allocated for the output line 1 is CW1; the following constraint shall be fulfilled:
CW1≧BW1+BW2 (Inequality Constraint 1)
Similarly, the packet delivery controller 504-2 for output line 2 holds inside agreement bandwidth settings BW1 and BW2, respectively for the packets in the queue 1102-1 and the packets in the queue 1102-2. If the bandwidth allocated for the output line 2 is assumed CW2, the following constraint shall be fulfilled:
CW2≧BW1+BW2
The handling of the packets in the router during normal operation will now be explained. High-priority packets to terminal E 1141 are queued into the queue 1101-1 for output line 1, which is provided to store packets assigned “1” as QoS information in accordance with the settings in the flow table 700, the routing table 800, and the packet distribution table 900. The path is denoted by a solid line 111 in FIG. 11. High-priority packets to terminal F 1142 are queued into the queue 1102-2 for output line 2, which is provided to store packets assigned “2” as QoS information, which is similarly denoted by a solid line 1122.
For low-priority packets to terminals E, F, G, and H 1143, there are two candidates of output lines 1 and 2 over which the packets may be forwarded. Thus, these packets are distributed to the output line 1 and the output line 2 as determined by the packet distribution determining unit 1000. These paths are denoted by solid lines 1131 and 1132 in FIG. 11. Because these packets are assigned “3” as QoS information, they are queued in queues 1101-3 and 1102-3 provided for storing them. The solid lines 1111 to 1132 are drawn to simply indicate the different queues to store the different destination packets.
The packet delivery controller 504-1 sends out the packets in queue 1101-1 preferentially over the output line 1 in accordance with the agreement bandwidth setting BW1 for user E. At the same time, the packet delivery controller 504-1 attempts to send out the packets in queue 1101-2 preferentially over the output line 1 in accordance with the agreement bandwidth setting BW2 for user F. However, because no packets are queued in the queue 1101-2 during normal operation, the packet delivery controller will normally execute no delivery control of the queue 1101-2.
Additionally, the packet delivery controller 504-1 sends out the packets in queue 1101-3 over the output line 1 to an extent beyond which sending these packets may affect the assured transmission of high-priority packets using the agreement bandwidth. The packet delivery controller 504-2 operates in the same way as above, and it will normally execute no delivery control of the queue 1102-1.
The setting of the ratio of distributing low-priority packets 1143 between the output lines will now be explained. High-priority packets 1141 are sent out over the output line 1 in accordance with the agreement bandwidth setting BW1, and high-priority packets 1142 are sent out over the output line 2 in accordance with the agreement bandwidth setting BW2. For simplification, it is assumed that the bandwidth settings BW1 and BW2 according to which the high-priority packets 1141 and 1142 are sent out, are fixed.
In this case, redundant bandwidth RW1 of output line 1 is obtained by RW1=CW1−BW1, and redundant bandwidth RW2 of output line 2 is obtained by RW2=CW2−BW2. If the average bandwidth used for incoming low-priority packets 1143 for a period is assumed to be BW3, an expected value DW3min for the total sum DW3 of the cuts of the bandwidth, equal to the quantity of discarded low-priority packets 1143 is obtained as follows:
DW3min=max [BW3−(RW1+RW2), 0] (Equation 2)
If the distribution ratio is not good, the difference between DW3and DW3 min becomes large. This difference is expressed as DDW3=DW3−DW3min. Thus, the distribution ratio should be adjusted so that the value of DDW3 will be minimized to maximize the use of the bandwidth.
For simplification, consider a case where the change of the average bandwidth used for the incoming packets is sufficiently slow as compared with the time of the intervals at which the values of the passage/discard counters of the queues are monitored. In this case, BW3 can be regarded as being approximately constant. Thus, DW3min can also be regarded as being constant.
The outline flow of the process of setting the distribution ratio on the conditions described above is illustrated in FIG. 12. The initial distribution ratio should be set at RW1:RW2. Set the distribution thresholds in the packet distribution table to attain this distribution ratio (step 1201). After the thresholds are set, the values of the passage/discard counters of the queues are monitored (step 1202). Average bandwidth BW3 used for incoming low-priority packets 1141 and an expected value DW3min for the total sum of bandwidth cuts equal to the quantity of discarded packets are calculated (step 1203).
The value of DDW3 is calculated from DW3 (step 1204). Then, a comparison is made between DDW3 and an evaluation threshold Th which is assumed to be set in advance (step 1205). If DDW3 is less than Th, the process of setting the distribution ratio terminates (go to step 1206). If DDW3 is greater than Th, the distribution ratio is preferably recalculated based on the bandwidth cuts equal to the quantity of discarded packets for the queues 1101-3 and 1102-3. The distribution thresholds to attain the calculated ratio are set in the packet distribution table (step 1207). The values of the passage/discard counters of the queues are monitored (step 1208), and a return is made to the step 204. The controller 170 preferably executes the above flow of setting the distribution ratio whereby low-priority packets 1143 can properly be distributed between the redundant bandwidths of the output lines.
High-priority packets 1141 and 1142 are sent out over a single output line; they are not distributed. Consider a presumptive case where high-priority packets 1141 and 1142 are distributed to the output line 1 and the output line 2, and the distribution ratio is altered as described above for low-priority packets in order to make effective use of the redundant bandwidths of the lines. In this case, the path of packets for which a hash value near the distribution thresholds is generated changes. Consequently, there is a possibility of the loss of the assurance that packets are received at the receiving terminal in the sequence in which they have been sent out and a possibility of the transmission bandwidth being restricted by TCP flow retransmission control activated. Thus, it is desirable that packet distribution is set to be disabled for high-priority packets for which strict requirements such as minimizing delay are specified.
In the above-described example, the case was discussed where the bandwidth to be used for sending out high-priority packets 1141 is fixed to BW1 and that for sending out high-priority packets 1142 is fixed to BW2. Even if the bandwidths for sending out the high-priority packets are not fixed (for example, in a case where complete priority control is executed for high-priority packets), however, the procedure of setting the distribution ratio illustrated in
The handling of packets in the event that a fault occurs in the output line 2 will now be explained. When the controller 170 receives a notification that a fault occurs in output line 2, it preferably performs switchover from the line 2 to the other line 1 to send out all packets over the other output line 1 including those originally intended to be sent out over the output line 2. Although several methods of switchover between the lines are conceivable, a line switching procedure by changing the line settings in the switch 140 is applied herein.
The switch 140 preferably includes a table of mapping between the output line numbers 233, one of which is specified in the internal header part 230 of a packet, and the output lines over which packets are actually sent out. The controller 170 may be capable of changing the contents of this mapping table. Assume that, during normal operation, output line 1 and output line 2 are set mapped in the table to output line numbers 1 and 2, respectively,. When a fault in the output line 2 occurs and the controller 170 receives the notification thereof, the controller 170 checks the settings in the mapping table and changes the output line mapped to output line number 2 from the output line 2 to the output line 1. Due to this change, packets sent out over the output line 2 prior to the occurrence of the fault of the line will now be sent out over the output line 1.
After the line switchover processing is performed, high-priority packets to terminal F 1142 are queued in the queue 1101-2 for output line 1 as indicated by a broken line 1121 in FIG. 11. Low-priority packets to terminals E, F, G, and H are all queued in the queue 1101-3 for output line 1 as indicated by the solid line 1131. At this time, because the queue 1101-2 has been provided beforehand for high-priority packets to terminal F 1142, other high-priority packets such as those to terminal E 1141 in the present case are not affected by the line switchover.
The agreement bandwidth BW for user F has been set beforehand in the packet delivery controller 504-1, and the relationship between the bandwidth of the output line 1 and BW1 plus BW2 subject to the foregoing Inequality Constraint (1) is true. Thus, sending out both high-priority packets to terminal E 1141 and high-priority packets to terminal F 1142 is controlled with the assurance that they are transmitted within their agreement bandwidths.
In preparation for switching over from one line to the other, another queue for high-priority packets is provided for the other line, and the agreement bandwidth for the packets is also set in the delivery controller for the other line as explained above. In this way, a system that ensures that high-priority packets are transmitted within the agreement bandwidth after a line switchover due to the line fault can be implemented.
In the above explanation, two strings of high-priority packets 1141 and 1142 are set to be queued respectively in the priority packet queues 1101-1 and 1102-2 that are for different lines. However, the packet distribution table may be set so that these packets will be queued in the priority packet queues for the same line, for example, the queues 1101-1 and 1101-2 for output line 1. In this case, the queues 1102-1 and 1102-2 for output line 2 are to store two strings of high-priority packets 1141 and 1142 in the event that a fault occurs in output line 1.
By using the router of the present invention, individual packets can be distributed to at least two output lines. This distribution may or may not apply, depending on the priority level of packets. Therefore, it is feasible to distribute only low-priority packets and disable the distribution of high-priority packets. By adjusting the ratio of distributing low-priority packets between the lines, according to the use conditions of the bandwidths of the lines, effective use of the line bandwidths can be realized. Because packet distribution is not applied for high-priority packets, quality deterioration, e.g., out of sequence of the packets received, caused by path change due to the adjustment of the packet distribution ratio is substantially avoidable.
Furthermore, the router of the present invention preferably determines the priority level of packets on flow detection and queues packets it received into one of the multiple queues, some of which are for high-priority packets, for each line, in accordance with the priority level. Even if a fault in one line occurs, followed by switchover to the other output line to send all packets over the other line, high-priority packets are queued into the priority packet queue for the other output line after the switchover. Thus, it can be assured that high-priority packets are always preferentially sent out over one of the output lines.
The foregoing invention has been described in terms of preferred embodiments. However, those skilled, in the art will recognize that many variations of such embodiments exist. Such variations are intended to be within the scope of the present invention and the appended claims.
Nothing in the above description is meant to limit the present invention to any specific materials, geometry, or orientation of elements. Many part/orientation substitutions are contemplated within the scope of the present invention and will be apparent to those skilled in the art. The embodiments described herein were presented by way of example only and should not be used to limit the scope of the invention.
Although the invention has been described in terms of particular embodiments in an application, one of ordinary skill in the art, in light of the teachings herein, can generate additional embodiments and modifications without departing from the spirit of, or exceeding the scope of, the claimed invention. Accordingly, it is understood that the drawings and the descriptions herein are proffered by way of example only to facilitate comprehension of the invention and should not be construed to limit the scope thereof.
Number | Date | Country | Kind |
---|---|---|---|
P2001-097965 | Mar 2001 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6205150 | Ruszczyk | Mar 2001 | B1 |
6304578 | Fluss | Oct 2001 | B1 |
6798743 | Ma et al. | Sep 2004 | B1 |
20020003795 | Oskouy et al. | Jan 2002 | A1 |
20020093910 | Yazaki et al. | Jul 2002 | A1 |
Number | Date | Country | |
---|---|---|---|
20020141403 A1 | Oct 2002 | US |