USPatent applicationPatented

Shared memory based network switch and the network constructed with the same

Granted 18 Mar 2003 · no office action yet

Application· this page
9350471
filed 9 Jul 1999
Publication
Not published
not published
Patent
US 6,535,516
granted 18 Mar 2003

Life of the application

9 dated events
⤢ drag to zoom20002002200420062008201020122014201620182020ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A shared memory based network having a transferring network switch and a receiving network switch. In this network, each network switch has a stack, queues corresponding to output ports and a dared control port. The stack stores available buffer addresses of the shared memory. Each of the queues stores to-be-accessed buffer addresses of the corresponding output port. The shared control port is driven to indicate states of the shared memory based network, so that th stack of the transferring network switch is identical with the stack of the receiving network switch. The shared memory can be read by all output ports of both the transferring network switch and the receiving network switch according to their corresponding queues.

Description

6 parts
›BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a network switch and a network adapted for use with the network switch. In particular, the invention relates to a shared memory based network switch and a network constructed with the same, in which each network switch has a stack, several queues corresponding to output ports and a shared control port, so that the shared memory can be used more efficiently.

2. Description of the Related Art

Ethernet switch ICs are usually divided into three categories: shared bus based architecture, cross bar based architecture and shared memory base architecture.

FIG. 1 (Prior Art) is a diagram showing a conventional shared bus based architecture. As shown in FIG. 1, Ethernet switch ICs ESW 1 ˜ESW 4 are respectively provided with a local packet memory PM 1 ˜PM 4 . When one of the Ethernet switch ICs receives an incoming packet, that Ethernet switch IC will make a local routing decision and write the packet to a free buffer of its local packet memory. If the packet is to be outputted to a destination port within the range of the original Ethernet switch IC, the packet is passed directly to the destination port. If the packet is to be outputted to a destination port outside the range of the original Ethernet switch IC, then the Ethernet switch IC will send a command through the shared bus and command the destined Ethernet switch IC to prepare a free buffer. The original Ethernet switch then sends the packet through the shared bus to the destined Ethernet switch and releases the storage space. Thereafter, the destined Ethernet switch IC stores the packet and outputs the packet to the destination port.

FIG. 2 (Prior Art) is a diagram showing a conventional cross bar based architecture. As shown in FIG. 2, Ethernet switch ICs ESW 5 ˜ESW 8 are connected to an arbitrator AR 1 and are respectively provided with a packet memory PM 5 ˜PM 8 . When one of the Ethernet switch ICs transfers an outgoing packet, this Ethernet switch IC will send a command to instruct the arbitrator AR 1 to establish a point-to-point interconnection, so that the packet can be sent from the transferring Ethernet switch IC to the destined Ethernet switch IC.

FIG. 3 (Prior Art) is a diagram showing a conventional point-to-point shared memory based architecture. As shown in FIG. 3, Ethernet switch ICs ESW 9 ˜ESW 12 are connected to a shared memory M 1 . A central queue manager COM 1 is used to control the shared memory M 1 , for example, by allocation or release of a free buffer (not shown) in the shared memory M 1 .

FIG. 4 (Prior Art) is a diagram showing a conventional meshed shared memory based architecture. As shown in FIG. 4, four Ethernet switch ICs ESW 13 ˜ESW 16 are interconnected to each other as a mesh (that is, each of the four Ethernet switch ICs is connected to the other three), and all packets are parallelly stored in four packet memories PM 13 ˜PM 16 which are dedicated to a respective one of the four Ethernet switch ICs ESW 13 ˜ESW 16 .

However, each of the mentioned architectures has its drawbacks.

In the shared bus based architecture of FIG. 1, when one of the Ethernet switch ICs receives an incoming packet, this Ethernet switch IC will store the packet in its local packet memory, then directly output the packet to a destination port (if the destination port is within the range of the original Ethernet switch IC) or indirectly output this packet through another destined Ethernet switch IC (if the destination port is outside the range of the original Ethernet switch IC). Using this architecture, it is possible for a packet to be moved and copied two or more times, which reduces the efficiency of the shared memory. Although this architecture can provide multicast services, its quality of services (QOS) is fair.

In the cross bar based architecture of FIG. 2, the arbitrator AR 1 is used to establish a point-to-point interconnection so that the packet can be transferred to the destined Ethernet switch IC. However, with this architecture, it takes a two-cycle await time to transfer a packet. Also, this cross bar based architecture cannot support multicast services or good quality of services. Head-of-line blocking is also possible.

In the point-to-point shared memory based architecture of FIG. 3, Ethernet switch ICs are connected to a shared memory. Therefore, it only takes a one-cycle await time to transfer a packet, and multicast services and good quality of services can be supported. However, an extra central queue manager is required, making single chip solutions impossible.

The meshed shared memory based architecture of FIG. 4 also only requires a one-cycle await time to send a packet; multicast services and good quality of services can be supported; and single chip solutions can be supported. However, a meshed shared memory based architecture is complicated and does not allow for easy expansion.

›SUMMARY OF THE INVENTION

Therefore, it is an object of the present invention to provide a shared memory based network switch and a network including the same, the shared memory based network switch requiring only a one-cycle await time to transfer a packet.

It is another object of the present invention to provide a shared memory based network switch and a network including the same, which can support multicast services and good quality of services.

It is another object of the present invention to provide a shared memory base network switch and a network including the same, which can support single chip solutions and can be expanded easily because of its simple structure.

To realize the above and other objects, the present invention provides a shared memory based network including a transferring network switch and a receiving network switch. Each network switch includes a stack, several queues of corresponding output ports and a shared control port. The stack stores available buffer addresses of the shared memory. Each of the queues stores to-be-accessed buffer addresses of the corresponding output port. The shared control port is driven to indicate various states of the network, so that the stack of the transferring network switch is identical with the stacks of the receiving network switches at all times, and the shared memory is read by all the output ports of both the transferring network switch and the receiving network switch according to the corresponding queues.

The present invention also provides a shared memory based network switch which is connected to a shared memory through a shared bus. The shared memory includes several buffers. The network switch includes a stack, several queues corresponding to output ports and a shared control port. The stack stores available buffer addresses of the shared memory. Each of the queues stores to-be-accessed buffer addresses of the corresponding output port. The shared control port is driven to various states so that the stack can pop out or push in a top buffer address, and the shared memory can be read by all the output ports according to the corresponding queues.

›BRIEF DESCRIPTION OF THE DRAWINGS

Further objects, features and advantages of the present invention will become apparent from the following detailed description of a preferred embodiment of the invention with reference to the accompanying drawings.

FIG. 1 is a diagram showing a conventional shared bus based network;

FIG. 2 is a diagram showing a conventional cross bar based network;

FIG. 3 is a diagram showing a conventional point-to-point shared memory based network;

FIG. 4 is a diagram showing a conventional meshed shared memory based network.

FIG. 5 is a diagram showing a shared memory based network of the present invention;

FIG. 6 is a diagram showing exchanging cycles for all output ports obtained by time division multiplexing (TDM);

FIG. 7 is a diagram showing a simplified shared memory based network of the present invention;

FIG. 8 A˜ 8 E are diagrams showing various states of the shared memory based network as shown in FIG. 7; and

FIG. 9 A˜ 9 D are diagrams showing control signals of the control port of the present invention.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 1 of 3

To achieve the above objects, the shared memory based network of the present invention includes a stack and several queues in each network switch. These network switches are interconnected together within the network by a shared control port. The stack is used to store available buffer addresses of the shared memory. Each of the queues corresponds to a respective output port and is used to store to-be-accessed buffer addresses for the output port. The shared control port is driven to indicate various states of the network, so that the stack for each network switch is identical and all output ports can access the shared memory according to the corresponding queues.

Referring to FIG. 5, a diagram showing a shared memory based network of the present invention is shown. The network includes a shared memory M 2 having P buffers and N network switches E 0 ˜E N−1 , each having m output ports, where P, N and m are all integers.

The P buffers of the shared memory M 2 are represented by A 0 ˜A P−1 and have starting addresses at A 0 — 0 ˜A P−1 — 0 , respectively. Each buffer is a predetermined number bytes in length, followed by a multicast count MC 0 ˜MC P−1 . In this particular embodiment, each buffer is 1536 bytes in length.

The N network switches E 0 ˜E N−1 are connected to the shared memory M 2 through a shared bus B 1 . Each network switch E 0 ˜E N−1 includes a shared control port CL, a stack FSB and m queues Q corresponding to the m output ports. As shown in FIG. 5, the N network switches E 0 ˜E N−1 have their respective control ports CL 0 ˜CL N−1 connected to each other. Each stack is structured as a first-in-last-out (FILO) memory (e.g., a dynamic linked memory) which stores available buffer addresses of the shared memory M 2 . Each queue is structured as a first-in-first-out (FIFO) memory which stores to-be-accessed buffer addresses of the shared memory M 2 for its corresponding output port. The shared control port is driven to various states corresponding to states of the network. The switches respond to these states such that stacks in the network are identical at all times and each output port in the network can access the shared memory according to their corresponding queues.

Hereafter is a detailed description of an embodiment in which the control port CL 0 includes a synchronization signal SYNC, a First_Write signal FW and a Last_Read LR signal.

The synchronization signal SYNC is used to define exchanging cycles for all output ports of the network switches E 0 ˜E N−1 . FIG. 6 is a diagram showing the exchanging cycles provided by time-division-multiplexing (TDM) scheme. As shown in FIG. 6, a complete working cycle includes an input phase IP and an output phase OP. The output phase OP is divided into N frames OP 0 ˜OP N−1 corresponding to the N network switches E 0 ˜E N−1 . Each frame (such as OP 0 ) is further divided into m time slots OP 0 — 0 ˜OP 0 — m−1 corresponding to the m output ports of a switch. Thus, all output ports can transfer a packet via the exchanging cycle. Similarly, the input phase IP is also divided into N frames IP 0 ˜IP N−1 corresponding to the N network switches E 0 ˜E N−1 . Each frame (such as IP 0 ) is further divided into m time slots IP 0 — 0 ˜IP 0 — m−1 corresponding to the m output ports of a switch. Thus, each output port has two slots to read from and write to the shared memory M 2 via each exchanging cycle.

The First_Write FW signal and the Last_Read LR signal are used to indicate the state of the shared memory M 2 so that the shared memory M 2 can be efficiently shared by all the network switches E 0 ˜E N−1 .

When an incoming packet PK 1 is first written to the shared memory M 2 , the receiving network switch (such as E 1 ) stores he packet PK 1 in a free buffer of the shared memory M 2 according to a top address (such as A 3 ) of the stack FBS 1 . The receiving switch then pops the top address A 3 from the stack FBS 1 and drives the shared control ports CL 0 ˜CL N−1 to a “First_Write” status which pops a top address (i.e., A 3 ) from the stacks FBS 0 , FBS 2 ˜FBS N−1 of the other network switches E 0 , E 2 ˜E N−1 . Thus, the First_Write status informs all the network switches E 0 ˜E N−1 that the buffer addressed A 3 is already in use.

When the packet PK 1 is completely written to the shared memory M 2 , the network switch E 1 sends a routing result (including destined output ports of the packet PK 1 ) through the shared bus B 1 and drives the control ports CL 0 ˜CL N−1 to a “Routing_Result” status, which stores the address A 3 from the shared bus B 1 in the queues corresponding to the destined output ports. This process informs all the destined output ports that the packet PK 1 has been stored in the buffer addressed A 3 .

When the shared memory M 2 is to be read from one of the output ports, the network switch including this output port (such as E 0 ) reads a buffer of the shared memory M 2 according to a bottom address (such as A 3 ) output from the corresponding queue when the reading is completed, the switch drives the control ports CL 0 ˜CL N−1 to a “Last_Read” status, which pushes the address A 3 to all the stacks FBS 0 ˜FBS N−1 thereby informing all the network switches E 0 ˜E N−1 that the buffer addressed A 3 is released.

When an error occurs during the writing of the packet PK 1 to the shared memory M 2 , to ensure that the buffer addressed A 3 can be utilized again, the network switch E 1 drives the control ports CL 0 ˜CL N−1 to an “Error” status, which halts the writing of the shared memory M 2 and pushes the earlier popped address A 3 back on to all the stacks FBS 0 ˜FBS N−1 . This informs all the network switches E 0 ˜E N−1 that the buffer addressed A 3 is released.

FIG. 7 is a diagram showing a simplified shared memory based network of the present invention. As shown in FIG. 7, the network only includes two network switches E 1 ˜E 2 , a shared memory M 2 having four buffers A 0 ˜A 3 , and a simplified control port CL that offers a First_write signal FW and a Last_Read signal.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 2 of 3

FIG. 8A through 8E are diagrams showing various operations of the shared memory based architecture in FIG. 7 .

Initially, as shown in FIG. 8A, both of the stacks FBS 1 ˜FBS 2 of the network switches E 1 ˜E 2 are sequentially stacked with buffer addresses A 0 ˜A 3 indicating that four buffers A 0 ˜A 3 of the shared memory M 2 are available. Both of the queues Q 1 ˜Q 2 are empty, indicating that the shared memory M 2 is not to be read from the corresponding output ports.

As shown in FIG. 8B, when an incoming packet PK 1 is to be written to the shared memory M 2 from the network switch E 1 , the network switch E 1 writes the packet PK 1 into a free buffer of the shared memory M 2 according to a top address A 3 of the stack FBS 1 . The switch E 1 pops the top address A 3 when the packet PK 1 is first written and pulls the First_Write FW signal low to drive the control port CL to a “First_Write” status. Under this status, the stack FBS 2 of the network switch E 2 also pops a top address (i.e., A 3 ). After the packet PK 1 has been completely written to the shared memory M 2 , the network switch E 1 pulls both the First_Write signal FW and the Last_Read signal LR low to drive the control port CL to a “Routing_Result” status, and sends a routing result (including destined output ports of the packet PK 1 ) to place the address A 3 in the corresponding queue Q 2 .

Similarly, as shown in FIG. 8C, when another packet PK 2 is to be written to the shared memory M 2 from the network switch E 2 , the network switch E 2 writes the packet PK 2 into another free buffer of the shared memory M 2 according to a top address A 2 of the stack FBS 2 , pops the top address A 2 when the packet PK 2 is first written, and pulls the First_Write signal low to drive the control port CL to a “First_Write” status. The stack FBS 1 of the network switch E 1 pops a top address (i.e., A 2 ). After the packet PK 2 has been completely written to the shared memory M 2 , the network switch E 2 pulls both the First_Write signal FW and the Last_Read signal LR low to drive the control port CL to a “Routing_Result” status, and sends a routing result (including destined output ports of the packet PK 2 ) to input the address A 2 to the corresponding queue Q 1 .

When the network switch E 1 is interrupted for any reason during the writing of the packet PK 1 to the shared memory M 2 , (such as an unexpected error), the buffer addressed A 3 can not be used again because the address A 3 stored in the stacks FBS 1 ˜FBS 2 has already been popped When the packet PK 1 was first written. Therefore, the utilization of the shared memory M 2 can be inefficient. To overcome this potential inefficiency when the writing of the shared memory M 2 is irregularly stopped, the network switch E 1 pulls the Last_Read signal LR low to drive the control port CL to an “Error” status, and pushes the address A 3 back on the stacks FBS 1 ˜FBS 2 , as shown in FIG. 8 A.

Similarly, when the network switch E 2 is interrupted for any reason during the writing of the packet PK 2 to the shared memory M 2 , the buffer addressed A 2 can not be used again because the address A 2 stored in the stacks FBS 1 ˜FBS 2 has already been popped when the packet PK 2 was first written. Thus, when the writing of the shared memory M 2 is irregularly stopped, the network switch E 2 pulls the Last_Read signal LR low to drive the control port CL to an “Error” status, and stores the address A 2 back to the stacks FBS 1 ˜FBS 2 , as shown in FIG. 8 B.

As shown in FIG. 8D, when the shared memory M 2 is to be read from the output port of the network switch E 2 , the network switch E 2 reads a buffer of the shared memory M 2 according to an address A 3 output from the FIFO queue Q 2 , and pulls the Last_Read signal LR low when the buffer A 3 is read completely to drive the control port CL to a “Last_Read” status, which stores the address A 3 to the stacks FBS 1 ˜FBS 2 .

Similarly, as shown in FIG. 8E, when the shared memory M 2 is to be read from the output port of the network switch E 1 , the network switch E 1 reads a buffer of the shared memory M 2 according to an address A 2 output from the FIFO queue Q 1 , and pulls the Last_Read signal LR low when the buffer A 2 is read completely to drive the control port CL Lo a “Last_Read” status, which stores the address A 2 to the stacks FBS 1 ˜EBS 2 .

FIG. 9A through 9D are diagrams showing control signals of the shared memory based architecture according to the present invention.

During the writing of the shared memory M 2 , when the packet is first written to the shared memory M 2 , the control port CL is driven to the “First_Write” status (the First_Write signal is pulled low), and all of the stacks pop a buffer address, as shown in FIG. 9 A. When the packet is completely written to the shared memory M 2 , the control port CL is driven to the “Routing_Result” status (the First_Write signal and the Last_Read signal are both pulled low), and all of the queues input a buffer address according to the routing result from the shared bus, as shown in FIG. 9 B.

During the writing of the shared memory M 2 , an error may occur. In this case, the control port CL is driven to the “Error” status (the Last_Read signal is pulled low), and the earlier popped address is pushed back to all the stacks, as shown in FIG. 9 C.

Further, during the reading of the shared memory M 2 , when the corresponding buffer is read completely, the control port is driven to the “Last_Read” status (the Last_Read signal is pulled low), and the buffer address is restored to all the stacks, as shown in FIG. 9 D.

Although the above description focused on packet exchanges between two ports, the network switch of the present invention also supports multicast services. Recall that, when a packet is completely written to a buffer, the control port is driven to the “Routing_Result” status and the routing result is inputted to certain queues. The routing result includes destined output ports of the packet. As an example, the routing result can be a bit map, each bit indicating whether or not the corresponding output port reads the transferred packet. In this case, a multicast count MC (as shown in FIG. 5) can be added at the end of the corresponding buffer, representing the number of output ports the packet is to be sent. The multicast count MC is decreased by one each time the buffer is read, and the control port CL is entered the “Last_Read” status when the multicast count reaches zero.

›DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT · 3 of 3

Further, the shared memory in the present architecture can be read only by assigned output ports, therefore the quality of service can be maintained.

Summing up the above, in the shared memory based network switch of the present invention and the network constructed with the same, it only takes a one-cycle await time to transfer a packet, so the shared memory can be used more efficiently. In addition, it can also support multicast services and good quality of services. It also permits single chip solutions and can be easily expanded because of its simple structure.

Table 10 compares the performance between the shared memory based network of the present invention and some conventional networks.

It should be understood that the present invention is not limited to the preferred embodiment as disclosed above. Variations and modifications can be made by those who are skillful in the art without departing from the spirit and scope of the present invention as defined in the appended claims. Thus, this invention is not to be limited to the disclosed embodiment except as required by the appended claims.

›Tables in the description — 1
TABLE 10
Multi-Sin-
castgle
AwaitMemorysupport/SingleChip
timeThrough-Utili-QOSChipHier-
(cycles)putzationsupportSolutionarchy
Shared2highlowyes/fairyesun-
busfixed
Cross2lowlowno/poornofixed
bar
Point-to-1highhighyes/goodnofixed
point
Shared
memory
Meshed1highhighyes/goodyesfixed
Shared
memory
FW_LR1highhighyes/goodyesun-
Sharedfixed
memory

Claims as granted

10 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

4 codes
IPC · International Patent Classification
Section H — Electricity
  • H04L49/111
  • H04L49/90
USPC · US Patent Classification
370/395.72370/412

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJul 1999Jan 2000Jul 2000Jan 2001Jul 2001Jan 2002Jul 2002Jan 2003USPTOApplicantNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
3.7 y
1,348 days filing → grant
Office actions
0
none on record
Examiner
Douglas Olms
art unit 2732 · TC 2700
Citations: 2 back · 44 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20002002200420062008201020122014201620182020Owner 1Owner 3Owner 4liens, releases & corrections
TitleLienhover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock