TW381223B - Split-queue architecture and method of queuing - Google Patents
Split-queue architecture and method of queuing Download PDFInfo
- Publication number
- TW381223B TW381223B TW87113147A TW87113147A TW381223B TW 381223 B TW381223 B TW 381223B TW 87113147 A TW87113147 A TW 87113147A TW 87113147 A TW87113147 A TW 87113147A TW 381223 B TW381223 B TW 381223B
- Authority
- TW
- Taiwan
- Prior art keywords
- queue
- input
- area
- data
- input data
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
A7 B7 經濟部中央標隼局員工消资合作社印製A7 B7 Printed by the Consumers' Cooperative of the Central Bureau of Standards, Ministry of Economic Affairs
五、發明説明(1 ) 持術頜诚 本發明係關於暫存資料方面,詳言之,係關於將輸人 資料(entries)接收、暫存、及釋放之佇列(queues)。 持菘昔暑 於許多系統型式中,從簡單的資料到複雜的資料,系 統中的輸入資料(entries)常不能由系統來立即處理。然 並不須捨棄這些輸入資料,而可用“佇列”的方式來暫時 保持住瑄些輸入資料,並當系統能夠處理次一個輸入資料 時,釋放出一個輸入資料來讁糸統處理。於日常生活中關 於佇列的一個例子,可Μ如銀行或機場櫃檀排隊等候買票 的顧客來比喻。一般的佇列是維持著按照輸入佇列的先進 先出(F I F 0 )次序來排列。 有許多種型式之電子資料系統可以用到佇列。這些電 子資料系統例如包括有微處理器、記憶體轉移糸統、航空 公司電話定位系統、和分封交換網路等。於多數之糸統中 ,希望佇列能有低的等待時間,俾使得輸入資料(e n t r y ) 之處理不會因佇列本身所引起的延遲而耽誤太久。佇列有 低的等待時間I,即意謂著,較之於佇列有高的等待時間, 其輸入資料可快速地從人口處輸入佇列再傳送到佇列的出 口。有一個重要的因素相當地影響到佇列的等待時間,那 就是佇列的長度或容量。佇列有愈大的容量儲存輸入資料 ,則就有愈高的佇列等待時間。 於某些系統中,一般在設計佇列大小時,在等待時間 和容量之競合因素間作一折衷選擇。舉例而言,於分封交 本紙張尺度適用中國國家標準(CRS ) Λ4規格(21.0X297公H 1 91469 (邻先閲讀背面之注意事項再填寫本頁) -----^1 裝------訂------------------ \ A7 明發 r五 網 換 間 之 站 端 終 個 多 許 上 路 網 .在 中 \1/ 路 .網 太 乙 \)/ 2如 /_\ 月例 rtm/ ( 説路 有 接 ί— 逋 框 料 資 包換 封交 料。 資包 收封 接的 埠們 的他 同送 不傳 從埠 置的 裝同 換不 交此 。 過 置透 裝站 換端 交終 個 ’ 將將 璋間 的時 當之 適同 到相 送在 包 是 封 能 將可 並 ’ , '間 送時 傳 何 兒任 那於 從埠 將多 包用 封使 定 。 決送 置 傳 裝之 有 所 理列 處佇 時有 同要 夠需 能 , 不此 並 '因 置 〇 裝兒 換那 交到 但送 ’ 們 置他 裝將 換應 交定 至決 應 ’ 供 包 包封 封之 些 這 將 後 置 裝 換 交 入 進 包 封 當 Lhr 0 安 和 計 設 之 。 網 包埠 封多 此i 一 就 這 ’ 理衡 處平 間之 時間 的素 夠因 足爭 有競 能之 置量 裝容 換和 交 間 諶時 Μ 待 ’ 等 ηυ 人、、 歹 扩 佇對 包 封 希結 都列 常庁 通於 為由 因會 ’ 不 的而 酌.-, 斟包 得封 值理 常處 非地 是速 題快 問置 此裝 言換 而交 置由 裝經 換夠 交能 路望 容髙題 Μ 於課 量使的 容即要 的置重 夠裝是 足換來 有交說 夠即般 能 , 一 , 包此 而封 , 然棄料 。 捨資 間必失 時不損 遲而不 延料夠 的資能 多入亦 太輸間 加之期 增量擠 而大擁 構納度 (誚先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局負工消费合作杜印製 裝’片 之置晶 他裝在 其之得 多化使 許型, 和小力 置更壓 裝成一 換製此 交片著 路晶對 網使面 於欲。 . 即 能 題,功 問力之 考壓多 思股更 地一有 入著具 深臨置 更面裝 中此 置且 因在 。 是 了其 貴尤 昂 , 太間 價 空 #列 得的 顯低 間對 空相 體持0 0 記上 之片 能 晶 功在 列夠 佇能 作望 用希 專, 上·此 中 置 裝 換 交 路 網 埠 多 在 如 。 ’ 候 列時 佇的 之列 聯ff 並的 多己 許自 有其 要有 需都 上埠 片各 晶 之 槪 明0 本紙張尺度適用中國國家標埤(CNS ) Λ4^ ( 21〇X 297^t ) 9 1469 五、發明説明(3 A7 B7 經濟部中央標準局負工消贽合作社印製 高低大 ,之佇有有於來為 的中在 例 一佇,一 ,間1 和M對 供一具具位區作 要區為 ,ue間間第區時 間列相 提第並列區列M必列作 成ue2 時空。列待 時佇理 明此,佇列佇- 不佇用 達yq待列料佇等 待,處 發而料又佇一區 果 一 移 例nci 等佇資間一 等時 Μ 本,資 ;一 第列 如第轉 施 t 一之入時第 低要量 。區 入出第從佇 但之的 實la第用輸待於 足需容 要列輸輸至序一 。 ,間間。他 e _ 使之等大 滿當的 需佇之此合排第能量 時 之能其P1接可來二要 時.,大 的一列從耦並到功容待區功之 U 耦中區第間 同法著 他第佇料地收回節列等列節明U11 區區列成時 可方持, 其有至資輯接送調佇低佇調發(ΠΙ— 位列佇形待 種和維 及具入入邏M料之之有二 的本構彡溢佇間此等 一構仍 .要,輸輸區,資數時具第目由結 間時因之 有结但 需列收之列間入料擠在和數能列, 區時待區區 . 有 要的, 一佇接.來佇之輸資擁留一料亦佇纟位待等位列 具需列統 此料,列二出將入供保第資要間 t、 溢等一溢佇 一三〆 , 佇系。合資入佇第輸且輸提夠為入需時,和一第和間 知之 入料符入輸從此列並中區能因輸種待)*區第從區時 可素輸資能輸列將,佇,區列料是中各等re列在列列待 述因間入明將佇,區 和料列佇資這區之重tu佇於排佇等 上爭,時輸發其有出列入資佇 二入,列述多ec間依並間二 由競待之本,具輸佇輸入 一 第輸列佇上種it時,收時第 畺等量 列區列二 列輸第 ,佇一 一ch待區接待中 容的數 佇 列佇第 佇之在 話之第 如ar等列 來等其 (請先閲讀背面之注意事項再填寫本頁) 本紙張尺廋適用中國國家標啤(rNS ) Λ4規格(210X 297公釐) 3 9 1469 A7 經濟部中央標準局負工消贽合作社印袈 列為況情時計 而輸到外的列 ,優並在位對。較 佇因情他要設 置將接。列佇 上多,存溢相量對 達。些其需統 配來耦料佇上 片諸體配用此用相 到間某些統糸 行用-資列片 晶為憶分使,現以 於時於某系供 進有部入排晶 於此記重圖列的可. 對待僅於當提 料具外輸並在 位,的由企佇列料 列等不且。此 資,之的收為 不點大藉亦的佇資 佇的列而料如 入片片間接作 ·而優較或i·間上人。 間同~佇-資, 輸晶晶之區, 區之成,時時片輸列 時不則料入料 列一在體位列 位更換成同待晶則佇 待之-資輸資 佇括設憶溢佇 溢變更達。等在,的 等能間入列入。對包,記。到 的易體而成高為區上 重 可時輸排輸用由置體部區回 列容憶區達較作位 Η 多個待列間列運藉配憶外位送 佇區記位而對定溢晶 之二等排時佇性例此記和溢料 有位部溢區相決到經 例了 的間待來彈狍。和片的資 含溢外於位上 已用流 。 施供重時等式的實求.,晶列入 體的將體溢礎列使地 間踅提多待的方列一需列送佇輸 憶列由憶的基佇須單 }時 此 少有等高的佇 另之佇傳有將。記佇藉記中需的不簡 4 待之 至具的較同中的述之來括並能部讓可用體所間間間 { 等明料列低Μ不統明前列用包,功外可此專憶在時期時 明之發資佇用夠用系發成排,體料量用有。之 記之待作待 説 區本入之夠能Μ於本達料片憶資用使具一多部供等操等 W 列 輸一能下可對 能資晶記入現 此之更外提高於之 1 佇 的單下況,者 亦入此部輸的 如點用於區較若低 五 (請先閲讀背而之注意事項存填寫本页) 本紙張尺度適用中國國家標準(('灿)八4規格(210乂 297公釐) 9 1469 Α7 Β7 五、發明説明(5 ) 本發明的另一實施例提供了一種用於分封交換網路之 多埠網路交換裝置,此分封交換網路具有用於複數個埠之 複數個佇列,經由此等埠可接收從網路來的封包,並經由 此等埠可將封包發送到網路上。此複數個佇列相對應於複 數個埠。至少其中一個佇列為分裂佇列,具有寫入側用Μ 接收相對應於發送封包之輸入資料,和讀取側輸出輸人資 料。設有外郜記憶體介面,當讀取側沒有可用的容量以接 收輸入資料時,輸入資料則經由此外部記憶體介面由寫入 側送至用來作佇列用之外部記憶體的溢位區;Μ及當讀取 側恢復可用的容量可接收輸入資料時,則輸入資料經由此 外部記憶體介面而從外部記憶體返回到寫入側。 經濟部中央標準局貝工消费合作社印製 (請先閲讀背而之注意事項再填寫本頁) 本發明之多埠網路分封交換具有一個優點為使用分列 结構之佇列,具有寫入側和讀取側。因為交換裝置使用複 數個佇列,於交換裝置中使用相對較小之佇列並僅當需要 時才將輸入資料送至外部記憶體,如此減少了交換裝置中 其本身所需的記憶體空間量。然而,如此並沒減少容量, 因為當需要時可由外部記憶體提供容量,雖然如此一般會 增加等待時間。本發明之某些實施例係有關對於分封交換 網路的交換结構,並包括附加於此交換裝置之具有溢位區 的外部記憶體。 、 前述之需要亦可由本發明之其他實施例達成。該等實 施例提供一種將輸入資料佇列之方法。此方法包括下列步 驟:於佇列的第一區段接收輸入資料,及決定佇列的第二 區段之可用容量,輸入資料可在此第二區段從佇列離去。 本紙張尺度適用中國國家標肀((、NS ) Λ4規格(210X297公釐) 5 9 1469V. Description of the invention (1) Jishu Chengji This invention relates to the temporary storage of data. In particular, it relates to the queues of receiving, temporarily storing, and releasing input data. Persistent Past In many system types, from simple data to complex data, the entries in the system often cannot be processed immediately by the system. However, it is not necessary to abandon these input data, but the “queue” method can be used to temporarily hold some input data, and when the system can process the next input data, release one input data for general processing. An example of queues in daily life can be compared to customers such as banks or airport counters waiting in line to buy tickets. The general queue is maintained in the first-in-first-out (F I F 0) order of the input queue. There are many types of electronic data systems that can use queues. These electronic data systems include, for example, microprocessors, memory transfer systems, airline positioning systems, and packet switching networks. In most systems, the queue is expected to have a low waiting time, so that the processing of input data (e n t r y) will not be delayed too long due to the delay caused by the queue itself. Queues have a low waiting time I, which means that compared to queues with a high waiting time, their input data can be quickly entered into the queue from the population and then transmitted to the queue's exit. There is an important factor that significantly affects the waiting time of the queue, which is the length or capacity of the queue. The greater the capacity of the queue to store input data, the higher the queue waiting time. In some systems, when designing the queue size, a compromise is made between the competing factors of latency and capacity. For example, the size of this paper is applicable to the Chinese National Standard (CRS) Λ4 specification (21.0X297 male H 1 91469 (please read the precautions on the back before filling this page) ----- ^ 1 Pack --- --- Order ------------------ \ A7 Mingfa r five-net changing station end on the road network. In the \ 1 / road. Net too B \) / 2 Such as / _ \ 月 例 rtm / (Said there is a connection-exchange of materials for the package and delivery of the package. The port receiving and sealing the package will not be sent by the port. Do n’t pay this. Overlaying the transfixion station and changing the terminal will give you the time to match the time to the right time. In the package, the package can be merged. We will use multiple packages to seal the order. It is necessary to send the package in a reasonable manner. Whenever there is a need, you must be able to do it. Should be settled until the response should be 'for package encapsulation and some of this will be put into the package when the Lhr 0 Anhe designed. Network package port seal more and more i just here' The quality of time is enough because of competition and the ability to install and exchange and interact with each other, and other people, and people who have expanded and listed on the envelope are often motivated by reason. And, as appropriate, it ’s common to think that the value of the package is often a quick question to put this pretext in place and to exchange it. The weight is enough to install it is enough to have enough money to talk about it. First, wrap it and seal it, but discard the material. The home room must be lost without delay. In addition, the increase in crowded period and large acceptance (I read the precautions on the back before filling in this page). Central Standards Bureau of the Ministry of Economy To make Xu Xing and Xiaoli Zhi more press-fitting to change this intersection, Lu Jing made the face to the net.. That is to say, the test of the ability to test the power of Dossi shares has a deeper presence. It ’s so expensive and so expensive. It ’s so expensive, too. 0 0 The above-mentioned piece of power can be used in a row, and it can be used as a hope. You can install and change the traffic network port in many places like this. It has its own requirements, and it is necessary to read the description of each crystal on the port. 0 This paper size is applicable to the Chinese national standard (CNS) Λ4 ^ (21〇X 297 ^ t) 9 1469 V. Description of the invention (3 A7 B7 Central Ministry of Economic Affairs) The standard bureau ’s work and consumption cooperatives print highs and lows, and there are promising examples. One, one, and one pair M are used to provide a special area as the main area. Column M must be listed as ue2 space-time. When you are waiting, you should understand this. You are not going to use yq to wait for the material to be listed. You are waiting for it, and you are sending out the information. You have to wait for a period of time. It is listed as the lowest amount when the first t is applied. The district's input and output are the second most important ones, and they are necessary to be listed in the first order. , Between rooms. He e _ makes it possible to meet the needs of the energy of this combination, and its P1 can be accessed to the second time. The large column from the coupling to the work capacity area of the U coupling center area According to the same method, he planned to recover the section and other sections. The U11 area can be held only when it is listed. It has the necessary information to adjust the transfer and reduce the distribution (ΠΙ— standing for planting and maintenance). There are two basic structures in the logic and the other structures are still in the overflow. To the input and output areas, the number of items must be settled when the node is closed, but it needs to be included. It is crowded in the number of columns, waiting for the time. If necessary, the connection will be made. The capital investment will be held for a while, and it will be waiting for the waiting list. All the materials will be listed. Guaranteed capital t, overflow, etc., one overflow (one, three, three, etc.), no matter. The joint venture investment is lost and the withdrawal is sufficient for the time required. (Because of the loss), the district's first time can be invested in the district, and the district's materials are listed in the list. The district's heavy tutu competed in row and so on. The second entry is listed, which lists the basis of the multi-ec competition and the second intermission. If you enter the first entry and the last it, the second time is the same amount. The number of queues in the reception area of the reception area is the first one, such as ar, etc. (please read the precautions on the back before filling this page) This paper size is applicable to Chinese national standard beer (rNS ) Λ4 size (210X 297 mm) 3 9 1469 A7 The seal of the Consumers' Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs is listed as a condition timepiece and lost to the outside ranks. He wants to set up the connection. There are many in the list, and the phasors are equal. Some of them need to be coordinated to couple the materials on the chip. This system is used for some systems. -The chip is used as a memory chip. Now it is available in some systems. It is worthwhile to list here. The treatment is only available when the lifting equipment is exported and in place. The income of this asset is not a big deal, but it is expected to be used indirectly as an indirect piece of work, and superior or i. Between the same ~ ~-capital, the area of losing the crystal, the success of the district, when the time is lost, the material is not the first one, the position is changed to the same position, then the waiting-the capital investment, including the memory Overflow of spills reached. Waiting in, waiting for the inclusion. To the package, remember. The retransformation that has arrived is high and the area can be transported and lost in time. It is used to return to the Rongyi area by the body area area. Multiple queues can be transported by using the external memory to send the area location. For the second-order time-limiting example of the fixed overflow crystal, this record and the overflow area of the overflow material depend on the regular impeachment. The content of the film overflows the used stream in place. The actual demand of the heavy-duty equation. When the crystal is included in the body, the basic overflow of the system will increase the number of squares in the ground. There are contours, and others are known. Keep in mind the inconveniences needed in the debit. 4 To be more detailed, it can be included, and can be used to make the available space between the { This special memory in the period of the Ming Dynasty is sufficient for the hairpin is enough to send hair in a row, the amount of material used. The to-do note is to say that the area can be used to recall the resources in the Banda materials, use more than one supply operation, and so on. If you can lose one row, you can record the energy assets into the present and further improve it. Part 1 of the single case, the person who also enters this section will be used if the area is lower than the lower five (please read the precautions below and fill out this page) This paper size applies to Chinese national standards (('灿) 8 4 specifications (210 乂 297 mm) 9 1469 Α7 B7 V. Description of the invention (5) Another embodiment of the present invention provides a multi-port network switching device for packet switching network. This packet switching network It has a plurality of queues for a plurality of ports, through which the packets from the network can be received, and the packets can be sent to the network through the ports. The plurality of queues correspond to the plurality of ports. At least one of the queues is a split queue, with the write side receiving the input data corresponding to the sending packet, and the read side outputting the input data. There is an external memory interface. When no read side is available Capacity to receive input data, the input data goes through this external memory The writing side is sent from the writing side to the overflow area of the external memory used for queueing; and when the reading side recovers the available capacity to receive input data, the input data is externally transmitted through this external memory interface. The memory is returned to the writing side. Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economics (please read the precautions before filling this page) The multi-port network packet exchange of the present invention has an advantage of using a split structure The queue has a write side and a read side. Because the exchange device uses a plurality of queues, a relatively small queue is used in the exchange device and the input data is sent to external memory only when needed, which reduces this The amount of memory space required in the swap device itself. However, this does not reduce the capacity, because the capacity can be provided by external memory when needed, although this generally increases the waiting time. Some embodiments of the invention are related The switching structure of the packet switching network includes an external memory with an overflow area attached to the switching device. The foregoing requirements may also be addressed by the present invention. Other embodiments are achieved. These embodiments provide a method for enqueuing input data. This method includes the following steps: receiving input data in the first section of the queue, and determining the available capacity of the second section of the queue, The input data can be removed from the queue in this second section. This paper size applies to the Chinese national standard ((, NS) Λ4 size (210X297 mm) 5 9 1469
7 B 6 /fv明説明發 、五 的 , 列量 佇容 從的 將用 枓可 資有 入段 輸區 則 二 , 第 量於 容若 的而 用 ., 可段 有.區 沒三 段第 區入 二 導 第段 於區 果 一 如第 並的區 而用三 » 利第 段資從 區可將 二 有料 第段資 入區入 導二輸 接第則 直於 , 段若料 區.,資 一中入 第段輸 的區有 列三段 佇第區 從 在三 將料第 料資於 資入且 入輸 , 輸有量 則沒容 入列 輸佇 的 料 列資 佇入 將輸 ’ 供 話提 的M 能 , 可段 果區 如口 示出 指入 係導 法段 C 方區 段此入 區之輸 二 明從 第發接 入本直 導 料 段 資 過。 經段 由區 藉 口 可出 ’ 的 話列 的佇 要至 爾料 果資 如入 供輸 提引 亦導 法接 方間 本, 〇 段 間區 時三 待第 等的 的列 低佇7 B 6 / fv clearly states that the five, five, and the amount of content will be used, and can be used to enter the section. The second amount is used for the content. The available amount is used. The section is not included in the third section. The second section of the guide is the same as the first section of the district. The third section of the second section of the guide will be straight from the second section of the section. The districts in the first stage of the investment are listed in the third stage. The districts are listed in the third stage and are used to enter and lose. For the M-notes provided, the section fruit area, as the words show, refers to the C section of the guide section, and the loser of the second section has entered the direct guide section. The verses of the verses are available through the excuse of the district. 伫 If you want to enter the material, you can also refer to the formulas if you want to use them for reference.
段能 區亦 三 , 第時 的要 列需 佇當 用是 使但 由 ., 藉性 ’ 特 時間 要時 需待 當等 僅的 ,.低 係有 關可 的 般 量一 容列 於佇 由 I 之 明 發 本 式 圖 附 所 合 配 。 明 列說 佇细 作詳 料勿. 資下 入之 輸明 的發 量本 大由 較 將 瞭 明 為 更 得 變 將 點 優 和 點 觀 、 徵 特 的 他蜇 其簡 及之 述式 上圖 明 說 之 明 發 本 照 依 為 圖 1 第 --------ιρ,^-- (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消费合作社印$1 圖 塊 區 圖 2 , 第圖 塊 區 本 照 依 為 用 使 第 之之 明圖 發ί 施 施封 實 實分 之 統 系 換 交 封 分 之 造 構 例 之 置 裝 換 交 埠。 多中 之統 造系 構換 例交 第 4 之‘ 置 裝 第 第 之 之 造。造 圖 3 意 3 例 例 示 施 § 施 明 實 實 I 該 I 之 _ 之 β 之 β 统 0 0 0 *次* 照 ί 照 置 依 依 裝 為 為 圖 圖 3 交 換 交 埠 多 中 圖 2 置 裝 換 交 中 圖 3 圖 塊 區 之 列佇 出 輸 1 單 之 統系 次 本紙張尺度適用中國國家標净(CNS ) Λ4規輅(.210Χ297公釐) 9 1469 3Duanneng District is also the third. The first list needs to be used only when it is used, and the borrowing 'special time is to be used only when it is needed. The Mingfa style map is attached. It is clearly stated that it is not necessary to make detailed information. The input volume of the input of the capital is much more changed than that of the capital. The point is optimized and the point is viewed. The picture of Zhimingfa is as shown in Figure 1. -------- ιρ, ^-(Please read the notes on the back before filling in this page) The Central Consumers Bureau of the Ministry of Economic Affairs prints $ 1 block map 2. The picture in the block diagram is based on the installation of the port for the construction of the system of exchanging seals and substituting the system of applying the seals and substantiating points. The system of multiple systems is the replacement of the 4th one of the "Building of the System". Mapping 3 and 3 examples to illustrate § Shi Ming Shi Shi I The _ of the β of the β system 0 0 0 * 次 * According to the picture, according to the installation, it is as shown in Figure 3, and there are many exchanges. Figure 2 Figure 3 Columns in the block area, the system of output and output of 1 order. The paper size is applicable to China National Standard Net (CNS) Λ4 Rule (.210 × 297 mm) 9 1469 3
I A7 __B7 五、發明説明(7 ) 第5圖為依照本發明之實皰例輸出佇列之第一型式之 更詳细說明。 第6圖為依照本發明之實施例輸出佇列之第二型式之 更詳细說明。 第7圖為依照本發明之實施例結構之外部記憶體之溢 位區之更詳细說明。 第8圖為使用於本發明之鏈結表資料結構之區塊圖。 第9a及9b圖為依照本發明之實施例說明資料框媛衝器 標頭格式之示意圖。 第10圖為依照本發明之實腌例構造之第4圖中交換裝 置次系統之多副本、回收、及空閒媛衝槽區之更詳細說明 0 第11圖為依照本發明之實施例構造之空間緩衝槽區结 構之區塊圖。 第12_為依照本發明之實施例結構之多副本佇列之區 塊圖。 經濟部中央標準局負工消费合作社印製 (請先閲讀背面之注意事項再填寫本頁) 第13圖為依照本發明之實胞例構造之表現多副本快速 媛衝暫存器之示意圖。 第1 4JB為依照本發明之實拖例構造之交換裝置次糸統 之鍰衝器管理器及埠向量FIFO之佇列區彳塊之區塊圖。 齩住啻敝例夕詳钿說明 本發明將Μ譬如乙太網(IEEE 802.3)網路之分封交換 網路中交換裝置為例作說明。然而,經下列之詳细說明後 ,應可清楚瞭解到本發明亦可應用到其他的分封交換条統 本紙張尺廋適用中國國家標皁(CNS ) Λ4規格(210X 297公楚) 7 9 1469 A7 ,丨. __^_B7_ 五、發明説明(8 ) ,及一般之其他系統中。 第1圖為可實現本發明之優點之典型例子之糸統的區 塊圖。所舉之系統10為一個譬如乙太網路之分封交換網路 。此分封交換網路包括積體之多埠交換裝置(IMS)12,其 能作網站間的資料封包通訊。網路可包含有不同結構之網 站,譬如24個每秒10百萬位元(M\bPs)之網站14,其Μ IOMUps之網路資料速率發送和接收資料,和2個100M\bps 之網站22,其M100M\bPS之網路速度發送和接收資料封包 。因此,交換裝置12根據乙太網協定選擇地將從網站14或 22接收之資料封包傳送到適當的目的地。 依照所揭示之實胞例,10M\bPS之網站14根據半雙工 乙太網協定,經由媒體17將資料封包送到交換裝置12,並 從交換裝置12接收封包。乙太網協定IS0/IEC8802-3 (ANS/IEEE Std. 8 02.3, 1 9 9 3 Ed.)定義了 半雙工媒體接 達機構,其允許所有的網站14M相等的機會接達網路通道 (請先閱讀背面之注意事項再填寫本頁) 先存 優重 或多 別應 區感 有波 沒載 並的 息測 訊偵 輸用 傳爭 上有 17具 體之 媒14 於站 下網 境各 環用 工使 雙是 半而 於。 〇 楢 經漪部中央標準局負工消费合作社印製 取 息 訊 輸 傳 的 上 體 媒 德 監 來 卡 面 介 網 太 乙 之 除 解 之 波 載 收 接 之 上 1 AM 媒 測 感 由 可 時 送 傳 息 訊 有 沒ea 上(d 路認 網確I A7 __B7 V. Description of the invention (7) Figure 5 is a more detailed description of the first type of output queue according to the example of the present invention. Fig. 6 is a more detailed explanation of the second type of output queue according to the embodiment of the present invention. FIG. 7 is a more detailed description of the overflow area of the external memory structure according to the embodiment of the present invention. FIG. 8 is a block diagram of a link table data structure used in the present invention. Figures 9a and 9b are schematic diagrams illustrating the header format of a data frame punch according to an embodiment of the present invention. Fig. 10 is a more detailed description of the multi-copy, recycling, and idler slot area of the exchange device in Fig. 4 constructed in accordance with a practical example of the present invention. Fig. 11 is a diagram constructed in accordance with an embodiment of the present invention. Block diagram of the structure of the space buffer zone. 12th is a block diagram of a multi-copy queue structured according to an embodiment of the present invention. Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives (please read the notes on the back before filling out this page). Figure 13 is a schematic diagram of a multi-copy fast flash memory buffer constructed in accordance with the real example of the present invention. The first 14JB is a block diagram of a buffer manager of a switching system and a queue area block of a port vector FIFO constructed in accordance with a practical example of the present invention. The detailed description of the example is described in the present invention by taking a switching device in an Ethernet (IEEE 802.3) network as an example. However, after the following detailed description, it should be clearly understood that the present invention can also be applied to other packaging and exchange papers. The paper size is applicable to China National Standard Soap (CNS) Λ4 specification (210X 297). 9 9 1469 A7, 丨. __ ^ _ B7_ V. Description of the invention (8), and other general systems. Fig. 1 is a conventional block diagram of a typical example in which the advantages of the present invention can be realized. The proposed system 10 is a packet switching network such as Ethernet. This packet switching network includes an integrated multi-port switching device (IMS) 12 which can perform data packet communication between websites. The network can include websites with different structures, such as 24 websites with 10 million bits per second (M \ bPs) 14, their M IOMUps network data rate for sending and receiving data, and 2 100M \ bps websites 22. Its network speed of M100M \ bPS sends and receives data packets. Therefore, the switching device 12 selectively transmits the data packet received from the website 14 or 22 to an appropriate destination according to the Ethernet protocol. According to the disclosed cell example, the 10M \ bPS website 14 sends data packets to the switching device 12 via the media 17 according to the half-duplex Ethernet protocol, and receives packets from the switching device 12. The Ethernet protocol IS0 / IEC8802-3 (ANS / IEEE Std. 8 02.3, 1 9 9 3 Ed.) Defines a half-duplex media access agency, which allows all websites to access the network channel with an equal opportunity of 14M ( Please read the precautions on the back before filling this page.) Presence of goodness or multiple areas should be felt. There are no waves of interest. There are 17 specific media in the investigation and investigation. 14 In the environment of the network under the site Labor makes half a double. 〇 楢 The upper body of the Central Bureau of Standards, the Ministry of Standards and Consumers ’Cooperative Cooperative printed the interest-receiving news and passed it on to the face of the network ’s Taiyi ’s resolution. It was received on 1 AM. Send message whether there is ea on
S 站 網 何 任 之 輸 傳 要 訊 資 有 ο 出 測 檢 而 定 G 預(I 一 隔 待間 等間 由包 藉封 , 如 後知 認已 確間 除 時 解之 波定 載 預 收此 接’ 的道 上通 體達 媒接 於而 圖間 企時 4 , 1 之 送 傳 要 料 資 有 4 11 站 網 個 數 複 有 上 路 網 於 若 於 及 M 認 確 除 解 之 波 載 收 接 的 上 體 媒 之 測 感 於 應 ο } 反 站間 0 P 嫌 G I—I 各 而 本紙張尺廋適用中國國家標蜱(CNS ) Λ4規格(210X297公釐) 8 9 1469 A 7 ___B7_ ' , 五、發明説明(9 ) 距後,欲發送資料,則會造成衝突(collision)。因此, 發送站將監聽媒體Μ決定是否由於同一時間有另一個網站 發送資1料而產生衝突。若檢測到有衝突,則兩個網站都停 止發送,等待一隨機之時間後,再喟試傳送。 100 M\bPs之網站22最好能依照提議之乙太網標準 IEEE 802.3x具有流程控制-作頁草圖(0.3)之全雙工而於 全雙工模式操作。全雙工環境提供各100M\bps網站22和交 換裝置12之間雙路、點對點的通信鏈路,其於交換裝置12 和個別網站22能夠同時發送和接收資料封包而不會發生衝 突。各 100M\bps 網站 22 經由 100Base-TX 或 100Base-FX 型式 之100M\bPs實體(PHY)裝置20而耦接到網路媒體17。交換 裝置12包括媒體獨立介面(MII)24,此MII 24提供至實體 裝置20之連接。100M\bps網站22可Μ用作為連接到其他網 路的伺腋器或路由器。 經濟部中央標準局員工消費合作社印製 (請先閱讀背面之注意事項再填寫本頁) 如第1圖所示,網路10包括一系列之交換裝置收發器 16,收發器16可對傳輸於交換裝置12和10M\bps網站14之 間之資料封包作分時多工和分時解多工。磁變壓器模組19 維持於媒體17上的信號波形。交換裝置12包括收發器介面 18,此收發器介面18使用越過單一串列不歸零(NRZ)介面 23之分時多工協定將資料封包發送到各<交換裝置收發器16 ,並從交換裝置收發器16接收資料封包。交換裝置收發器 16從串列NRZ介面23接收封包,解多工此接收之封包,並 將此等封包經由媒體17輸出到適當的終端站14。依照所揭 示之實施例,各交換裝置收發器16具有4個獨立的10M\bPs 本紙張尺度適用中國國家標卒(CNS >Λ4規格(210X297公釐) 9 9 1469 經满部中央標洋局员工消费合作社印繁 本紙張尺廋通用中國國家榡準(CNS〉Λ4規格(2丨0X297公釐) 91469 A7 , _ B7 五、發明説明(10) . 狡線對埠,並使用4:1多工越過此串列NRZ介面,使能4倍 地減少交換裝置12所需之接腳(PINs)數目。 交換裝置12包含有決定引擎、交換引擎、鍰衝器記意 體介面、結構/控制/狀態暫存器、管理計數器、和MAC(媒 體接達控制)協定介面,Μ支援服務網路站台14和22之乙 太網埠間之資料封包的路徑。交換裝置12亦包含有增強功 能來作智慧型的交換決定,並提供Κ管理資訊基礎(ΜΙΒ) 形式而不用外部管理實體的統計網路資訊,下文中將詳细 說明之。為了減少交換裝置12之晶片大小,交換裝置12亦 包含有能夠由外部儲存封包資訊和交換邏輯之介面。舉例 而言,交換裝置12包含有同步動態RAM(SDRAM)介面34,此 介面34提供至外部記憶體36之存取,而記憶體36用來儲存 接收之資料框資料、記憶體結構、和MIB計數器資訊。記 憶體36亦可K是具有2 Mb或4Mb記憶體大小之80、100或 120MHz同步 DRAM ° 交換裝置12亦包含有管理埠30*此管理埠30可Μ使外 部管理實體藉由管理MAC介面32而控制交換裝置12之整體 操作。交換裝置12亦包含PCI介面26,使能藉由管理實體 經由PCI主機及橋接28而存取。或者,PCI主機及橋接28可 以用作為對於複數個交換裝置12之擴充催流排。 交換裝置12包括有內部決定引擎(第2圖),其可選擇 地把接收自一個資料源的資料封包發送到至少一個目的地 網站。内部決定引擎可Μ用外部規則檢驗器替代。交換裝 置12包括有外部規則檢驗器介面(ERCI)40,其允許使用外 10 --------II (請先閲讀背面之注意事項再填寫本頁) *1Τ A 7 _ ____B7_ ' 五、發明説明(11) 、 部規則檢驗器42來替代內部決定引擎Μ決定資料框的傳送 。因此,能夠用内部決定引擎或外部規則檢驗器4 2來作資 料框傅逞決定。 交換裝置12亦包括有LED介面44,其能記錄每一埠之 情況狀態,並驅動LED外部邏輯46。LED外部邏輯46依序驅 動可由肉眼識別之LED顯示單元48。振盪器38提供用於交 換裝置12之各系統功能的40 Mhz時脈輸人。 經濟部中央標準局負工消f合作杜印聚 (請先閲讀背面之注意事項再填寫本頁) 第2圖為第1圖之積體多埠交換裝置(IMS)12的區塊圖 。交換裝置12包括有24個10M\bps之媒體接達控制(MAC)埠 50,用來於各個10M\bps網站14(埤1-24)之間K半雙工來 發送和接收資料封包,Μ及2個100M\bps MAC埠53,用來 於各個100M\bps網站(埠25、26)之間Μ全雙工來發送和接 收資料封包。如上所述,管理介面30亦可依照MAC層協定( 埠0)操作。各MAC埠50、53和30具有接收先進先出(FIFO) 媛衝器52,和發送FIFO 54。從網站來的資料封包由相對 應的MAC埠接收,並儲存於相對應的接收FIFO 52。接收之 資料封包從相對應的接收FIF052輸出到外部記憶體介面34 ,儲存於外部記憶體36中。 接收之封包的標頭亦傳送到決定引擎,用内部規則檢 驗器5 8或外部規則檢驗器介面4 0來決定娜一個M A C埠將輸 出資料封包。尤其是,封包標頭依於交換裝置12之是否配 置操作使用到内部規則檢驗器58或外部規則檢驗器42,而 傳送到內部規則檢驗器5 8或外部規則檢驗器介面4 0。内部 規則檢驗器58或外部規則檢驗器42提供決定邏輯,用來決 本紙張尺度適用中國國家標準(CNS ) 格(2丨0 X297公釐) 11 91469 A 7 , ________B7_ 五、發明説明(12) 、 定所給資料封包之目的地MAC埠。決定引擎因此輸出所給 資料封包至單一埠、多個埠、或所有埠(即•廣播)。舉例 而言,(各資料封包包括標頭,此標頭具有源位址和目的地S station network He Ren ’s transmission and transmission information is required. Ο Go to test and determine G. Pre-I (I a waiting room and other rooms will be sealed by contract. If you know later, the time-determined wave will be fixed and received in advance. On the road, the body is connected to the media, and the maps are sent to the company when the time is 4 and 1. The material for transmission is 4 11 The number of stations is the same as that of the road network Yu Ruo and M confirmed that the receiver received the upper body The sense of the media is in response.} The counter station is 0 P and the GI-I is different. The size of this paper is applicable to the Chinese National Tick (CNS) Λ4 specification (210X297 mm) 8 9 1469 A 7 ___B7_ ', V. Description of the invention (9) After the distance, if you want to send data, it will cause a collision. Therefore, the sending station will listen to the media M to determine whether there is a conflict due to another website sending data at the same time. If a conflict is detected, then Both websites stop sending, wait for a random time, and then try again. The website 22 of 100 M \ bPs is best to have flow control according to the proposed Ethernet standard IEEE 802.3x-page sketch (0.3). Full-duplex operation in full-duplex mode. The full-duplex environment provides a two-way, point-to-point communication link between each of the 100M \ bps websites 22 and the switching device 12, which can simultaneously send and receive data packets on the switching device 12 and individual websites 22 without conflict. 100M each \ bps Website 22 is coupled to the network media 17 via a 100Base-TX or 100Base-FX type 100M \ bPs physical (PHY) device 20. The switching device 12 includes a Media Independent Interface (MII) 24, which is provided to the entity The connection of device 20. 100M \ bps website 22 can be used as a server or router to connect to other networks. Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling this page). As shown in FIG. 1, the network 10 includes a series of switching device transceivers 16. The transceiver 16 can perform time division multiplexing and time division demultiplexing on data packets transmitted between the switching device 12 and the 10M \ bps website 14. The magnetic transformer module 19 maintains the signal waveform on the medium 17. The switching device 12 includes a transceiver interface 18, which uses a time-division multiplexing protocol that passes over a single serial non-return-to-zero (NRZ) interface 23 Data packet Send to each < switching device transceiver 16 and receive data packets from the switching device transceiver 16. The switching device transceiver 16 receives packets from the serial NRZ interface 23, demultiplexes the received packets, and passes these packets through The medium 17 is output to an appropriate terminal station 14. According to the disclosed embodiment, each switching device transceiver 16 has 4 independent 10M \ bPs. This paper size is applicable to Chinese national standard (CNS > Λ4 specification (210X297 mm) 9 9 1469 Employee consumer cooperatives printed and printed paper size (general Chinese national standard) (CNS> Λ4 specification (2 丨 0X297 mm) 91469 A7, _ B7 V. Description of the invention (10). Cunning wire to port, and use more than 4: 1 By moving through this serial NRZ interface, the number of pins (PINs) required by the switching device 12 is reduced by 4 times. The switching device 12 includes a decision engine, a switching engine, a buffer memory interface, structure / control / The state register, management counter, and MAC (Media Access Control) protocol interface, M supports the path of data packets between the Ethernet ports of service network stations 14 and 22. The switching device 12 also contains enhanced functions for Intelligent exchange decisions, and provide statistical network information in the form of K management information base (MIB) without external management entities, which will be described in detail below. In order to reduce the chip size of the switching device 12, the switching device 12 also includes An interface capable of externally storing packet information and switching logic. For example, the switching device 12 includes a synchronous dynamic RAM (SDRAM) interface 34, which provides access to external memory 36, which is used to store Received data frame data, memory structure, and MIB counter information. Memory 36 can also be 80, 100, or 120 MHz synchronous DRAM with 2 Mb or 4 Mb memory size ° Switching device 12 also includes management port 30 * This The management port 30 can allow an external management entity to control the overall operation of the switching device 12 through the management MAC interface 32. The switching device 12 also includes a PCI interface 26 to enable access by the management entity through the PCI host and the bridge 28. or The PCI host and the bridge 28 can be used as an expansion streamer for a plurality of switching devices 12. The switching device 12 includes an internal decision engine (Figure 2), which can optionally send data packets received from a data source to At least one destination website. The internal decision engine can be replaced with an external rule checker. The exchange device 12 includes an external rule checker interface (ERCI) 40, which allows the use of external 1 0 -------- II (Please read the precautions on the back before filling this page) * 1T A 7 _ ____B7_ 'V. Description of the invention (11), internal rule checker 42 instead of internal decision engine M decision Data frame transmission. Therefore, an internal decision engine or external rule checker 4 2 can be used to make data frame decisions. The switching device 12 also includes an LED interface 44 that can record the status of each port and drive the LEDs. External logic 46. The LED external logic 46 sequentially drives the LED display unit 48 that can be recognized by the naked eye. The oscillator 38 provides a 40 Mhz clock input for each system function of the switching device 12. Du Yinju, Vice President of the Central Bureau of Standards, Ministry of Economic Affairs (please read the notes on the back before filling out this page) Figure 2 is a block diagram of the integrated multi-port switching device (IMS) 12 in Figure 1. The switching device 12 includes 24 10M \ bps media access control (MAC) ports 50, which are used to send and receive data packets in K half duplex between each 10M \ bps website 14 (埤 1-24), M And two 100M \ bps MAC ports 53 are used to send and receive data packets between each 100M \ bps websites (ports 25 and 26). As mentioned above, the management interface 30 can also operate according to the MAC layer protocol (port 0). Each MAC port 50, 53 and 30 has a receive first-in-first-out (FIFO) buffer 52 and a transmit FIFO 54. The data packets from the website are received by the corresponding MAC port and stored in the corresponding receive FIFO 52. The received data packet is output from the corresponding receiving FIF052 to the external memory interface 34 and stored in the external memory 36. The header of the received packet is also transmitted to the decision engine, and the internal rule checker 58 or the external rule checker interface 40 is used to determine that a MAC port will output the data packet. In particular, the packet header is transmitted to the internal rule checker 58 or the external rule checker interface 40 according to whether the switching device 12 is configured to use the internal rule checker 58 or the external rule checker 42. The internal rule checker 58 or the external rule checker 42 provides decision logic to determine the paper size applicable to the Chinese National Standard (CNS) grid (2 丨 0 X297 mm) 11 91469 A 7, ________B7_ V. Description of the invention (12) 2. Specify the destination MAC port of the given data packet. The decision engine therefore outputs the given data packet to a single port, multiple ports, or all ports (ie, broadcast). For example, (Each data packet includes a header with a source address and a destination
位址,根據此目的地位址決定引擎可標示適當的輸出MAC 埠。或者,目的地位址可對應至虛擬位址,此虛擬位址當 對應至複數個網站時,可使適當之決定引擎作識別。或Μ 另一種方式,依照ΙΕΕΕ802.Id協定,接收之資料封包可包 含VLAN (虛擬LAN)標記資料框,此IEEE802.Id協定詳细規 定另一網路(經由路由器於其中一個100M\bps網站22)或指 定之一群網站。因此,無論是内部規則檢驗器58或是外部 規則檢驗器42,經由介面40將決定暫時儲存於鍰衝記憶體 36中之資料框是否將輸出至單一 MAC埠或是至多個MAC埠。 使用外部規則檢驗器42具有臀如增加容量、可用隨機 排序於決定佇列等優點,此使用随機排序將使得資料框於 完全儲存到外部記憶體之前,下決定資料框之去向,並可 下決定與交換裝置12接收之次序無關之次序。 經濟部中央標準局員工消費合作社印裝 (請先閲讀背面之注意事項再填寫本頁) 決定引擎(即內部規則檢驗器5 8或是外部規則檢驗器 42)K埠向量標示各MAC埠之方式將傳輸決定輸出至交換裝 置次系統56,此MAC埠將接收資料封包。從規則檢驗器來 之堉向量包括儲存在外部記憶體36中之濱料封包的位址位 置,和MAC埠之標示,Μ接收傳輸之資料封包(例如,MAC 埠0-26)。交換裝置次系統56從外部記憶體36經由外部記 憶體介面34取得於埠向量標示之資料封包,並將此取得之 資料封包供應至經標示璋之適當的發送FIFO 54 ^ 本紙張尺度適用中國國家標率(CNS ) Λ4規格(210X 297公釐) 12 9 1469 A7 __B7 _ ' 五、發明説明(13) 附加介面提供管理及控制資訊。舉例而言,資料管理 介面5 9使交換裝置1 2用依照Μ I I管理規定(I E E E 8 0 2 . 3 u)之 交換收-器16和100M\bPs實體裝置20而交換控制及狀態資 訊。例如,資料管理介面59輸出提供有於雙向資料管理 IO(MDIO)信號通路之時序參考的資料管理時脈(MDC)。 PC I介面26是一個32位元PCI再版2. 1順從僕介面,用 於由PCI主機處理器28存取至內部IMS狀態及配置暫存器60 ,並用於外部記憶體36存取。PCI介面26亦能用於多個交 換裝置之擴充匯流排。管理埠30經由標準7線式反串列GPS I介面介接至外部M A C引擎,使得主機控制器能經由標準 MAC層協定接達到交換裝置12。 經濟部中央標準局員工消费合作社印製 第3圖顯示依照本發明之較佳實施例之第2圖中交換裝 置次系統56之更詳細說明。第2圖之多埠交換裝置12之其 他元件重繪於第3圖中Μ顯示交換裝置次系統56至這些其 他元件之連接。交換裝置次系統56包含有核心交換引擎用 來接收及傳送資料框。用來施行交換引擎的主功能區塊包 括:埠向量FIFO 70、緩衝器管理器72、複數個埠輸出佇 列74、管理埠輸出佇列75、擴充匯流排埠輸出佇列77、空 間媛衝槽104、多副本佇列90、多副本快速媛衝暫存器96 、和回收佇列9 8。對於這些功能區塊之 <操作和結構將會作 更詳細的說明,但是首先要對第3圖之交換裝置次系統56 提出簡短的說明,K提供稍後討論到個別元件之所需內容 0 有兩個從各埠輸入多埠交換裝置12之基本型式資料框 本紙張尺度適用中國國家標準(C’NS ) Λ4規格(210X297公釐) 91469 (請先閲讀背而之注意事項再填寫本頁) 13 A7 ,, __B7 ' 五、發明説明(14) :單副本資料框和多副本資料框。單副本資料框為由多埠 交換裝置12發送到僅有一個其他埠之埠所接收之資料框。 反之,多副本資料框為傅輸到多於一個埠而於一個埠所接 收之資料框。於第3圖中,各埠由分雛MAC 50所表示,具 有其自己的接收FIFO 52和發送FIFO 54。Address, the engine can mark the appropriate output MAC port based on this destination address. Alternatively, the destination address may correspond to a virtual address. When the virtual address corresponds to a plurality of websites, an appropriate decision engine may be used for identification. Alternatively, according to the ΙΕΕΕ802.Id agreement, the received data packet may contain a VLAN (virtual LAN) tag data frame. This IEEE802.Id agreement specifies another network (via a router on one of the 100M \ bps websites22). ) Or specify a group of sites. Therefore, whether it is the internal rule checker 58 or the external rule checker 42, the interface 40 determines whether the data frame temporarily stored in the flush memory 36 will be output to a single MAC port or to multiple MAC ports. The use of the external rule checker 42 has advantages such as increasing capacity, and using random ordering to determine queues. This use of random ordering will allow the data frame to be determined before it is completely stored in external memory. The order is decided independently of the order received by the switching device 12. Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling out this page). Determine the engine (that is, the internal rule checker 5 8 or the external rule checker 42). The way the K port vector indicates each MAC port The transmission decision is output to the switching device subsystem 56. This MAC port will receive data packets. The vector from the rule checker includes the address location of the bank packet stored in the external memory 36, and the MAC port identification. M receives the transmitted data packet (for example, MAC ports 0-26). The switching device sub-system 56 obtains the data packet marked on the port vector from the external memory 36 via the external memory interface 34, and supplies the obtained data packet to the appropriate sending FIFO marked 54. ^ This paper standard applies to China Standard rate (CNS) Λ4 specification (210X 297 mm) 12 9 1469 A7 __B7 _ 'V. Description of the invention (13) Additional interface provides management and control information. For example, the data management interface 59 enables the switching device 12 to exchange control and status information with a switching receiver 16 and a 100M \ bPs entity device 20 in accordance with the management regulations of M I I (E E E 80 2 .3 u). For example, the data management interface 59 outputs a data management clock (MDC) that provides timing references to the bidirectional data management IO (MDIO) signal path. The PC I interface 26 is a 32-bit PCI reprint 2.1 compliant slave interface, which is used by the PCI host processor 28 to access the internal IMS state and configuration register 60, and is used for external memory 36 access. The PCI interface 26 can also be used as an expansion bus for multiple switching devices. The management port 30 is connected to the external MAC engine through a standard 7-wire anti-serial GPS I interface, so that the host controller can reach the switching device 12 through a standard MAC layer protocol. Printed by the Consumer Standards Cooperative of the Central Standards Bureau of the Ministry of Economics. Fig. 3 shows a more detailed description of the exchange device sub-system 56 in Fig. 2 according to a preferred embodiment of the present invention. The other components of the multi-port switching device 12 in FIG. 2 are redrawn in FIG. 3. M shows the connection of the switching device sub-system 56 to these other components. The switching device subsystem 56 includes a core switching engine for receiving and transmitting data frames. The main function blocks used to implement the switching engine include: port vector FIFO 70, buffer manager 72, multiple port output queues 74, management port output queues 75, expansion bus port output queues 77, and space space The slot 104, the multi-copy queue 90, the multi-copy fast buffer register 96, and the recycle queue 98. The operation and structure of these functional blocks will be described in more detail, but first, a brief description of the switching device sub-system 56 of FIG. 3 will be provided. K provides the content required for the individual components discussed later. There are two basic types of data frames for the multi-port switching device 12 input from each port. The paper size applies to the Chinese National Standard (C'NS) Λ4 specification (210X297 mm) 91469 (Please read the precautions before filling this page ) 13 A7 ,, __B7 'V. Description of the invention (14): Single copy data frame and multiple copy data frame. The single copy data frame is a data frame sent by the multi-port switching device 12 to a port that has only one other port. Conversely, a multi-copy data frame is a data frame that is input to more than one port and received on one port. In Fig. 3, each port is represented by the sub-MAC 50, and has its own receive FIFO 52 and transmit FIFO 54.
I 無論是單副本資料框或多副本資料框,資料框由内部 MAC引擎50所接收。當資料框封包於埠被接收時,其是放 在接收F I F 0 5 2中。各資料框具有標頭,提供至內部規則 檢驗器58或是外部規則檢驗器42。根據在標頭中之資訊, 規則檢驗器4 2或5 8決定資料框封包將從何處投送出,即資 料框封包將從那一個埠或那幾個埠發送出。 經濟部中央標準局負Η消费合作社印裝 (請先閲讀背面之注意事項再填寫本!) 當規則檢驗器42或58決定從那兒把資料傳送出去的時 候,媛衝器管理器72從空間鍰衝槽104處獲得空間緩衝器 指標。此空閭緩衝器指標是於外部記憶體36中之位置,記 憶體36中資料框將由接收FIFO 52儲存於此位置。一旦空 間媛衝器指標從空閒媛衝槽104中由媛衝器管理器72獲得 時,則由空閒鑀衝器指標所指示之媛衝器不再考應:為空閒 。資料框之資料Μ直接記憶體存取(DMA)處理之方式,從 接收F I F 0 5 2經由資料匯流排8 0到達外部記憶體3 6。資料 框儲存在由空閒媛衝槽104處獲得之由空間媛衝器指標所 指示之位置,雖然許多之其他的媛衝器可Μ用來儲存資料 框,如後之將作說明。 除了標頭資料外,規則檢驗器42或58亦可從緩衝器管 理器7 2接收空閒媛衝器指標。此空閒媛衝器指標現在稱之 本紙張尺度適用中國國家標肀(CNS )_Λ4規格\ 210X 297公f ) ~ 14 91469 A7 B7 五、發明説明(15) 為資料框指標,因為他指示出了於外部記憶體36中的記憶 體位置,資料框即儲存在此外部記憶體3 6中。規則檢驗器 4 2或5 8 用標頭資訊來作傳輸決定,並產生Μ “埠向量” 形式之傳送指令。於此顯示之較佳實施例中,埠向量是一 個28位元向量,具有對各輸出堉之位元設塋,# Μ擴賤届 送到此等輸出埠。假設對此所示例子接收之資料框為單副 本資料框。因此,僅有1位元設定在由規則檢驗器42或58 所產生之埠向量。設定在堉向量之位元對應到其中一個特 定埠。 規則檢驗器42或58將埠向量和資料框指標(Μ及控制 作業系統碼和VLAH索引)置入埠向量FIFO 70中。埠向量由 埠向量FIFO 70檢驗Μ決定在埠向量中將輸入那一個配合 璋向量之資料框指標之特定的輸出佇列7 4 (或諸佇列)。埠 向量F IF 0 7 0將資料框指標置於適當的輸出佇列74的上端 。此即為佇列資料框之傳輸。 經濟部中央標準局負工消资合作社印繁 (請先閱讀背而之注意事項再填寫本頁) 於某些時間點,資料框指標於通過輸出佇列7 4後,到 達輸出佇列74之下端。當資料框指標到達輸出佇列74之下 端後,媛衝器管理器72取得此資料框指標,並將此資料框 指標經由資料框指標讀取匯流排86傳送到更正埠之適當的 發送FIFO 54。如此排定傳輸資料框之程序。資料框之資 料於從資料框指標所指定之外部記憶體36之位置DMA處理 而讀取,並放在適當的發送FIF0 54,然後發送出去。 除了埠向量有多位元組外,多副本傳輸相似於單副本 傳輸,指定將傳輸資料框之多個増。資料框指標設置於各 本紙張尺度適用中國國家標準((:NS ) Λ4規格(210X 297公釐) 15 9 14 6 9 A7 , B7 ’ 五、發明説明(16) 適當的輸出佇列74,並從相對應的發送FIFO 54發送。 緩衝器管理器7 2使用特別的控制佇列,即空間緩衝器 槽1 0 4 ^多副本佇列9 0、回收佇列9 8、和多副本快速媛衝 暫存器9 6,以管理儲存接收資料框之分配媛衝器之處理, 和管理一旦資料框已經傳輸到他的指定輸出埠再使用之恢 復緩衝器之處理。媛衝器管理器72亦於外部記憶體36維持 用於輸出佇列7 4、控制佇列1 0 4、9 0和9 8之“溢位”區, 此稍後將作詳细之說明。 Μ此操作概觀腋務為背景,規在將詳细討論交換裝置 次系統56之各個區段和不间的特色。將要說明的第一個特 色是本發明之各種輸出佇列74之结構。除了輸出佇列74指 定用10Mb/s輸出埠和100Mb/s輸出璋外,輸出佇列75設有 管理埠30,以及輸出佇列77設有擴展埠26。這些輸出佇列 75、77具有與輸出佇列74相同的外部結構,但是有不同的 內部結構,此將會作說明。 經濟部中央標準局貝工消费合作社印紫 第4圖為依照本發明之實胞例輸出佇列74之外部構造 之區塊圖。從第4圖中可明顯看出,本發明之輸出佇列74 具有三部分結構。為了要有最佳的性能,最好在晶片上保 持所有之佇列結構(請參照多埠交換裝置12),但是在晶片 上佔有面積是很貴的。當晶片設計成交(換裝置時需要有佇 列,又需要有大數量之輸入資料,則就成了兩難的選擇。 本發明因為在晶片上設計了包含高性能、低容量區段的單 一輸出佇列,和在晶片外提供溢位區,而解決了此兩難的 問題。當需要時,溢位區可諶佇列作為大容量佇列,雖然 本紙張尺度適用中國國家標埤(〇'15)六4規格(210'犬297公嫠) 91469 (請先閱讀背面之注意事項再填寫本頁) 16 A 7 , B7 ' 五、發明説明(17) 如此較之於在晶片上部分具有相對較低之性能。 依照第4圖之實胞例,本發明之單一邏輯輸出佇列74 具有三'個實體部分。此三個實體部分為位於外部記憶體36 中之輸出庁列寫入側7 6、輸出佇列讀取側7 8、和輸出佇列 溢位區(一般指定為110)。如前面所說明之,對於所有之 輸出佇列74經過外部記憶體介面34而存取至外部記憶體36 。本發明具有現用外部記憶體之群組式傳輸(bursting)方 式之優點,而使得資料(例如資料框指標)經由連接晶片1 2 與外部記憶體3 6之匯流排8 4 Μ群組形式送到晶片上或離開 晶片而到達溢位佇列區1 1 〇。 輸出佇列寫入側7 6和輸出佇列謓取側7 8位於晶片1 2上 。寫入側76和謓取側78考慮製得很小,因為晶片上面積是 很昂貴的資源。反之,形成輸出佇列74之第三部分之溢位 區110製得很大因其不昂貴。寫入側76和讀取側78具有高 性能,而經由溢位區之通路則提供低性能、大容量之通路 0 經濟部中央標準局貝工消費合作社印紫 (請先閲讀背面之注意事項再填寫本頁) 於操作中,輸出佇列寫入側76接收輸入資料。在依照 本發明之一多埠交換裝置12之典型實腌例中,輸入資料是 一個資料框指標,指出外部記憶體中的第一媛衝器,資料 框的第一個2 5 6位元組儲存在此外部記憶體中。然而,很 顯然的,於此技藝方面的這些技術輸出佇列結構7 4並不限 於只用資料框指標作為輸入資料,而是可廣泛地應用到在 多埠交換裝置和其他的技術中之其他型式的輸入資料佇列 0 本紙張尺度適州中國國家標肀(CNS〉Λ4規格(210Χ 297公釐) ' 17 91469 A 7 , B7 ' 五、發明説明(18) 輸入資料輸入並到達輸出佇列寫入側76之底部後’配 合輔i出佇列74之控制邏輯決定輸入資料將作甚麼。若在輸 出佇列bl取側78有空間,以及用於輸出佇列74之溢位區 110是空的,則一個或多個輸入資料直接從輸出佇列寫入 側76傳送到輸出佇列讀取側。此直接從寫入側76傳送至讀 取側78之輸入資料或諸輸入資料全都是在晶片12上施行, 而因此輸入資料有低的等待時观和能快速的流過。 若輸出佇列讀取側78是滿的,並且在輸出佇列寫入側 7 6至少有一個群組大小的資料量(例如1 6位元組值之輸人 資料),則資料以群組形式寫入用於輸出佇列7 4之溢位區 11 0。若输出佇列讀取側7 8是滿的,但是於輸出佇列寫入 側7 6尚沒有群組大小的資料量,則輸入資料會保留在輸出 佇列寫入側而不作進一步之處理。最後,輸出佇列讀取側 78將是空的,而當輸出佇列讀取側78有足夠的空間容納群 組大小的資料量,Μ及有資料在溢位區1 1 〇時,則成群組 之資料從溢位區110提供進入輸出佇列讀取側78。 鐘濟部中央標準局員工消费合作社印繁 (請先閲讀背面之注意事項再填寫本頁) 於輸出佇列結構,謓取側7 8之作用極像習知的佇列, 因為他是從取得輸入資料之部分,一個接著一個的取得。 輸出佇列寫入側76幾乎用作為選擇功能,將資料組合入群 . \ 組資料,用來寫入到外部記憶體36中。因此,本發明將單 一事件(把輸入資料置入輸出佇列74)轉變成為群組事件。 若需要的話,寫入側76允許將資料累加然後以群組方式送 出,到達外部記憶體3 6之溢位區。溢位區1 1 0提供廉價的 本紙張尺度適用中國國家標準(CNS ) Λ4規格(210X 297公釐) 18 91469 A7 _ , __B7_ 五、發明説明(19) 儲存可有數倍的擁擠,在僅需相對較少使用的情況下’不 佔用昂貴的晶片資源。即使本發明使用了晶片外的溢位區 110,亦可藉由一次群組方式送出許多個位元組資訊之有 效方法來存取此區110。此方法對比於習知之佇列結構, 該習知之佇列結構是將單一之輸入資料寫入到佇列並從佇 列謓取。, 於操作期間,若有許多的輸入資料到達輸出佇列74, 則這些輸入資料將被放入溢位區11 〇 Μ避免晶片上佇列7 8 溢位。因此,本發明之佇列結構能夠大大地防止丟棄資料 框。又,可藉由改變外部記憶體36之大小而容易地改變專 用於溢位區11 0之記憶體的總數量。再者,個別特定溢位 區1 1 0之大小為可規劃Κ符合客戶之佇列大小需要,而不 會緊縮輸出佇列74之性能。 經濟部中央標準局員工消资合作社印製 (請先閲讀背面之注意事項再填寫本頁) 一般而言,佇列為Μ先進先出次序安排的結構。然而 ,在某些型式佇列中,譬如回收佇列98和空閲媛衝槽104 ,與輸入資料之次序無關。若可能則把資料直接從寫入側 100送到謓取側102*本發明允許資訊直接從此路徑傳送, 用旁路將佇列送至溢位區。即使有資訊在相關之溢位區, 但只要資訊對次序的敏感度不高,即可允許這麽作。舉例 而言,回收的媛衝器對次序並不敏感,(因為對任何次序而 言,於媛衝器不再需要儲存可接收之資料框後,緩衝器最 終谡是要回到空閒槽1 0 4之空閒列中。因此,假如讀取側 102有空間可容納輸入資料的話,為了避免當資料對次序 不敏感時,對於在外部記憶體36中之回收佇列98引致寫入 本紙張尺度適用中國國家標率(CNS ) ( 210X 297^1:) ' 19 91469 A7 B7 五、發明説明(20) 到溢位區110之頻寬相抵觸,則可將資訊直接從寫入側1〇〇 傳送到讀取側1 0 2。回收佇列9 8為把資料排成佇列之一種 佇列型'式例子,其對於次序並不敏感。然而,有許多不同 應用之其他型式資料,亦對次序並不敏感,而使得本發明 之此一特性可利用到這些佇列中,這些佇列可將其他型式 之資料排成佇列。 如於第1和2圖所示之本發明之多堉交換裝置之典型實 皰例,具有28個輸出佇列(每個配合一個輸出埠):24個用 於10Mb/s之用戶埠,2個用於100Mb/s之用戶埤,1個用於 管理埠,和1個用於擴展匯流排埠。當資料框指標佇列等 候傳送時,輸出佇列74、75和77為其提供暫時之儲存。佇 列時採用埠向量FIFO 70之形式將資料框指標寫入傳輸埠 向畺所指示之各種輸出佇列74、75和77中。 經濟部中央標準局負工消費合作社印製 (請先閱讀背而之注意事項再填寫本頁) 在本發明之某些特定的最佳實施例中,各種輸出佇列 74、75、和77包含數個或所有的下列櫊位:單副本位元、 資料框指標、控制作業碼或控制訊號、和VLAN (虛擬區域 網路)索引。單副本位元為僅送到一個輸出埠之資料框做 標記。資料框指標指向位於外部記憶體36中之資料框。控 制作業碼確認有關資料框(例,最新得到之資料框等)之特 殊訊息。控制訊號利用來自控制作業碼 <之訊息指示在傳輸 之前將如何處理此資料框。V L A N索引為將要插入到輸出資 料框(如果必要)之VLAN標記提供參考。然而,這些襴位只 是做為範例用,當本發明應用至其他輸出佇列時,則具有不 同的櫊位型式。 本紙張尺度適用中國國家標埤(CNS ) Λ4说格(2丨0 X 297公犛) 20 91469 經满部中央標準局負工消费合作社印製 A7 , __^_B7_ _ . 五、發明説明(21) 第5圖係顯示輸出佇列74, 10 M/bps埠輸出佇列之第 一_形式之實施例範例的内部結構。此10 M/bps輸出佇列 7 4為將j送到1 0 M / b p s埠之資料框保持輸人資料。在用於說 明用之實施例範例中,輸出佇列寫入側7 6為這些佇列保持 32個輸人資料,而輸出佇列謓取側78則保持16個輸人資料, 雖然其他的大小是可預期的且是在本發明之範圍内。在10 M/bps輸出佇列74中之每個輸入資料均包含一個單副本位 元和一個資料框指標(14位元)。在本發明之多重埠交換實 施例範例中,並不需要VLAN索引,因此在10 M/bps埠中無 VLAH標記。 第6圖係顯示輸出佇列74, 100 M/bps埠輸出佇列之第 二種形式之實施例範例的内部結構。此100 M/bps堉輸出 佇列為將送到1 0 0 M / b p s埠之資料框保持輸入資料。輸出 佇列寫入側76為這種形式之輸出佇列保持64個輸入資料, 而輸出佇列讀取側78則保持16個輸入資料。每個輸入資料 均包含VLAN索引、部分的控制作業碼(位元4-0)、單副本 位元和資料框指標。 第7圖係顯示外部記憶體36之範例對應圖。舉例而言, 外部記憶體36之總容量可Μ是4Mb,雖然在不同實施例中可 使用其他容量的記憶體。依據本發明而〖應用於溢位區之外 部記憶體36可藉由簡單地改變外部記憶體而增加或減小輸 出佇列的大小。當晶片製造時即設定所有的排序容量,Μ 便使佇列結構可全部位於晶片上,這為整個系統的一個優 點。 本紙張尺度適用中國國家標準(rNS )八4驗(210X 297公犛) _~~ 21 91469 (請先閲讀背面之注意事項再填寫本頁) 衣 訂 A 7 , __B7_ ' 五、發明説明(22) 為了滿足交換裝置12之儲存需求,外部記憶體36之實 施例範例為下列區域配置空間:空間媛衝槽溢位120、回 收佇列访位1 2 2、多副本佇列溢位1 2 4、管理埠輸出佇列溢 位126、用於每個10 M/bps和ΙΟΟΜ/bps目的璋之獨立輸出 佇列溢位1 2 8、擴充匯流排埠輸出佇列溢位1 3 0、Μ I B計數 器1 3 2、和整體資料框媛衝槽1 3 4。 晶片上暫存器6 0間記憶體B A S Ε位址暫存器內之用於 全部記憶體區之BASE位址是可規劃的。在外部記憶體對 應圖中每個區之BASE位址在暫存器設定中是可規劃的。 不需要長度暫存器,因為指定區之長度等於在對應圖上從 此區之BASE位址到下個區之BASE位址的區域。 因為每個獨立溢位區之長度(也就是其容量)是可規劃 的,所以每個佇列的總容量亦是可規副的。本發明的此項 特性使得交換客戶化K便提供可依所需增加容量之特殊輸 出佇列。 下列用於儲存那些不適合放置在晶Η 1 2上控制佇列內 之輸入資料的溢位區是放置於外部記憶體3 6中。空間緩衝 經满部中央標準局員工消費合作社印製 (請先閱讀背面之注意事項#填寫本頁) 槽溢位120將目前未使用之位址指標儲存在整體資料框媛 衝槽1 3 4中。回收佇列溢位1 2 2儲存已經不需要之連結串列 的資料框指標。多副本佇列溢位1 2 4儲存副本數” > =1 ”(用 於排序資料框指標)之資料框指標和副本數為”-1” (用於 傳輸成功之資料框)之資枓框指標。 下列溢位區為輸出佇列儲存不適合放在晶片上之輸入 資料。管理埠輸出庁列溢位區1 2 6儲存等待要傳輸至管理 本紙張尺度適用中國國家標準(CNS ) Λ4規格(210X 297公釐) 22 91469 A7 B7 五、發明説明(23) 埠之資料框指標。輸出佇列溢位區1 2 8儲存等待要傳輸至 適當的10 M/bps埠或ΙΟΟΜ/bps埠之資料框指標。擴充匯 流排埠輸出佇列溢位130儲存等待要傳輸至擴充匯流排埠 之資料框指標。 MIB計數器132包含每個通訊埠的所有統計資料,其由 交換裝置12定期更新。交換裝置12在晶片上包含用於儲存 * MIB統計資料之8位元和16位元計數器。交換裝置12更新在 外部記憶體36中之32位元或64位元MIB計數器,其是Μ可遊 免失去ΜΙΒ資料所需之頻率來更新。 整體資料框媛衝槽134包含在連結串列中儲存所接收 到資料框資料之媛衝器。在任何時間這些連結串列均具有 有效的資料框資料、廢棄的緩衝器,此廢棄的媛衝器將由 緩衝器管理器7 2送回到空閒媛衝槽1 0 4,或由P C I主處理器 28所擁有。 經濟部中央標準局員工消費合作社印製 (請先閲讀背面之注意事項再填寫本頁) 現參考第8圖,在本發明之實施例範例中,從任何MAC埠 或P C I匯流排所接收到之資料框資料是K連結串列資料结 構格式儲存在外部記憶體3 6中。用於產生連結串列之媛衝 器140的長度是256位元組,雖然在本發明之不同實施例中 使用其他長度之媛衝器。指向每個緩衝器140之位址指標 是由交換裝置12中之空閒緩衝槽104儲存。 當交換裝置12之某一埠有接收到資料框時,緩衝器管 理器7 2要求來自空閒媛衝槽1 0 4之鏈結媛衝器1 4 0用之位址 指標儲存此資料框。指向外部記憶體3 6中儲存此資料框之 第一媛衝器之位址指標變成此資枓框之資料框指標。將此 本紙張尺度適用中國國家標跨.(CNS〉Λ4規格(210X 297公釐) 2 3 9 1469 Μ Β7 經濟部中央標準局負工消費合作社印絮 五、發明説明( 24) 1 I 資 料 框指 標 用於 交 換 次 系 統 56 中做 為 將 傳 輸之 資 料框的 排 1 1 I 序 用 0 1 1 1 藉’由 用 於標 示 記 憶 體 πΆ 中 下 一個 緩 衝 器 位置 之 每個緩 !衝 y—^ 1 I 請 1 I 器 標 頭1 4 2中之位址指標將媛衝器1 40 m 結 在一 起 。媛溺 i器 先 閲 1 I 讀 1 I 標 頭 1 4 2亦包含有其他有關媛衝器1 40 內 所 包含 之 資料枢 :資 背 1¾ 1 I 之 1 料 的 訊息 0 第一 媛 衝 器 的 標 頭 為12位 元 組 ,如第9 a 圖中 所 意 1 事 1 顯 示 之緩 衝 器標 頭 範 例 形 式 〇 其後 的 每 個 媛衝 器 的標頭均 項 再 1 p 為 4位元組, 如第 9b 圖 所 示 0 外 部記 憶 體 群 組是 2組 合X 16 明· 寫 本 裝 頁 1 位 元 組長 ,所Μ在每個媛衝器內之真正資料框儲存 容量 為 、 1 2 5 6 B -1 6B = 2 4 0 Β 1 1 如第 9a和 9b 圖 中 所 描 述 的 ,第— -和子媛衝器標 頭格 式 1 1 包 含 有下 列 襴位 訂 1 媛衝 器 格式 位 元 顯 示 正 在使 用 那 種 鍰衝 器 格式。 1 1 I 表 示 第一 緩 衝器 格 式 ,其長度是1 2位元組 ° 0表 示 子嫒衝器 1 I 格 式 ,其長度是4位 元 組 Ο 當 連 結媛 衝 器 時 ,其用於 剩餘 鍰 (J; 衝 器 的每 一 個。 1 E位元 (資料 框 結 束 標 誌 ) 顯示此為資料框的 最後 一 1 1 個 緩 衝器 〇 當E 位 元 設 定 之 後 ,表示鏈結中已經沒 有緩 衝 1 1 器 0 1 1 C位元 (C R C錯誤偵測) 顯 示接 收 端 、已 偵測 到 C RC錯 誤 1 I 0 當 偵測 到 C位元時, 傳 輸 功 能 將故 意 地 傳 輸反 向 的CRC 0 1 I L位元 (對齊 錯 誤 ) :顯示在接收資料框中偵測 到資 料 1 1 1 框 對 齊錯 誤 (和 CRC 錯 誤 ) > 1 1 0位元 (接收 端 F I F 0 溢 位 ) :顯示接收端F I F 0已 溢位 ,且 1 1 2 4 本紙張尺度適用中國國家標率(CNS ) Λ4現格(2丨ΟΧ297公釐) 91469 A 7 , B7 五、發明説明.(2 5 ) 在媛衝器中之資料可能是無效的。 媛衝器長度:在鍰衝器之資料欄位内從媛衝器標頭之 後第一检元組開始之有效位元組的總數。此長度不包括位 移位元組之值。 下一個緩衝器指標:指向下一個媛衝器之指標。當E 位元設定之後下一個媛衝器指標是無效的。 位移位元組計數器:顯示資料框的第一位元組從媛衝 器之資料框資料區的那兒開始。〇位移表示資料將從媛衝 器標頭142之後的第一位元組開始。〇位移表示資料框資料 將從緩衝器内緊接在第1 6位元組之後的位元組開始。對非 0位移值表示資料框資料將從媛衝器開頭緊接在第16位元 組+位移之後的位元組開始。傳輸功能將跳過由位移位元 組檷位所指示之位元組數。 經滴部中央標卒局貝工消費合作社印製 (請先閱讀背面之注意事項再填寫本頁) P位元(通訊埠型式):顯示接收輸入資料框之通訊埠 型式。0表示一個10 M/bps通訊埠而1表示一個100 M/bps 通訊埠。當規剷交換裝置12在將資料框完全接收且媛衝至 外部記憶體3 6之前將資料框傳送到擴充匯流排時,此位元 是由主機2 8和時間標記櫊使用。 T位元:表示裝置所接收資料框的形式:有標記或無 標記。1表示有標記資料框且VLAN標示字檷位中包含有接 收VLAN ID。0表示無標記資料框且VLAN ID是無效的。 接收埠數量:可從其接收資料框之埠數量。 VLAN標示字:從有標記埠所接收之VLAN ID。假如資 料框是從無標記埠接收到,此檷位是無效的。 本紙張尺度適用中國國家標卒(rNS ) Λ4現格(210X 297公釐) 25 9 1469 A 7 , B7 ’ 五、發明説明(26) R位元(重新計算之CRC):表示需要在傳輸功能中放棄 且簠新計算CRC。當收到有標記資料框時由交換裝置12設 定此位宄。除此之外,假如主機2 8修正資料框的内容,主機 28會設定此位元。當交換裝置12傳輸資料框時,其會檢査 此位元Μ便決定傳輸現有的CRC或放棄並重新計算CRC。 Α位元(附加C R C ):表示在資料框資料的尾端無C R C ° 主機可在記憶體中產生資料框(無CRC),然後設定此位元。 當傳輸資料框時,交換裝置12會產生且附加CRC。假如A位 元已設定,則資料框長度將不包括CRC。 F位元(格式位元):標示資料框長度/時間標記的檷位 。0表示此襴位為輸入資料框的時間標記。1表示此欄位是 所收到資料框之長度。 經濟部中央標準局負工消費合作社印紫 (請先閱讀背面之注意事項再填寫本頁) 資料框長度/時間標記:由F位元決定。假如F位元已 清除,此欄位表示從收到資料框開始之時間標記。此時間 標記的解析度是lus。假如F位元已設定,表示所收到資料 框之總長度包含有CRC和任何已接收到之VLAN標記。當收 到資料框時,交換裝置1 2 Μ時間標記(來自計時器暫存器) 標示此檷位。假如主機2 8已規劃交換裝置1 2在完全接收到 資料框之前傳輸擴充匯流排資料框,其利用此時間標記(和 接收埠速度)來判斷可將多少的資料從外部記憶體36送出 且不會讀取過多的資料框資料。一旦整個資料框均已接收 ,交換裝置12將資料框長度寫入此欄位並設定此F位元。 副本數:用於表示由埠向量FIFO 70為傳輸而排序成 功之副本數。假如媛衝器管理器7 2需要在多副本快速媛衝 本紙張尺度適用中國國家標埤(rNS ) Λ4規格(210X 297公釐) 26 9 1469 A 7 , , __B7_ 五、發明説明(27) 儲存器9 6内為新輸入資料產生空間時,此檷位用於儲存資 料框指標用之副本數。 經濟部中央標準局負工消費合作社印絮 (請先閱讀背面之注意事項再填寫本頁) 第i 0圖係顯示第3圖之交換次系統5 6的某些元件的詳 细說明圖。這些元件係用於提供資料框儲存用之媛衝器, 和回收這些媛衝器,且一旦這些媛衝器不再用於儲存資料 框時,使其可再次使用。如先前所描述的,每個輸出佇列7 4 、75(除了輸出佇列77)將資料框指標傳送到緩衝器管理器 72 ,其為由資料框指標所指示的資料框之傳輸預定時間。 緩衝器管理器72控制下列功能:1)管理交換裝置12之內部 匯流排;2 )協助到/從輸出佇列7 4之資料框指標排序/解排 序;3 )管理控制佇列9 0、9 8以便找到媛衝器並傳回空閲媛 衝槽104;4)控制至和來自外部記憶體36之資料的流向;和5 )維護記憶體結構,包括MIBs和溢位區。緩衝器管理器72包 含用於配置所有對外部記憶體36存取之調度功能。這些存 取包含有:1)將接收到之資料框資料寫入記憶體媛衝器 140,2)從記憶體緩衝器140讀取傳輸用之資料框資料,和3) 為輸出佇列7 4和控制佇列9 0、9 8維護(例,寫和讀)在每個 溢位區內之資料框指標,和4)更新MIB計數器。 在媛衝器管理器7 2將所給予的資料框指標複製到所有 適當的輸出佇列7 4、7 5之後,埠向量F ΙΨ 0 7 0計算副本的 數量(副本數)且將資料框指標和副本數量放人多副本佇列 9 0之寫入側9 2。副本數” 0 ”表示此資料框未傳輸,” 1 ”表示 單複本傳輸,或” > 1 ”表示多副本傳輸。將於下描述此三種 例子。 9 1469 27 本紙張尺度適中國國家標爭(CNS ) Λ4規格(210X 297公嫠) ~~ 經濟部中央標準局員工消费合作社印製 A7 - __B7_ 五、發明説明(28) 當副本數為”0”時,其意謂資料框指標具有無任何位元 設定之空的傳送埠向量,璋向量FIFO 70將資料框指標直 接送到la收佇列9 8之寫入側1 0 0。當媛衝器管理器7 2做為 回收佇列98用時,將於稍後描述之,媛衝器管理器72將媛 衝器之連結串列鏈结破壞並且將指向每個”空間”媛衝器之 位址指標送回空閒媛衝槽104之寫入側106。 當副本數為” 1 ”時,單副本傳輸,埠向量F I F 0 7 0將資 料框指標、控制訊號/控制作業糸統碼和V L A N索引複製給 適當通訊埠之輸出佇列74。璋向量FIFO 70設定在輸出佇 列74(參考第5和6圖)中之單副本位元K便表示此為單一傳 輸。當媛衝器管理器72從此埠之輸出佇列74讀取資料框指 標和單副本位元時,如先前所討論其為傳輸預定時間。鍰 衝器管理器72利用資料框指標找尋在外部記憶體36中儲存 資料框之第一緩衝器。緩衝器管理器72從這個第一媛衝器 謓取資料框指標,從第一媛衝器取得資料並且將此資料放 入適當的MAC傳輸FIFO 54。假設此資料框跨經多個緩衝器 ,則對子媛衝器之鍵結提供媛衝器管理器72找尋Μ及傳輸 所有在鍵结中用於此資料框之媛衝器的位址。一旦已將資 料放入FIFO 54中準備傳輸,則媛衝器變成空閒且送回空閒 緩衝槽104K便其後再指定其儲存另一資料框之資料。 當副本數大於1時,埠向量FIFO 70將資料框指標、 V L A N索引、和控制訊號/控制作業糸統碼複製給每一個適 當的輸出佇列7 4。(當提到輸出佇列7 4時,意謂同時參考佇 列75、77)。埠向量FIFO 70為在輸出佇列74中之適當的資 (請先閱讀背面之注意事項再填寫本頁)I Whether it is a single copy data frame or a multiple copy data frame, the data frame is received by the internal MAC engine 50. When a data frame packet is received at the port, it is placed in the receiving F I F 0 52. Each data frame has a header and is provided to the internal rule checker 58 or the external rule checker 42. Based on the information in the header, the rule checker 4 2 or 5 8 decides where the data frame packet will be delivered, that is, the data frame packet will be sent from which port or ports. The Central Standards Bureau of the Ministry of Economic Affairs Ηprinted by the consumer cooperative (please read the precautions on the back before filling in this!) When the rule checker 42 or 58 decides to transfer the data from there, the Yuan punch manager 72 is from the space 锾An index of the space buffer is obtained at the slot 104. The empty buffer index is a position in the external memory 36, and the data frame in the memory 36 will be stored in this position by the receiving FIFO 52. Once the free space indicator is obtained by the free space manager 104 from the free space slot 104, the free space indicator indicated by the free space indicator is no longer considered: it is idle. The data in the data frame is processed by direct memory access (DMA), from receiving F I F 0 5 2 to the external memory 36 through the data bus 80. The data frame is stored at the location indicated by the space element punch indicator obtained at the free element slot 104, although many other element punches can be used to store the data frame, as will be described later. In addition to the header information, the rule checker 42 or 58 may also receive an idle element indicator from the buffer manager 72. This idle element indicator is now called the Chinese paper standard (CNS) _Λ4 size \ 210X 297 male f) ~ 14 91469 A7 B7 V. Description of the invention (15) is a data frame indicator because he indicates that At the memory location in the external memory 36, the data frame is stored in the external memory 36. The rule checker 4 2 or 5 8 uses the header information to make a transmission decision, and generates a transmission instruction in the form of an M “port vector”. In the preferred embodiment shown here, the port vector is a 28-bit vector with a bit set for each output frame, and the #M extension base is sent to these output ports. Assume that the data frame received for this example is a single copy data frame. Therefore, only 1 bit is set in the port vector generated by the rule checker 42 or 58. The bit set in the unitary vector corresponds to one of the specific ports. The rule checker 42 or 58 places the port vector and data frame pointer (M and control operating system code and VLAH index) into the port vector FIFO 70. The port vector is checked by the port vector FIFO 70 to determine the specific output queue 7 4 (or queues) in the port vector that matches the data frame index of the vector. The port vector F IF 0 7 0 places the data frame pointer at the upper end of the appropriate output queue 74. This is the transmission of the queued data frame. At the certain time point, the data frame index reached the output queue 74 after passing the output queue 7 4 at some time points. Lower end. When the data frame index reaches the lower end of the output queue 74, the yuan punch manager 72 obtains the data frame index, and transmits the data frame index via the data frame index reading bus 86 to the appropriate sending FIFO 54 of the correction port. . This schedules the procedure for transmitting data frames. The data of the data frame is read by DMA processing from the location of the external memory 36 specified by the data frame index, placed in the appropriate sending FIF0 54 and then sent out. A multi-copy transmission is similar to a single-copy transmission except that the port vector has multiple bytes, and specifies that multiple frames of the data frame will be transmitted. The data frame indicators are set on each paper scale and apply the Chinese national standard ((: NS) Λ4 specification (210X 297 mm) 15 9 14 6 9 A7, B7 'V. Description of the invention (16) Appropriate output queue 74, and Send from the corresponding transmit FIFO 54. The buffer manager 72 uses a special control queue, namely the space buffer slot 1 0 4 ^ multi-copy queue 9 0, recycle queue 9 8 and multi-copy fast burst The register 96 is used to manage the processing of the allocation buffer that stores the received data frame, and the management of the recovery buffer that is used once the data frame has been transferred to his designated output port. The storage buffer manager 72 is also used at The external memory 36 maintains an "overflow" area for output queue 7, 4, control queue 1, 104, 90, and 98, which will be described in detail later. This operation overview armpit background The rules will discuss in detail the various sections and characteristics of the switching device sub-system 56. The first feature to be explained is the structure of the various output queues 74 of the present invention. In addition to the output queue 74, 10Mb / In addition to s output port and 100Mb / s output port, output queue 75 is provided with management port 30 , And output queue 77 is provided with expansion port 26. These output queues 75, 77 have the same external structure as output queue 74, but have different internal structures, which will be described. Consumption Cooperative Yinzi Figure 4 is a block diagram of the external structure of the output queue 74 according to the real example of the present invention. It is obvious from Figure 4 that the output queue 74 of the present invention has a three-part structure. For the best performance, it is best to keep all the queue structures on the chip (refer to the multi-port switching device 12), but occupying an area on the chip is very expensive. When the chip design is completed (replacement of the device is required) It also needs a large number of input data, which becomes a dilemma. The present invention is designed on the wafer with a single output queue containing high-performance, low-capacity sections, and provides an overflow area outside the wafer. The dilemma is solved. When needed, the overflow area can be queued as a large-capacity queue, although this paper size applies the Chinese national standard (0'15) 6-4 specifications (210 'dog 297 male). 91469 (Please read first Note on the back page, please fill in this page again) 16 A 7, B7 'V. Description of the invention (17) Compared with the upper part of the wafer, it has relatively lower performance. According to the cell example in Figure 4, the invention is single The logical output queue 74 has three physical parts. The three physical parts are the output queue writing side 7 6, the output queue reading side 7 8, and the output queue overflow area located in the external memory 36. (Generally designated as 110). As explained previously, for all output queues 74, the external memory interface 34 is accessed to the external memory 36 via the external memory interface 34. The present invention has a bursting of current external memory The advantage of this method is that the data (such as the data frame index) is sent to the chip via the bus 8 4 Μ group connecting the chip 12 and the external memory 36 to the overflow queue 1 1 〇 . The output queue writing side 76 and the output queue pickup side 7 8 are located on the wafer 12. The writing side 76 and the picking side 78 are considered to be small because the area on the wafer is a very expensive resource. In contrast, the overflow area 110 forming the third part of the output queue 74 is made large because it is not expensive. The write side 76 and the read side 78 have high performance, while the path through the overflow area provides a low-performance, large-capacity path. (Fill in this page) In operation, the output queue writing side 76 receives input data. In a typical implementation example of the multi-port switching device 12 according to the present invention, the input data is a data frame index indicating the first element in the external memory and the first 2 56 bytes of the data frame. Stored in this external memory. However, it is clear that these technology output queue structures 7 4 in this technique are not limited to using only data frame indicators as input data, but can be widely applied to other multi-port switching devices and other technologies. Type input data queue 0 The paper size is suitable for the national standard of China (CNS> Λ4 specification (210 × 297 mm) '17 91469 A 7, B7' V. Description of the invention (18) Input data input and reach the output queue After writing to the bottom of the side 76, the control logic of the output queue 74 in cooperation with the auxiliary i determines what the input data will do. If there is space on the output side bl fetch side 78, and the overflow area 110 for the output queue 74 is If it is empty, one or more input data is directly transferred from the output queue writing side 76 to the output queue reading side. This input data or input data directly transferred from the writing side 76 to the reading side 78 is all It is implemented on the chip 12, and therefore the input data has a low waiting time and can flow quickly. If the output queue read side 78 is full, and there is at least one group on the output queue write side 7 6 The amount of data (such as 16 bits) Input data of the group value), then the data is written in groups to the overflow area 11 0 of the output queue 7 4. If the output queue read side 7 8 is full, but written in the output queue Side 7 6 does not yet have a group size data amount, the input data will remain on the output queue writing side without further processing. Finally, the output queue reading side 78 will be empty, and when the output queue reads The fetching side 78 has enough space to accommodate the amount of data of the group size. When M and data are in the overflow area 110, the grouped data is provided from the overflow area 110 into the output queue reading side 78. 钟Employees' Cooperatives of the Central Bureau of Standards of the People's Republic of China (please read the notes on the back before filling out this page) on the output queue structure, the side 7 8 acts much like the conventional queue, because it is obtained from the input The data part is obtained one by one. The output queue writing side 76 is almost used as a selection function to group data into groups. \ Group data is used to write to the external memory 36. Therefore, the present invention will Events (put input data into output queue 74) into groups Event. If necessary, the writing side 76 allows the data to be accumulated and then sent out in a group, reaching the overflow area of the external memory 36. The overflow area 1 1 0 provides cheap paper standards applicable to Chinese national standards (CNS ) Λ4 specification (210X 297 mm) 18 91469 A7 _, __B7_ V. Description of the invention (19) Storage can be crowded several times, and only relatively little use is needed, 'no expensive chip resources are used. Even this The invention uses the overflow area 110 outside the chip, and this area 110 can also be accessed by an effective method of sending many bytes of information in a group. This method is compared with the known queue structure, which is known The row structure is to write a single input data to the queue and retrieve from the queue. During operation, if a lot of input data reaches the output queue 74, these input data will be put into the overflow area of 1 10M to avoid the 7 8 overflow on the chip. Therefore, the queue structure of the present invention can greatly prevent discarding the data frame. In addition, the total number of memories dedicated to the overflow area 110 can be easily changed by changing the size of the external memory 36. In addition, the size of the individual specific overflow area 1 1 0 can be planned to meet the customer's queue size needs, without shrinking the performance of the output queue 74. Printed by the Consumers' Cooperative of the Central Bureau of Standards of the Ministry of Economic Affairs (please read the notes on the back before filling out this page). Generally speaking, it is listed as the structure of the FIFO order. However, in some types of queues, such as the recycle queue 98 and the empty Yueyuan slot 104, it has nothing to do with the order of input data. If possible, the data is sent directly from the writing side 100 to the capturing side 102. The present invention allows information to be transmitted directly from this path, and the queue is sent to the overflow area by bypass. Even if there is information in the relevant overflow area, as long as the information is not sensitive to the order, this can be allowed. For example, the recovered yuan punch is not sensitive to the order. (Because for any order, the Yu yuan punch no longer needs to store the receivable data frame, the buffer will eventually return to the free slot 1 0 4 in the free column. Therefore, if the reading side 102 has room to accommodate the input data, in order to avoid when the data is not sensitive to the order, the recycling queue 98 in the external memory 36 caused by writing into the paper size applies China National Standards (CNS) (210X 297 ^ 1 :) '19 91469 A7 B7 V. Description of the invention (20) The bandwidth to the overflow area 110 conflicts, and the information can be transmitted directly from the writing side 100. Go to the reading side 102. The recovery queue 9 8 is an example of a queue type that queues the data. It is not sensitive to the order. However, there are many other types of data for different applications. It is not sensitive, so that this feature of the present invention can be used in these queues, which can queue other types of data. The multiple exchanges of the present invention shown in Figures 1 and 2 A typical example of a device with 28 output queues ( With one output port): 24 user ports for 10Mb / s, 2 user ports for 100Mb / s, 1 for management port, and 1 for expansion bus port. When the data frame indicator While the queue is waiting for transmission, the output queues 74, 75, and 77 provide temporary storage for it. The queue uses the form of port vector FIFO 70 to write data frame indicators to the various output queues indicated by the transmission port 74, 75 and 77. Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives (please read the precautions before filling out this page). In some specific preferred embodiments of the present invention, various output queues 74, 75, and 77 contain several or all of the following bits: single-copy bits, data frame indicators, control codes or control signals, and VLAN (virtual area network) indexes. Single-copy bits are sent to only one output The data frame of the port is marked. The data frame pointer points to the data frame located in the external memory 36. The control operation code confirms the special information about the data frame (for example, the latest obtained data frame, etc.). The control signal uses the control operation code & lt The message means How this data frame will be processed before transmission. The VLAN index provides a reference for the VLAN tags that will be inserted into the output data frame (if necessary). However, these bits are only examples, when the invention is applied to other output queues , This paper has a different type of position. This paper size is applicable to the Chinese National Standard (CNS) Λ4 grid (2 丨 0 X 297 gong) 20 91469 Printed by the Central Standards Bureau Off-line Consumer Cooperatives A7, __ ^ _B7_ _. V. Description of the Invention (21) Figure 5 shows the internal structure of the first example of the embodiment of the output queue 74, 10 M / bps port output queue. The 10 M / bps output queue 7 4 is used to keep j input data in the data frame of port 10 M / b p s. In the example of the embodiment for explanation, the output queue writing side 76 holds 32 input data for these queues, and the output queue capture side 78 holds 16 input data, although other sizes It is contemplated and within the scope of the present invention. Each input data in the 10 M / bps output queue 74 contains a single copy bit and a data frame indicator (14 bits). In the example of the multi-port switching embodiment of the present invention, no VLAN index is required, so there is no VLAH tag in the 10 M / bps port. Fig. 6 shows the internal structure of the second embodiment of the output queue 74, 100 M / bps port output queue. The 100 M / bps output is listed as a data frame that will be sent to the 100 M / b s port to hold input data. The output queue writing side 76 holds 64 input data for this type of output queue, and the output queue reading side 78 holds 16 input data. Each input contains a VLAN index, part of the control operation code (bits 4-0), a single copy bit, and a data frame indicator. FIG. 7 is a diagram showing an example correspondence of the external memory 36. For example, the total capacity of the external memory 36 may be 4Mb, although other capacities of memory may be used in different embodiments. According to the present invention, the application of the external memory 36 to the overflow area can increase or decrease the output queue size by simply changing the external memory. When the wafer is manufactured, all sorting capacities are set, and M allows the queue structure to be all located on the wafer, which is an advantage of the entire system. This paper size is applicable to Chinese National Standard (rNS) 8-4 test (210X 297 cm) _ ~~ 21 91469 (Please read the precautions on the back before filling this page) Booklet A 7, __B7_ 'V. Description of the invention (22 ) In order to meet the storage requirements of the swap device 12, an example of an embodiment of the external memory 36 is to allocate space in the following areas: space element overflow slot 120, recycling queue access position 1 2 2, multiple copy queue overflow position 1 2 4 , Management port output queue overflow 126, Independent output queue overflow for each 10 M / bps and 100M / bps purpose 1 2 8, Expansion bus output queue overflow 1 130, Μ IB Counter 1 3 2 and overall data frame Yuan slot 1 1 4. There are 60 memory registers on the chip. B A S Ε address register The BASE address for all memory areas in the register is programmable. The BASE address of each area in the external memory map is programmable in the register settings. No length register is needed because the length of the designated area is equal to the area from the BASE address of this area to the BASE address of the next area on the corresponding map. Because the length of each independent overflow area (that is, its capacity) is programmable, the total capacity of each queue can also be regulated. This feature of the invention allows the exchange of customized K to provide a special output queue that can increase capacity as needed. The following overflow areas for storing input data that are not suitable to be placed in the control queue on the crystal unit 12 are placed in the external memory 36. The space buffer is printed by the Consumer Standards Cooperative of the Central Bureau of Standards (please read the note on the back first # Fill this page) Slot overflow bit 120 stores the currently unused address indicators in the overall data frame Yuan slot 1 3 4 . The recycle queue overflow 1 2 2 stores the data frame indicators of the linked series that are no longer needed. Multi-copy queue overflow 1 2 4 Number of stored copies "> = 1" (for sorting data frame indicators) The data frame indicator and number of copies are "-1" (for successful data frames) Box indicators. The following overflow areas are input queues that store input data that is not suitable for placement on the chip. Management port output queue overflow area 1 2 6 Storage waiting to be transmitted to management This paper size applies Chinese National Standard (CNS) Λ4 specification (210X 297 mm) 22 91469 A7 B7 V. Description of invention (23) Data frame of port index. The output queue overflow area 1 2 8 stores data frame indicators waiting to be transferred to the appropriate 10 M / bps port or 100 M / bps port. Expansion bus output queue overflow 130 stores data frame indicators waiting to be transmitted to the expansion bus. The MIB counter 132 contains all statistical data for each communication port, which is regularly updated by the switching device 12. The swap device 12 includes 8-bit and 16-bit counters on the chip for storing * MIB statistics. The switching device 12 updates the 32-bit or 64-bit MIB counter in the external memory 36, which is updated without the frequency necessary for the MIB data to be lost. The overall data frame element slot 134 includes a yuan punch for storing the received data frame data in the link string. At any time, these linked strings have valid data frame data and discarded buffers. The discarded yuan punches will be returned by the buffer manager 7 2 to the idle yuan slots 1 0 4 or by the PCI main processor. 28 owned. Printed by the Consumer Standards Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the notes on the back before filling this page). Now refer to Figure 8. In the example of the embodiment of the present invention, it is received from any MAC port or PCI bus. The data frame data is a K-link serial data structure format stored in the external memory 36. The length of the elementary punch 140 used to generate the concatenated string is 256 bytes, although elements of other lengths are used in different embodiments of the present invention. The address pointer to each buffer 140 is stored by a free buffer slot 104 in the switching device 12. When a data frame is received in one of the ports of the switching device 12, the buffer manager 72 requests the address of the linked element punch 140 from the free element slot 104 to store this data frame. Point to the external memory 3 6 to store the data frame of the first element of the index indicator into the data frame index of the data frame. Apply this paper size to Chinese national standard. (CNS> Λ4 specification (210X 297 mm) 2 3 9 1469 Μ Β7 Printed by the Consumers ’Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 5. Description of the invention (24) 1 I Data frame The indicator is used to exchange the row 1 1 I in the secondary system 56 as the data frame to be transmitted. The sequence is 0 1 1 1 by 'for each bit used to indicate the position of the next buffer in the memory πΆ! 冲 y— ^ 1 I Please 1 I The device index in the header 1 4 2 binds the yuan punch 1 40 m together. The element is read first 1 I read 1 I header 1 4 2 contains other relevant yuan punches The data hub contained in the device 1 40: the information back 1¾ 1 1 of the information 0. The header of the first element punch is 12 bytes, as shown in Figure 9a. Example Header Format 〇 The heading term of each elementary punch is then 1 p is 4 bytes, as shown in Figure 9b. The internal memory group is 2 sets of X 16 Ming · Writing book, 1 byte leader, so the actual data frame storage capacity in each element is 1 2 5 6 B -1 6B = 2 4 0 Β 1 1 As described in Figures 9a and 9b, the first and second element header format 1 1 contains the following bit order. 1 element punch format bit indicates which type of punch format is being used. 1 1 I indicates the first buffer format, whose length is 12 bytes. 0 indicates the sub-punch 1 I format, whose length is 4 bytes. 0 When the elementary punch is connected, it is used for the remaining 锾 (J; 1 E bit (end of data frame) This is the last 11 buffers of the data frame. When the E bit is set, it means that there is no buffer in the link 1 1 device 0 1 1 C bit (CRC error detection) Shows the receiving end, C RC error has been detected 1 I 0 When C bit is detected The transmission function will intentionally transmit the reverse CRC 0 1 IL bit (alignment error): Shows that data was detected in the receive data frame 1 1 1 Frame alignment error (and CRC error) > 1 1 0 bit (receive FIF 0 overflow at the end): Shows that the receiving end FIF 0 has overflowed, and 1 1 2 4 This paper size is applicable to China's national standard (CNS) Λ4 is present (2 丨 〇297mm) 91469 A 7, B7 V. Invention Explanation. (2 5) The information in Yuan Yuan's punch may be invalid. Yuan punch length: The total number of valid bytes starting from the first check byte after the Yuan punch header in the data field of the punch punch. This length does not include the value of the bit shift tuple. Next buffer indicator: An indicator pointing to the next yuan punch. After the E bit is set, the next yuan indicator is invalid. Bit-shifted byte counter: The first byte of the displayed data frame starts from the data frame data area of the elementary buffer. 〇The displacement indicates that the data will start from the first byte after the header 142. 〇The displacement indicates that the data frame data will start from the byte immediately after the 16th byte in the buffer. A shift value other than 0 indicates that the data frame data will start from the beginning of the yuan punch immediately after the 16th byte + the offset. The transfer function will skip the number of bytes indicated by the shift byte. Printed by Dibei Central Bureau of Peugeot Consumer Cooperative (please read the precautions on the back before filling this page) P bit (communication port type): Displays the type of communication port that receives the input data frame. 0 means a 10 M / bps communication port and 1 means a 100 M / bps communication port. This bit is used by the host 28 and the time stamp 櫊 when the data exchange device 12 transmits the data frame to the expansion bus before the data frame is completely received and flushed to the external memory 36. T bit: indicates the form of the data frame received by the device: marked or unmarked. 1 indicates that there is a tagged data frame and the VLAN tag word bit contains the receiving VLAN ID. 0 means no tag data frame and VLAN ID is invalid. Number of receiving ports: The number of ports from which data frames can be received. VLAN tag: The VLAN ID received from the tagged port. If the data frame is received from the untagged port, this bit is invalid. This paper size is applicable to the Chinese National Standards (rNS) Λ4 grid (210X 297 mm) 25 9 1469 A 7, B7 'V. Description of the invention (26) R bit (recalculated CRC): indicates that the transmission function is required Renounced and recalculated CRC. This bit is set by the switching device 12 when a tagged data frame is received. In addition, if the host 28 corrects the content of the data frame, the host 28 will set this bit. When the switching device 12 transmits a data frame, it checks this bit M and decides to transmit the existing CRC or discards and recalculates the CRC. Α bit (with additional C R C): indicates that there is no C R C ° at the end of the data frame. The host can generate a data frame (no CRC) in the memory, and then set this bit. When transmitting a data frame, the switching device 12 generates and appends a CRC. If bit A is set, the data frame length will not include the CRC. F bit (format bit): indicates the position of the data frame length / time stamp. 0 means this bit is the time stamp of the input data frame. 1 indicates that this field is the length of the data frame received. Yinzi, a Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the notes on the back before filling this page) Data frame length / time stamp: determined by F bit. If the F bit is cleared, this field indicates the time stamp from the time the data frame was received. The resolution of this time stamp is lus. If the F bit is set, the total length of the data frame received contains the CRC and any received VLAN tags. When the data frame is received, the switching device 12M time stamp (from the timer register) marks this position. If the host 2 8 has planned the switching device 1 2 to transmit the expansion bus data frame before the data frame is completely received, it uses this time stamp (and the receiving port speed) to determine how much data can be sent from the external memory 36 without Read too much data frame data. Once the entire data frame has been received, the exchange device 12 writes the data frame length into this field and sets the F bit. Number of copies: used to indicate the number of copies successfully sorted by the port vector FIFO 70 for transmission. If Yuan Punch Manager 7 2 needs to be used in multi-copy fast Yuan Punch paper size, the Chinese national standard (rNS) Λ4 specification (210X 297 mm) 26 9 1469 A 7,, __B7_ V. Description of the invention (27) Storage When space is created in the device 96 for new input data, this bit is used to store the number of copies of the data frame pointer. Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Consumer Cooperatives (please read the precautions on the back, and then fill out this page) Figure i 0 is a detailed illustration of some components of the exchange system 5 6 in Figure 3. These components are used to provide data frame storage devices, and to recover these data storage devices, and to make them available again when they are no longer used to store data frames. As described previously, each output queue 74, 75 (except output queue 77) transmits a data frame indicator to the buffer manager 72, which is a predetermined transmission time of the data frame indicated by the data frame indicator. The buffer manager 72 controls the following functions: 1) manages the internal buses of the switching device 12; 2) assists in sorting / unordering the data frame indexes of the output queue 7 4; 3) management control queue 9 0, 9 8 in order to find the yuan punch and return the empty reading yuan slot 104; 4) control the flow of data to and from the external memory 36; and 5) maintain the memory structure, including MIBs and overflow areas. The buffer manager 72 contains scheduling functions for configuring all accesses to the external memory 36. These accesses include: 1) writing the received data frame data to the memory buffer 140, 2) reading the data frame data for transmission from the memory buffer 140, and 3) outputting the queue 7 4 And control queues 9 0, 9 8 maintain (for example, write and read) data frame indicators in each overflow area, and 4) update the MIB counter. After the yuan punch manager 7 2 copies the given data frame index to all appropriate output queues 7 4 and 7 5, the port vector F ΙΨ 0 7 0 calculates the number of copies (number of copies) and the data frame index The number of copies is placed on the writing side of the multiple copy queue 9 0 9 2. The number of copies "0" indicates that this data frame has not been transmitted, "1" indicates a single copy transmission, or "> 1" indicates a multi-copy transmission. These three examples are described below. 9 1469 27 This paper is suitable for China National Standards (CNS) Λ4 specification (210X 297 gong) ~~ Printed by the Consumers' Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs A7-__B7_ V. Description of the invention (28) When the number of copies is "0 ", It means that the data frame index has an empty transmission port vector without any bit setting, and the vector vector FIFO 70 directly sends the data frame index to the writing side of the receiving queue 9 8 1 0 0. When the Yuan Punch Manager 72 is used as the recovery queue 98, it will be described later. The Yuan Punch Manager 72 breaks the link of the Yuan Punch device and points to each "space". The address index of the punch is sent back to the write side 106 of the free slot 104. When the number of copies is "1", for single copy transmission, the port vector F I F 0 7 0 copies the data frame index, control signal / control operation system code, and V L A N index to the output queue 74 of the appropriate communication port. The single copy bit K of the vector FIFO 70 set in the output queue 74 (refer to Figs. 5 and 6) indicates that this is a single transmission. When the yuan punch manager 72 reads the data frame pointer and the single copy bit from the output queue 74 of this port, it is the predetermined transmission time as previously discussed.冲 The punch manager 72 uses the data frame pointer to find the first buffer that stores the data frame in the external memory 36. The buffer manager 72 fetches the data frame index from this first elementary puncher, obtains the data from the first elementary puncher, and puts this information in the appropriate MAC transmission FIFO 54. Assuming that this data frame spans multiple buffers, the key element manager 72 is provided for the key element of the elementary element to find M and transmit the addresses of all elementary elements used in this key element in the key element. Once the data has been placed in the FIFO 54 for transmission, the element buffer becomes idle and is returned to the free buffer slot 104K, and then it is designated to store another frame of data. When the number of copies is greater than 1, the port vector FIFO 70 copies the data frame index, the V L A N index, and the control signal / control operation code to each appropriate output queue 74. (When referring to output queues 74, it means that queues 75 and 77 are also referenced). Port vector FIFO 70 is the appropriate resource in output queue 74 (Please read the notes on the back before filling this page)
本紙張尺度適用中國國家標肀(CNS ) Λ4規格(210X297公釐) 28 9 1469 A7 B7 經濟部中央標準局貝工消f合作社印聚 五、發明説明 ( 29) ) 1 I 料 框 指 標 清 除 單 副 本 位 元 ,且將具有副本數” > 1 ”之資料框 1 I 指 標 放 入 多 副 本 佇 列 90 之 寫 入 側 92 0 \ 1 I 每 ;當 媛 衝 器 管 理 器 72 從 輸 出 佇 列74之一 讀 取資料框指 /·—> 請 1 1 1 標 且 清 除 單 副 本 位 元 時 ,媛衝器管理器7 2為此資料框排定 閱 讀 1 1 傳 輸 時 間 ,同時檢査多副本快速媛衝儲存器96中其資料框 背 面 之 1 1 指 標 具 有 副 本 數 為 "1 ”之輸入資料。 假如在多副本快速媛 注 意 1 | 事 1 衝 儲 存 器 96 中 發 現 有 資 料 框 指 標 具 有副本數 "1 ”,則媛衝器 項 再 填 1 © 管 理 器 72M 與 單 副 本 資 料 框 傳 輸 相 同之方式 為 此資料框排 Μ 本 頁 裝 1 定 傳 輸 時 間 且 在 傳 輸 期 間 回 收 這 些 媛衝器。 然 而,假如資 '·—^ 1 1 I 料 框 指 標 不 在 多 副 本 快 速 緩 衝 儲 存 器96中或 在 多副本快速 1 1 鍰 衝 儲 存 器 96 中 之 資 料 框 指 標 的 副 本數大於 1 , 則媛衝器管 1 1 訂 1 理 器 72 傳 輸 此 資 料 框 但 不 回 收 此 媛 衝器。在 傳 輸成功之後 ,鍰衝器管理器7 2將資料框指標之副本和” -1 ”副本數放入 1 1 多 副 本 佇 列 90 之 寫 人 側 92 0 1 1 每 次 多 副 本 資 料 框 傳 輸 之 後 ,媛衝器管理器72將資料 Φ, 框 指 標 之 副 本 放 入 多 副 本 佇 列 90 中 ,為媛衝器管理器7 2在 1 I 多 副 本 快 速 緩 衝 儲 存 器 96 中 並 未 發 琨之資料 框 指標提供副 1 1 本 數 ” 1 ” 。因此, 任 何 時 間 » 多 副 本 佇列90都 包 含有具副本 1 1 數 > " 1 " 之 資 料 框 指 標 和 /或相同資料框指標之幾個副本,每 1 1 個 所 具 有 之 副 本 數 均 為 -1 〇 1 1 媛 衝 器 管 理 器 72不 斷 地 服 務 多 副本佇列 90和多副本快 1 | 速 緩 衝 儲 存 器 96以 便 可 回 收 空 閒 的 媛衝器。 當 它服務多副 1 I 本 佇 列 90且 謓 到 具 有 副 本 數 >" 1 " 之 資料框指 標 ,鍰衝器管 1 1 I 理 器 7 2 嘗 試 將 新 的 輸 人 資 料 (資料框指標和副本數)放入多 1 1 本紙張尺度適用侧繼(叫Μ規格⑺™楚) 91469 A 7 , B7 五、發明説明(3〇) 副本快速媛衝儲存器9 6。假如多副本快速媛衝儲存器9 6是 滿的,則媛衝器管理器7 2為新的資料框指標找尋空間。媛 衝器管S器7 2謓取”舊的”多副本快速輸入資料,為此輸入 資料更新其在外部記憶體3 6中媛衝器標頭中的副本數,然 後從多副本快速媛衝儲存器96將此輸入資料清除。當多副 本快速緩衝儲存器9 6空間變成可用的時,則媛衝器管理器 72可將新的輸入資料從多副本佇列90放入多副本快速緩衝 儲存器9 6中。 當媛衝器管理器7 2服務多副本佇列9 0且讀到具有副本 數為” -1 ”之資料框指標,其搜尋多副本快速媛衝儲存器9 6, 找尋與副本數” > =1 ”相配的資料框指標位址以便可減少或 刪除。假如緩衝器管理器7 2找到相配的資料框指標,則媛 衝器管理器7 2將:1 )假如副本數” > 1 ” *則將多副本快速媛 衝儲存器的資料框指標減1 ;或2 )假如副本數為” 1 ”,則將 多副本快速媛衝儲存器的資料框指標/副本數輸入資料刪 除且將資枓框指標放入回收佇列98。 ίί;濟部中央標準局貝工消費合作社印繁 (請先閲讀背面之注意事項再填寫本頁) 假如媛衝器管理器72並未找到相配的資料框指標,則 鍰衝器管理器72在外部記憶體36(參考第9_)中為副本數 尋找資料框指標的媛衝器標頭。假如在記憶體中之副本數 為” 1 ”,則媛衝器管理器7 2將資料框指標澉入回收佇列9 8 ° 假如在記憶體中之副本數為” > 1 ”,則緩衝器管理器7 2將資 料框指標與此副本數一起放入多副本快速媛衝儲存器9 6, 然後將副本數減少。 媛衝器管理器7 2藉由讀取資料框指標而不斷地服務回 本紙張尺度適用中國國家標埤.((’NS ) Μ規格(210X 297公嫠) " 30 91469 A7 B7 五、發明説明(31) 收佇列9 8 ,然後移動連结串列鐽結K便將媛衝器送回空間 緩衝槽104。此動作所送回之媛衝器是用於具有空閒埠向 量且藉’由埠向量F I F 0 7 0將其排序送至回收佇列之資料框, 或具有多副本傳送向量和已完成所有副本傳輸之資料框。 如前文所描述的,當傳輸資料框時,用於單副本資料框鏈結 之媛衝器係直接送回空閒緩衝槽1 0 4。 經濟部中央標準局貝工消費合作社印繁 (請先閱讀背面之注意事項再填寫本頁) 假如埠向量FIFO 70因為輸出佇列74和其在外部記憶 體3 6中之溢位區1 1 0是滿的而無法將用於單副本傳送向量 之資料框指標放入輸出佇列74時,則將此資料框放棄。然 後資料框指標回到回收佇列98而所放棄的資料框則由交換 裝置之資源管理加註。假如埠向量FIF0 70因為一個或多 個輸出佇列74和其在外部記憶體36中之溢位區110是滿的 而無法放置用於多副本傳送向量之一個或多個資枓框指標 時,僅將有得到空間之資料框送至輸出佇列,且放入多副本 佇列90之副本數將只反應已成功放置之資料框指標。尚未 放置之資料框指標則由交換之資源管理為每個通訊塢加註 ,因此不會排序此資料框指標。假如埠向量FIFO 70因為所 有的輸出佇列74和其在外部記憶體36中之溢位區110是滿 的而無法放置用於多副本傳送向量之任何資料框指標時, 將此資料框指標傳送到回收佇列9 8 ,且適時地通知交換之 資源管理。 多副本佇列9 0為高優先權佇列,媛衝器管理器7 2利用 其持續追蹤在所有用於儲存資料框的緩衝器(即,位址指標 )回到空閒媛衝槽1 0 4之前須完成幾次特定的多副本資料框 本紙張尺度適用中國國家標埤(CNS〉Λ4規格(210X297公釐) 3 1 91469 A7 B7 五、發明説明(32) 傳輸。此輸出佇列之寫入側92和讓取側94分別持有64和16 個_入資料。多副本佇列9 0提供由緩衝器管理器7 2所使用 之多副'本快速緩衝儲存器9 6 Μ決定何時回收緩衝器。多副 本佇列的內部结構係顯示在第12圖中。 埠向量FIFO 70依據已成功放入輸出佇列74之資料框 指標數量而將資料框之資料框指標和” > 1 ”副本數之副本放 入多副本佇列9 0。假如特定埠之輸出佇列7 4是滿的,則埠 向量 F I F 0 7 0無法將資料框指標之副本放入輸出佇列7 4 ; 因此不能將其包含在決定副本數之成功事件中。 經濟部中央標準局員工消費合作社印製 (請先閱讀背面之注意事項再填寫本頁) 每次媛衝器管理器7 2讀取輸出佇列資料框指標且發現 其單副本位元為” 0 ”(即,多副本),則檢査多副本快速緩衝 儲存器是否有具有副本數為” 1 ”之資料框指標,其表示此為 最後的傳輸。假如發現有符合條件者,則媛衝器管理器7 2 傳輸資料框且以與單副本傳輸相同之方式,在將每個媛衝 器之內容傳輸後,藉由將空間媛衝器提供給空閒媛衝槽104 而回收媛衝器。假如發現沒有符合條件者,則媛衝器管理 器72傳輸多副本資料框且將具有副本數為”-1”的資料框指 標的副本放入多副本佇列9 0。當主機已完成使用那些(經 由P C I介面2 6 )排列至擴充匯流排輸出佇列7 5或管理埠輸出 佇列7 7之資料框所用的多副本資料框指嚙時,主機將具有 副本數為” -1 ”的資料框指標的副本經由資料框指標暫存器 寫入多副本佇列。此暫存器為第2圖暫存器60區塊中所描 述之暫存器之一。 與輸出佇列74相同,將多副本佇列90建構為具有一輸 本紙張尺度適用中國國家標準((:NS ) Λ4規格(210X 297公釐) 32 91469 A7 B7 經濟部中央標隼局員工消費合作社印製 五、發明説明 ( 3 3 ) 入 路 徑 和 一 個 輸 出 路 徑 。輸入路 徑,或寫入側 ,允許埠向 量 FIFO 7 0和媛衝器管理將資料框指標/副本數放入多副本 :佇 列 90 中 1。 輸 出 路 徑 ,或讀取側,允 許多副本佇列90將資料 卜框 指 標 /副本數放入多副本快速媛衝儲存器9 6中 。在外部 記 憶 體 HiL 36 中 提 供 用 於 資 料 框指標/副本數之額外 儲存的多 副 本 佇 列 溢 位 12 4 、 當 將 資 料 框 指 標 /副本數寫入空的多副本 佇列90時 .其 從 寫 入 側 92 傳 輸 到 讀 取 側94直到 讀取側94是滿的為止。 將 其 他 已 寫 入 多 副 本 佇 列 90寫入側 9 2的資料框指標/副本 數 放 入 外 部 記 憶 體 36 中 之 多副本佇 列溢位區1 2 4 。一旦多 副 本 佇 列 90 之 讀 取 側 9 4和 其溢位區 12 4均是滿的 ,其他的放在 多 副 本 佇 列 的 資 料 框 指 標/副本數開始填補寫 入側9 2。 資 料 框 指 標 傳 輸 經 過多副本 佇列9 0之順序是固定的, 如 當 在 多 副 本 佇 列 讀 取 側94之空 間已清除,則 將資料框 指 標 /副本數從多副本佇列溢位區1 24移至多副本佇列讀取側 94, 並 從 多 副 本 佇 列 寫 入側92至 多副本佇列溢位區124 0 多 副 本 快 速 媛 衝 儲 存器96與 多副本佇列9 0相似,除 提 供 用 於 掃 描 資 料 框 指 標 /副本數之可搜尋區外 。多副本 快 速 媛 衝 儲 存 器 96保 持 達 2 5 6個輸入資料。緩衝 器管理器 72 從 多 副 本 佇 列 90 謓 取 資 料框指標 且依據(其副本數是否為> 1 或 - 1而決定將其放入多副本快速緩衝儲存器 96或處理 之 除 此 之 外 ,每次媛衝器管理器72從輸出佇 列7 4之讀 取 側 78 謓 取 資 料 框 指 標 時 ,媛衝器管理器72預定 傳輸時間 〇 本紙張尺度適用中國國家標枣(CNS ) Λ4規格(210X297公嫠) Q 1 4 R « η 先 閲 讀 背 面 之 注 意 事 項 再- 填 寫 本 頁 五、發明説明(34 A7 B7 管” 器Γ 衝為 緩數 } 本 框副 料有 資具 本尋 副搜 多96 為器 此存 謂儲 意衝 Γ媛 f 速 為快 元本 位副標 本多指 副在‘框 單72料 如 '器資 假理之 有 如 假 ο 輸 傳 後 最 的 框 料 資 個 這 為 此 示 表 此 除 移 2 7 器 311 理 管 器 媛 者 合 符 給傳 還成 器完 衝在 緩72 將器 間理 期管 槽 0 媛 間 空 輸器 傳衝 框媛 料, 資 在 且 料 資 入 輸 合 符 有 沒 如 假 為 數 本 甘田 有 具 將 後 之 輸 指 框 料 資 者之 數 本 副 / 標 指 框 料 資 取 讀 由 藉 2 7 器 Ϊ: 理 ο 管 9器 列 佇 本 副 地 多期 入定 放 標 8 媛 副 子 多例 務二 服此 而 。 之關 理無 處輸 或傳 6 -9 之 器框 存料 儲資 衝與 媛行 速進 快之 本作 Η田 0 多此 入。 ΐ ο 放 9 其列 將佇 且本 的 有 具 所 標 指 框 料 資 的 取 讀 所 器 ο 理 ” 管-1 器” 衝或 媛1'' 據”> 依為 是是 生數 發本 的副 指器 框存 料儲 資衝 之緩 取速 謓快 所本 ο y 9 曰田 列多 佇在 本設 副假 多 〇 從1'' 2 > 7'' 器數 理本 管副 器有 衝具 媛標 1i 本須 副必 K 2 多 7 如 器 假理 0 管 料器 資衝 入媛 r則 的 , 新 個 一 入9 — 器 寫 F U.存 , 儲 間衝 空媛 有速 96快 的 滿 是 是 成 完 之 作 此 ο 間 空 之 內 6 9 器 存 儲 8. 媛 遴 快 除 清 (請先閱讀背面之注意事項再填寫本頁) 經濟部中央標準局貝工消費合作社印製 料 資 的 舊 個 一 取 謓 6 9 器 存 儲 樣 媛 遴 快 本 副 多 從 由 藉 數 本 副 器 存 儲 β 標媛 指速 框快 本 日田 多 有 具 中 6 3 體 憶 記 部 外 在 將 器 媛 的 標 指 框 料 之 數 本 副 中 存 儲 福 緩 速 快 將 後 然 副 、 多 新 旦 更一 頭。 標除 器 存 儲 ^0. 媛 teE 遴 快 本 刪 料 資 入 輸間 此空 的有 器96 新 將 則 儲 器 緩 遴 本 副 多 快 此 入 寫 數 本 nj 畐 / 標 指 框 。 料96 資器 的存 本紙張尺度適用中國國家標率(CNS ) Λ4規格(210X 297公釐) 34 91469 A7 B7 五、發明説明(35 )2 )媛衝器管理器7 2從多副本佇列9 0所讀取之資料框指This paper size applies to the Chinese National Standard (CNS) Λ4 specification (210X297 mm) 28 9 1469 A7 B7 Bei Gong Xiao Cooperative Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs f Cooperative Cooperative Printing 5. Description of the invention (29) Copy bit, and put the data frame 1 I with the number of copies "> 1" into the multi-copy queue 90 on the write side of 92 0 \ 1 I each; when the yuan punch manager 72 outputs the queue 74 One reads the data frame refers to // --- > When 1 1 1 is marked and the single copy bit is cleared, the yuan punch manager 7 2 schedules this data frame for reading 1 1 transmission time, while checking the multi-copy fast yuan The 1 1 index on the back of the data frame in the punch memory 96 has the input data with the number of copies "1". If you notice 1 in the multi-copy fast fast note 1 | Event 1 There is a data frame index with the number of copies in the punch memory 96. ; 1 ", then fill in the red element 1 © Manager 72M The same way as the single copy data frame transmission Means a predetermined time transmission and recovery of these red Yuan transmission period in between. However, if the data frame index is not in the multi-copy fast buffer memory 96 or the number of copies of the data frame index in the multi-copy fast 1 1 buffer memory 96 is greater than 1, then the yuan punch Tube 1 1 and 1 processor 72 transmit this data frame but do not recycle this element. After the transfer is successful, the buffer manager 7 2 puts the copy of the data frame indicator and the number of "-1" copies into the 1 1 multi-copy queue 90. Writer side 92 0 1 1 After each multi-copy data frame transfer Yuan Yuan punch manager 72 puts a copy of the data Φ, frame index into multi-copy queue 90, Yuan Yuan punch manager 7 2 has not sent the data frame in 1 I multi-copy cache buffer 96 The indicator provides the sub 1 1 number "1". Therefore, at any time »multi-copy queue 90 contains a data frame indicator with a copy 1 1 number > " 1 " and several copies of the same data frame indicator. For -1 〇1 1 the primary buffer manager 72 continuously serves the multi-copy queue 90 and the multi-copy cache 1 | cache memory 96 so that free buffers can be reclaimed. When it serves multiple 1 I queues 90 and reaches a data frame indicator with the number of copies > " 1 ", the buffer tube 1 1 I processor 7 2 attempts to add new input data (data frame Index and number of copies) put in more than 1 1 This paper size is applicable to the side (called M specifications⑺ ™ Chu) 91469 A 7, B7 V. Description of the invention (30) The copy quick punch storage 9 6. If the multi-copy fast flash storage 96 is full, the flash storage manager 72 finds space for the new data frame index. Yuan Yuan tube S 7 2 take "old" multi-copy quick input data, for this input data update its copy number in the external memory 3 6 Yuan Yuan punch header, and then from the multi-copy quick Yuan punch The memory 96 clears the input data. When the space of the multi-copy cache 96 becomes available, the yuan punch manager 72 may put new input data from the multi-copy queue 90 into the multi-copy cache 96. Dangyuan punch manager 7 2 serves multiple replica queues 9 0 and reads a data frame index with the number of replicas "-1", it searches for multi-copy fast yuan punch storage 9 6 to find and copy number "> = 1 "matching data frame pointer address so that it can be reduced or deleted. If the buffer manager 7 2 finds a matching data frame index, the yuan punch manager 7 2 will: 1) if the number of copies "> 1" * then reduce the data frame index of the multi-copy fast yuan punch storage by 1 ; Or 2) If the number of copies is "1", delete the data frame index / copy number input data of the multi-copy fast memory storage and delete the data frame index into the recovery queue 98. ί; Yin Fan, Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the notes on the back before filling this page). If Yuan Punch Manager 72 does not find a matching data frame indicator, then Punch Manager 72 A header header for the data frame index in the external memory 36 (refer to 9_) for the number of copies. If the number of copies in the memory is "1", the Yuan punch manager 7 2 will enter the data frame index into the recovery queue 9 8 ° If the number of copies in the memory is "> 1", buffer The manager 7 2 puts the data frame index into the multi-copy fast memory 9 6 together with the number of copies, and then reduces the number of copies. Yuan Chong Manager 72 2 continuously reads the data frame indicators to read back the paper size. Applicable to Chinese national standards. (('NS) M specification (210X 297 cm) " 30 91469 A7 B7 V. Invention Explanation (31) Close the sequence 9 8, and then move the link string K to send the element punch back to the space buffer slot 104. The element punch returned by this action is used to have a free port vector and borrow ' The port vector FIF 0 7 0 sorts it and sends it to the data frame of the recycle queue, or the data frame with multiple copy transmission vectors and all copies have been transmitted. As described above, when the data frame is transmitted, it is used for single The copy of the data link in the copy box is directly returned to the free buffer slot 104. Printed by Fangong Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling this page). If the port vector FIFO 70 is because When the output queue 74 and its overflow area 1 1 0 in the external memory 36 are full, it is impossible to put the data frame pointer for the single copy transfer vector into the output queue 74, and then the data frame is discarded. . Then the data frame indicator returned to the recovery queue 98 and was abandoned The data frame is annotated by the resource management of the switching device. If the port vector FIF0 70 is full because one or more output queues 74 and its overflow area 110 in the external memory 36 are full, it cannot be placed for multi-copy transmission When one or more information frame indicators of the vector are sent, only the data frame with space is sent to the output queue, and the number of copies placed in the multi-copy queue 90 will only reflect the data frame indicators that have been successfully placed. The data frame index is filled by each exchange dock by the resource management of the exchange, so this data frame index will not be sorted. If the port vector FIFO 70 has all the output queues 74 and its overflow in the external memory 36 When the area 110 is full and cannot place any data frame indicators for the multi-copy transmission vector, the data frame indicators are transferred to the recycle queue 9 8 and the exchange's resource management is notified in a timely manner. The multi-copy queue 9 0 is High priority queue, Yuan punch manager 7 2 uses its continuous tracking to complete a certain number of specific times before all buffers (ie, address indicators) used to store data frames return to the idle Yuan slot 1 0 4 Multiple copies The paper size of the frame is applicable to the Chinese national standard (CNS> Λ4 specification (210X297 mm) 3 1 91469 A7 B7 V. Description of invention (32) Transmission. The writing side 92 and yield side 94 of this output queue are held separately 64 and 16 entries. The multi-copy queue 90 provides multiple copies of the current cache memory 96 used by the buffer manager 72 to determine when to recycle the buffer. The internal structure of the multi-copy queue Shown in Figure 12. Port vector FIFO 70 places the data frame index and the "> 1" number of copies into the multiple copy queue 9 based on the number of data frame indicators that have been successfully placed in the output queue 74. 0. If the output queue 7 4 of a particular port is full, the port vector F I F 0 7 0 cannot put a copy of the data frame index into the output queue 7 4; therefore it cannot be included in the success event that determines the number of copies. Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling this page) Each time the punch manager 7 2 reads the output queue data frame indicators and finds that its single copy bit is "0 ”(That is, multiple copies), then check whether the multi-copy cache has a data frame indicator with the number of copies“ 1 ”, which indicates that this is the last transfer. If there are those who meet the conditions, the Yuan Punch Manager 7 2 transmits the data frame and in the same way as the single copy transmission, after transmitting the contents of each Punch Punch, by providing the space Punch Punch to the idle Yuan Yuan trough 104 and Yuan Yuan punch are recovered. If no eligible person is found, the Yuan Chong manager 72 transmits a multi-copy data frame and puts the copy with the data frame index of "-1" into the multi-copy queue 9 0. When the host has finished using the multi-replication data frames that are arranged to the expansion bus output queue 7 5 or the management port output queue 7 7 (via the PCI interface 26), the host will have the number of copies as A copy of the data frame index of “-1” is written into the multiple copy queue via the data frame index register. This register is one of the registers described in block 60 of the register in Figure 2. Same as the output queue 74, the multi-copy queue 90 is constructed to have one output paper size applicable to Chinese national standards ((: NS) Λ4 specification (210X 297 mm) 32 91469 A7 B7 staff consumption of the Central Bureau of Standards, Ministry of Economic Affairs Cooperative printed 5. Description of the invention (3 3) An input path and an output path. The input path, or write side, allows the port vector FIFO 7 0 and the yuan punch management to put the data frame index / copy number into multiple copies: 伫Column 90 1. The output path, or read side, allows multiple copies of queue 90 to put the data frame index / copy number into the multi-copy fast memory bank 9 6. It is provided in the external memory HiL 36 for Data frame index / copy number additional storage for multiple copy queue overflow 12 4 When the data frame index / copy number is written to an empty multiple copy queue 90, it is transferred from the write side 92 to the read side 94 Until the reading side 94 is full. Put other written multi-copy queues 90 writing side 9 2 data frame index / copy number into external memory 3 The multi-copy queue overflow area 1 2 4 of 6. Once the read side 9 4 of the multi-copy queue 90 and its overflow area 12 4 are full, the other data frame indicators placed in the multi-copy queue / The number of copies starts to fill the writing side 9 2. The order of the data frame index transmission through the multiple copy queue 90 is fixed. If the space on the read side 94 of the multiple copy queue is cleared, the data frame index / The number of copies is moved from the multi-copy queue overflow area 1 24 to the multi-copy queue read side 94, and from the multi-copy queue write side 92 to the multi-copy queue overflow area 124 0 multi-copy fast buffer memory 96 and Multi-copy queue 9 is similar, except that it provides a searchable area for scanning data frame indicators / number of copies. The multi-copy fast memory 96 holds up to 2 5 6 input data. Buffer manager 72 from multiple copies Queue 90 takes the data frame index and decides whether to put it in the multi-copy cache memory 96 or process based on (whether the number of copies is> 1 or -1) Each time the yuan punch manager 72 fetches the data frame index from the reading side 78 of the output queue 74, the yuan punch manager 72 schedules the transmission time. This paper size applies the Chinese national standard date (CNS) Λ4 specification. (210X297) 嫠 Q 1 4 R «η Read the precautions on the back first-fill out this page V. Description of the invention (34 A7 B7 tube" device Γ Crush as a deferred} Duo 96 is a device that saves the intention to ignite Γ Yuan f. The speed is a fast element. The secondary specimen is a multi-finger pair in the 'box list 72 materials such as'. This table shows that the removal of 2 7 311 administrators is in accordance with the requirements of the return to the completion of the rush and the delay of 72 arranging the tube slot between the arsenal 0 and the air transport of the circulator. If the input and output match, it is not fake. It is the number of deputies of Gantian who has the input of the index frame material. The index frame material is obtained by borrowing 2 7 devices. Multi-period in fixed bidding 8 Yuan Yuanzi And this works two. The reason is nowhere to lose or pass 6 -9 of the container box. Storage materials. Reserve funds. Rush and Yuanxing. Fast forward. Fast work. Putian. ΐ ο put 9 the list of readers with the specified frame materials ο management "tube-1 device" red or Yuan 1 "according to" > It is a number of issued books The speed of the storage of the secondary finger frame and the storage of funds are quickly reduced. 9 9 田田 列 多 伫 In this case, there are many deputies. From 1 '' 2 > 7 '' Punching tool yuan standard 1i must be deputy K 2 more 7 if the device is false 0 pipe material is flushed into the yuan r, a new one into 9 — write F U. deposit, the storage room is empty 96 yuan speed The fast full is the finished work. Within the space 6 9 memory storage 8. Yuan Lin quickly clear (please read the precautions on the back before filling this page) Printed by the Central Standards Bureau of the Ministry of Economic Affairs The old one can be used to get the 6 9 device storage sample Yuan Kuaimoto, and the deputy will be stored by borrowing a number of deputy units. Β Biaoyuan finger speed frame Kusada Hita has a 6 6 body memory. Yuan's index of the number of deputies in the storage of the deputy will be fast and will soon be deputy, and more new year. The divider stores ^ 0. Yuan teE, the quick copy of the material input and input space, the new device 96, the new memory will be used to store the copy, and how quickly can you write several copies of the nj 畐 / index finger box. The paper size of the device is applicable to the Chinese National Standards (CNS) Λ4 specification (210X 297 mm) 34 91469 A7 B7 V. Description of the invention (35) 2) Yuan punch manager 7 2 is listed in 9 copies from multiple copies Read data frame means
1X I 器” 理數 管本 器副 衝有 媛具 。 尋 ,搜 中 數96 本器 副存 有儲 具衝 標媛 快 本 甘田 多 在 指 框 料 資 的 在指 否框 是料 72資 器之 理件 管 條 器合 衝 符 鍰到 據找 依96 是器 生存 發儲 的衝 子媛 例速 二 快 此本 ο 畐 標多 標 標 指 框 料 資 的 件 條 合 符 到 找 2 7 器 理 管 器 9 媛 副媛 的速 料快 資本 入 副 輸多 之將 6 2 9 7 器器 存理 儲管 衝器 緩衝 速媛 快則 本. i 1 畐 ” 多為 如數 假本 放料 標資 指入 框輸 料器 資存 此儲 將衝 且媛 除速 刪快 料如 資假 入。 1 輸98”> 的列為 器佇數 存收本 儲回副 衝入的 器 It 理 管 器 0 緩 則 減 數 本 副 將 中 6 9 器 存 儲 宿 緩 遴 快 本 副 多 在 2 7 器 it 理 管 器 捐 鍰 合 符 謂 意 此 ο 標 指 框 料 資 的 件 條 合 符 到 找 有 沒 之衝 36' 緩 體。 憶中 記頭 部標 外器 至衝 移媛 已之 前結 先鏈 標列 指串 框結 料連 資的 之框 件枓 條資 (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局負工消费合作社印製 數此 本要 副需 此再 取不 .謓則 中 ” 頭Γ 標為 器丨 δ 媛 到 須在 必 { 72值 器此 理如 管假 器。 中 禮 憶 記 8 9 列 佇 框收 料回 資入 放 標 指 框 料中 資體 此憶 將記 72,在 器ί }c 理 管 器 媛 後 然 值 此 如 假 為 理中 管 3 器體 衝 憶 媛記 則部 器 之 標 指 框 料 資 將 外 在 存 儲 0. 數媛 本速 Hu h^l 0 铁 /本 副 多 入 放 本 副 減 數 本 anu 日田 將 且 6 9 器 擢 媛 I 逋 快 本 畐 多 如 假 本紙張尺度適用中國國家標準(CNS ) Λ4規格(210X 297公釐) 35 91469 A 7 , ‘ ________B7 五、發明説明(36) 儲存器9 6是滿的,則媛衝器管理器7 2藉由將其中 之一個舊的資枓框指標/副本數移進外部記憶體 f 3 6中而清除空間。 回收佇列98持有指向連结串列鏈结中已不再需要之資 料框指標。媛衝器管理器72當服務多副本快速緩衝儲存器 且發現資料框指標的副本數為” 1 ”時(即,此資料框最後的 傳輸已完成成功),其將此資料框指標寫人回收佇列9δ。除 此之外,埠向量FIF0 70在下列情形下將資料框指標寫入回 收佇列98: 1)資料框指標的通訊埠向量是空的,或2)資料 框指標因所有傳送向量的輸出佇列均已滿而無法排序。最 後,當主機利用排序進入擴充匯流排輸出佇列7 7或管理埠 輸出佇列7 5之單副本資料框而完成時,將資料框指標寫入 回收佇列98(利用資料框指標暫存器)。 經滴部中央標準局員工消费合作社印製 (請先閱讀背面之注意事項再填寫本頁) 當媛衝器管理器7 2處理回收佇列輸入資料時,其引導 資料框指標的連結串列鏈結將每個緩衝器送回空間緩衝槽 104。將不說明回收佇列的内部结構,但是在本發明之實施 例範例中僅包含資料框指標(14位元)。回收佇列寫入側 100持有64個輸入資料而回收佇列寫入側102則持有16個輸 入資料。 與輸出佇列7 4相類似,將回收佇列9J建構為具有一個 輸入資料路徑和一個輸出路徑。輸入資料路徑,或寫入側 100,允許媛衝器管理器72將資料框指標放人回收佇列98中 。輸出路徑,或讀取側1 0 2 ,允許媛衝器管理器7 2讀取資料 框指標且將所有相關的媛衝器送回空閒緩衝槽1 0 4。外部 本紙張尺度適用中國國家榡哗(rNS ) Λ4規格(210X297公麓) 36 91469 A7 ' , ___B7 五、發明説明(37 ) 記憶體3 6中所提供的回收佇列溢位區1 2 2係提供做為資料 框指標之額外儲存用。 (請先閲讀背面之注意事項再填寫本頁) 當將資料框指標寫入空的回收佇列98時,其從寫入側 1 0 0傳輸到讀取側1 0 2直到謓取側1 0 2是滿的為止。將已寫 入回收佇列98寫入側100之額外的資料框指標放入外部記 憶體3 6中之回收佇列溢位區1 2 2。一旦回收佇列9 8之謓取 側1 0 2和其溢位區1 2 2均是滿的,則已放人回收佇列9 8之額 外的資料框指標開始填補寫入側1 0 0。 經濟部中央標準局員工消费合作社印褽 第11圖係用於說明實施例範例之空閒緩衡槽1 0 4的內 部結構。空閒媛衝槽104為FIFO,其包含指向外部記憶體36 中所有空閒緩衝器140之位址指標。當接收到資料框,緩衝 器管理器72從空閒媛衝槽104取得可用之位址指標K便儲 存輸入資料。媛衝器管理器72同時從空閒緩衝槽104為主 機處理器28(當需要時)取得可用之位址指標。主機可藉由 Μ直接輸入資料/輸出空間謓取或寫入位於暫存器60之間 的空閒媛衝槽暫存器而要求或送回位址指標給空間緩衝槽 104。空閒媛衝槽104之寫人側106和讀取側108在本發明之 實施例範例中均持有64個輸入資料。 將空閒緩衝槽104建構為具有輸入路徑和輸出路徑(與 輸出佇列7 4相類似)。輸入路徑,或寫入嗰10 6 ,允許媛衝器 管理器72或主機28將位址指標放入空閒鍰衝槽104中。空 閒媛衝槽1 0 4之輸出路徑,或讀取側1 0 8 ,允許媛衝器管理器 7 2將位址指標提供給主機2 8或從槽1 0 4取出用於儲存所收 到之資料框資料之位址指標。在外部記憶體3 6中提供有做 本紙張尺度適用中國國家標净(CNS ) Λ4規格(210 X 297公釐) 37 9 1469 A7 , 1 __B7_ 五、發明説明(38) 為可獲得的位址指標額外儲存用之空閒媛衝槽溢位區1 2 0 , 如先前所描述的。 當女換裝置1 2啟動時,空閒緩衝槽1 0 4從讀取側1 0 8產 生位址指標。當資料框輸入之後,讀取空閲媛衝槽104中之 空間表。假如在寫入側1 〇 6沒有足夠的媛衝器指標來處理 通訊指令,存取溢位區1 2 0 K便獲得更多的媛衝器指標。本 發明之某些實施例提供在當交換裝置12啟動時可提供緩衝 器指標之有利的配置和方法。當交換裝置12首次啟動時, 並沒有要求外部記憶體36中的溢位區120容納緩衝器指標 。相反地,媛衝器指標是動態產生的。在啟動時交換裝置 12可產生媛衝器指標並將其放入溢位區120中,但可能有16 ,000或32,000個此種指標,且此將減慢交換裝置12的啟動 程序。本發明利用此事實的優點,即在啟動時所有的媛衝 器均是空間的,且這些媛衝器的標示均是已知的。因此, 緩衝器指標是在啟動之後需要它們時才利用計數器180產 生的,如第1 0圖所顯示。 空間表計數產生器180是連接到多工器182之輸入。因 經滴部中央標準局貝Η消費合作社印製 (請先閱讀背面之注意事項再填寫本頁) 為在空間媛衝槽1.0 4中之空閒表在啟動時是空的,故空閒 表計數產生器180產生媛衝器指標。一旦空閒表達到最高 計數值,將不會再產生任何媛衝器指標 當交換裝置12收到資料框封包,將資料框封包分割為 固定長度之緩衝器。基本上,資料框的大小是可變的。媛 衝器的大小是2 5 6位元組而媛衝器之資料部分是2 40位元組 。在緩衝器之內容傳輸之後,將媛衝器指標放入回收佇列 本纸張尺度適用中國國家標嘩(CNS ) MiAM· ( 210 X297^#·) ' 38 91469 A7 _____________B7 五、發明説明(39) 98,或假如媛衝器鏈結可移動,可直接放人空閒媛衝槽1〇4 的空閒表。在交換裝置1 2操作期間,回到空閒媛衝槽1 〇 4之 任何位址指標從寫入側1 0 6傳送到讀取側1 0 8。假如讀取側 1 0 8已滿,則將額外的位址指標傳送到溢位區1 2 0。一旦讀 取側1 0 8和溢位區1 2 0均已滿,放人空閒媛衝槽1 0 4之額外的 位址指標將再開始填補槽1 0 4之寫入側1 0 6。 第1 3圖係顯示依據本發明之實施例的多副本快速媛衝 儲存器9 6之内部配置的說明用概圖。如先前簡要討論過的 ,輸入多副本快速媛衝儲存器9 6之輸人資料的時間順序是 固定的。在本發明中,時間順序之維護不是如先前技藝中 是由時間取樣而是由記憶體中之實際順序來完成的。同時 本發明之多副本快速媛衝儲存器96可避免使用有效的位元 ,而是編碼有效性,如稍後將討論者。 經濟部中央標準局員工消費合作社印聚 (請先閱讀背面之注意事項再填湾本頁) 參考第13圖,將多副本快速媛衝儲存器9(5建構成做為 四通設定關聯用記憶體。輸入多副本快速緩衝儲存器9 6的 輸入資料包含有資料框指標和其副本數,如先前所說明的 。資料框指標之最低6位元決定設定關聯用記憶體96中將 儲存此輸人資料的列。在本發明之說明用實施例中,快速 緩衝儲存器96具有64個列,雖然如果將快速媛衝儲存器做' 得大點,將不限制使用其他數量的列。\ 將設定關聯用快速鍰衝儲存器96分成四個襴位,可平 行搜尋它們之中的每一個。當媛衝器管理器72將輸入資料 存入快速媛衝儲存器96時,此輸入資料通常輸入第一襴,由 資料框指標之最低6位元所指示的列之最上面(5 1 : 3 9 )位元1X I device ”The number of the tube is the same as the tube of the device. You can find and search the number of 96. The tube of the device is stored in the storage box. According to the rules of the pipe, the device is matched with the red tape. According to the 96, it is the speed of the red tape. The speed of this example is two. Manager 9 Yuan, Deputy Yuan's fast material, fast capital, and vice versa. 6 2 9 7 Machine storage, storage, storage, tube buffering, speed, and speed. I 1 畐 ”is mostly the same as the fake material. The storage of the feeder box feeder will save the deposit and the yuan will be removed quickly and the material will be imported as soon as it is paid. 1 Lose 98 ”> is listed as the number of deposits, deposits, deposits, and returns to the deputy. It manages 0, then decrements, deputies, and deputies. 6 9, storage, storage, and depletion. It organizer donates and meets the meaning of this. The pieces of the frame material are matched to find the rushed 36 'slow body. Recall that the head of the superscript device has been linked to Chong Yiyuan. Marking refers to the frame and bill of materials that are linked to the materials and funds (please read the precautions on the back before filling out this page). "謓 则 中" head Γ is labeled as 丨 δ Yuan to be required to be equal to 72. This principle is like a tube. Zhongli Memorandum 8 9 column 伫 frame received material back into the index finger material in the material body this memory will be recorded 72, in the device} c management device Yuan value then this is assumed to be the management tube 3 device body Chong Yiyuan remembers that the parts of the frame will be stored externally. 0. 媛 元本 速 Hu h ^ l 0 iron / deputy multi-input put deputy deputy anu Hita will be 6 9 擢 擢 媛 I逋 Quick copy 畐 If the paper size is applicable to the Chinese National Standard (CNS) Λ4 specification (210X 297 mm) 35 91469 A 7, '________B7 V. Description of the invention (36) Storage 96 is full, then Yuan Chong The manager manager 72 clears the space by moving one of the old resource box indicators / copy numbers into the external memory f 3 6. The recycle queue 98 holds pointers to data frames that are no longer needed in the linked serial link. Yuan Chong Manager 72, when serving the multi-copy fast buffer storage and found that the number of copies of the data frame index is "1" (that is, the last transmission of this data frame has been successfully completed), it writes this data frame index to the recycler Queue 9δ. In addition, the port vector FIF0 70 writes the data frame pointer to the recycle queue 98 in the following cases: 1) the communication port vector of the data frame pointer is empty, or 2) the data frame pointer is output by all transmission vectors. The columns are full and cannot be sorted. Finally, when the host completes the single copy data frame by entering the expansion bus output queue 7 7 or the management port output queue 7 5, the data frame indicator is written to the recycle queue 98 (using the data frame indicator register) ). Printed by the Consumer Standards Cooperative of the Central Bureau of Standards (please read the precautions on the back before filling out this page). When the Yuan Punch Manager 7 2 processes the recycle queue input data, its guide data frame indicators link to the serial chain. The knot sends each buffer back to the spatial buffer slot 104. The internal structure of the recycling queue will not be explained, but only the data frame index (14 bits) is included in the example of the embodiment of the present invention. The recycle queue writing side 100 holds 64 inputs and the recycle queue writing side 102 holds 16 inputs. Similar to the output queue 74, the recycling queue 9J is constructed to have an input data path and an output path. Enter the data path, or write to the side 100, to allow the Yuan Chong manager 72 to put the data frame pointer into the recycle queue 98. The output path, or the read side 1 0 2, allows the yuan punch manager 7 2 to read the data frame index and send all the relevant yuan punches back to the free buffer slot 104. The external dimensions of this paper are applicable to the Chinese National Cricket (rNS) Λ4 specification (210X297 male feet) 36 91469 A7 ', ___B7 V. Description of the invention (37) Recycle queue overflow area provided in memory 3 6 1 2 2 series Provides additional storage for data frame indicators. (Please read the precautions on the back before filling in this page) When the data frame indicator is written into the empty recycle queue 98, it is transferred from the writing side 1 0 0 to the reading side 1 0 2 until the fetching side 1 0 2 is full. Put the extra data frame index that has been written into the write side 100 of the recycle queue 98 into the recycle queue overflow area 1 2 2 in the external memory 36. Once the collection side 10 2 of the recycling queue 9 8 and its overflow area 1 2 2 are full, the data frame indicators that have been put into the recycling queue 9 8 will begin to fill the writing side 1 0 0. Figure 11 of the Consumer Consumption Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs illustrates the internal structure of the free balance slot 104 of the embodiment example. The idle slot 104 is a FIFO, which contains address pointers to all the free buffers 140 in the external memory 36. When the data frame is received, the buffer manager 72 obtains the available address index K from the free slot 104 and stores the input data. The buffer manager 72 also obtains available address indicators from the free buffer slot 104 to the host processor 28 (when needed). The host can request or send back the address index to the space buffer slot 104 by fetching or writing the free memory slot register located between the registers 60 through the direct input data / output space. The writer side 106 and the read side 108 of the idle slot 104 each hold 64 input data in the exemplary embodiment of the present invention. The free buffer slot 104 is constructed to have an input path and an output path (similar to the output queue 74). Entering the path, or writing 嗰 10 6, allows the yuan punch manager 72 or the host 28 to put the address pointer into the free punch slot 104. The output path of free slot 1 104, or read side 1 0 8, allows Yuan punch manager 7 2 to provide the address index to host 2 8 or take it out of slot 1 0 4 for storing the received Address indicators for data frame data. Provided in the external memory 3 6 The paper size is applicable to China National Standard Net (CNS) Λ4 specification (210 X 297 mm) 37 9 1469 A7, 1 __B7_ V. Description of the invention (38) is the available address The extra storage area for the indicator is used to flush the overflow area 1220, as previously described. When the female switching device 12 is started, the free buffer slot 104 generates an address index from the reading side 108. After the data frame is entered, the space table in the empty reading slot 104 is read. If there are not enough element indicators on the write side 106 to handle communication commands, accessing the overflow area of 120 K will get more element indicators. Certain embodiments of the present invention provide advantageous configurations and methods that can provide a buffer index when the switching device 12 is activated. When the switching device 12 is first started, the overflow area 120 in the external memory 36 is not required to accommodate the buffer index. In contrast, the Yuan Chong indicator is dynamically generated. At start-up, the switching device 12 may generate a yuan indicator and place it in the overflow area 120, but there may be 16,000 or 32,000 such indicators, and this will slow down the startup process of the switching device 12. The present invention takes advantage of the fact that all element punches are spatial at start-up, and the identification of these element punches is known. Therefore, the buffer indicators are generated using counter 180 when they are needed after startup, as shown in Figure 10. The space table count generator 180 is an input connected to the multiplexer 182. Printed by the Bebe Consumer Cooperative of the Central Bureau of Standards of Didi (please read the precautions on the back before filling this page). The idle table in Space Yuan Slot 1.0 4 is empty at startup, so the idle table counts. The device 180 generates a yuan punch indicator. Once the idle expression reaches the highest count value, no element indicator will be generated. When the switching device 12 receives the data frame packet, it divides the data frame packet into a fixed-length buffer. Basically, the size of the data frame is variable. The size of the yuan punch is 2 56 bytes and the data part of the yuan punch is 2 40 bytes. After the content of the buffer is transmitted, put the indicator of the yuan punch into the recycling queue. The paper size applies to the Chinese national standard (CNS) MiAM · (210 X297 ^ # ·) '38 91469 A7 _____________B7 V. Description of the invention (39 ) 98, or if the yuan punch link can be moved, you can directly put the free time slot 104 free slot. During the operation of the switching device 12, any address index returned to the idle slot 104 is transferred from the writing side 106 to the reading side 108. If the reading side 1 0 8 is full, an additional address index is transferred to the overflow area 1 2 0. Once the read side 108 and overflow area 120 are full, the extra address index of the free slot 100 104 will start to fill the write side 106 of slot 104. Fig. 13 is an explanatory diagram showing the internal configuration of the multi-copy fast flash memory 96 according to the embodiment of the present invention. As discussed briefly previously, the chronological order of inputting the input data of the multi-copy fast memory storage 96 is fixed. In the present invention, the maintenance of the time sequence is not performed by time sampling as in the prior art, but by the actual sequence in the memory. At the same time, the multi-copy fast flash memory 96 of the present invention can avoid the use of valid bits, but instead encode the validity, as will be discussed later. Printed by the Consumer Standards Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling in this page). Refer to Figure 13 and use the multi-copy fast element storage 9 (the 5 construction is used as the memory for the four-way setting association) The input data of the input multi-copy fast buffer memory 9 6 includes the data frame index and its number of copies, as explained previously. The lowest 6 bits of the data frame index determine the setting association memory 96. This input is stored. Columns of personal data. In the illustrative embodiment of the present invention, the flash buffer memory 96 has 64 columns, although if the flash memory is made larger, it will not limit the use of other numbers of columns. \ Will The quick punch storage 96 for setting association is divided into four positions, and each of them can be searched in parallel. When the input data of the punch punch manager 72 is stored in the quick punch storage 96, this input data is usually input First, the top (5 1: 3 9) bit of the row indicated by the lowest 6 bits of the data frame index
本紙張尺度诮用中國國家標跨.((、叫八4祕(210'乂297公釐) ~ Q -, , Q A 7 , ' _________B7_五、發明説明(4〇 )。當誚取此列時,將所有的輸入資料向右移13位元,然後再 寫回此列。最後真正寫入快速緩衝儲存器9 6的輸入資料包 高 最 的 標 指 框 料 資 之 記 標 址 位之 成關 形有 含標 數 本 副 元 位 指 框 料 資 與 和9 ,ίι器 元存 位儲 ij- ff 媛 be s 快 從 當 入 輸 取 謓 遵 快 引 索 和 記 標 址 位 有 具 標 指 框 料 資 之 成 形 新 重 時 料 資 料 資 入 輸 的 舊 最 中 6 9 器 存 儲 〇 衝 元鍰 位速 的快 數將 V HU 罚 貝 之滿 8 J 9 已 器列 存如 儲假 9 媛 如標 。 指 列框 此料 入資 寫之 料除 資移 入已 輸與 的將 新 將 並 除 移14 96頭 器標 存器 儲衝 衝媛 緩對 速針 快前 從先 明 說 之 指 3 器 所體存 標憶儲 指記衝 框部緩 料外速 資在快 除存本 移儲副 已b,多 由3Jt於 因 中。用 體。係 憶2Φ0) 記1414 部頭器 外標衝 入器緩 寫衝 , 數媛 本之框 副框料 的料資 關資的 有示中 即 器 存 儲 權 媛 逋 快 用 聯 孩 定 設 〇 在 區為 位 一 溢之 之性 數特 本利 副有 存明 儲發 為本 做 6 9 I 理 管 器 衝 媛 (請先閲請背面之注意事項再填寫本頁) 緩 速 快 從 料 資 阵入 00輸 00此 為將 數且 本並 副效 當有 。 再 元不 位料 效資 有入 的輸 立 此 獨道 無知 ί 2 中 7 9 器 經濟部中央標準局—工消費合作社印製 明速 發快 本常 〇 非 構行 結執 之許 器允 存其 儲為 衝點 緩優 速個 快一 化另 簡的 6 此 9 〇 器 除存 移儲 96衝 器媛 存速 儲 快 衝 之 那 的 定 決 經 已 標 指 框 料 資 之 尋出 搜 退 的 9 器 理 管 器 8 媛 為 因 料 資 入 輸 列 佇 本 副 多 從 由 査 檢 要 需 僅 的 中 列 査 檢 行 平 ο 設通 通ni 四 是 為 Μ 的可 述體 ^0 所記 然此。 雖因圍 0 ,範 ® f之 速ί Μ 的丨發 做 尋 — 本 僅 搜 移 昇. 偏 但 提 ,會 更體不 , 憶 且 記用 用聯 聯關 _ ί疋 4 定 設 中 器 存 儲 媛 遴 快 由 藉 明 發 本 解 了 可 明 說 的 述 上 從 本紙張尺度適用中國國家標率(CNS ) Λ4現格(2丨0Χ297公釐) 40 91469 A7 B7 經濟部中央標準局負工消费合作社印製 五、發明説明 ( 41 ) 1 I Μ 列 為 基 本 的 輸 入 資 料 實 體 定 位 而 維 護 快 速 緩 衝 儲 存 器 輸 1 1 I 入 資 料 的 時 間 順 序 (年龄) 〇 換 句 話 說 ,在杉 之速媛衝儲存器 1 1 中 輸 入 資 料 之 實 體 定 位 為 輸 入 資 料 之 相 關 年 舲 的 指 示 〇 由 1 1 請 1 I 將 記 憶 體 中 的 輸 入 資 料 實 質 的 重 新 排 列 可 執 行 輸 入 資 料 的 先 閲 1 | 讀 1 老 化 0 背 1 1 之 1 本 發 明 的 特 定 實 施 例 提 供 由 交 換 裝 置 1 2在 通 訊 埠 上 Μ 注 意 古 1 I 璋 為 基 準 交 換 之 資 料 框 的 等 待 時 間 客 戶 化 〇 參 考 第 14 圖 9 事 項 1 再 填 埠 向 量 FIFO 70檢査接收埠之已規劃交換模式K便決定何 寫 本 裝 I 時 可 將 資 枓 框 指 標 和 相 關 訊 息 放 入 傳 輸 埠 的 適 當 輸 出 佇 列 頁 V__^ 1 74 0 就 第 一 模 式 而 —^— (低等待時間模式),埠向量F IF0 70沒 1 1 有 限 制 何 時 可 將 資 料 框 指 標 放 入 輸 出 佇 列 74 〇 就 第 二 模 式 1 1 而 言 (中等待時間橫式) ,埠向量F IF0 70 僅 在 接 收 資 料 框 64 訂 I 位 元 組 之 後 才 將 資 料 框 指 標 放 入 輸 出 佇 列 74 〇 就 第 三 横 式 1 I 而 -A-. (高等待時間模式),埤向量F IF0 70在 完 全 接 收 資 料 框 1 1 I 之 後 才 可 將 資 枓 框 指 標 放 入 輸 出 佇 列 74 0 1 土 有 一 些 特 殊 狀 況 可 改 變 埠 向 量 FIFO 7 0將資料框指標 1 傳 給 輸 出 佇 列 7 4的 時 序 1) 資 料 框 從 第 一 或 第 二 橫 式 的 1 1 10 M/bp s璋傳送到1 00 M/b P s 埠 ;2 )資料框係送到管理埠3 0 1 1 和 3) 資 料 框 係 送 到 擴 充 匯 流 排 通 訊 埠 〇 在 狀 況 1) 中 ,因從 1 | 10 M/b P s 埠到] 00 M/b P s 埠 的 速 率 不 配 八 迫 使 其 傳 送 模 式 1 I 變 成 第 三 種 ,高等ί 寺時間模式 。在狀況2 )中, 送 到 管 理 埤 30 1 1 | 的 所 有 資 料 框 為 第 三 模 式 資 料 框 0 在 狀 況 3) 中 ,任何送到 1 1 1 擴 充 匯 流 排 通 訊 埠 之 資 料 框 使 用 擴 充 匯 流 排 通 訊 埠 26之 交 1 1 換 模 式 0 當 多 副 本 埠 向 量 包 含 這 些 特 例 通 訊 埠 中 的 任 一 個 1 本紙張尺度適用中國國家標埤(ΓΝ;? ) Λ4規格(210X297公釐) 41 91469 Α7 Β7 五、發明説明(42) 時,用於整個埠向量之資料框指標的排序變成在埠向量中 代義最長等待時間之交換模式的那一個。舉例而言,假如 由第一 @第二模式通訊埠所接收之資料框,其多副本傳送 埠向量包含管理璋30,則其交換模式為第三模式。在此狀 況下,資料框指標的副本僅在已完全接收資料框之後才放 入所有的輸出庁列74中。 現將更詳细地描述交換模式。應用在輸入埠(即,接收 )的交換模式決定傅送的等待時間(一旦其開始接收資料框 ,交換裝置12多快會將送出資料框),和降低對輸出埠的片 段/錯誤傳輸的能力。第二,中等待時間模式是每個通訊埠 的預設值;然而,交換模式在暫存器60中可以埠為單位規劃 之。 經濟部中央標準局貝工消費合作社印聚 (請先閱讀背面之注意事項再填寫本頁) 在所有此三種模式中,在內部MAC埠之接收FIFO 52中 所接收之資料框資料將儘快地送到外部記憶體5 2中之緩衝 器1 4 0。在大約相同的時間,規則檢驗器4 2或5 8接收目的地 位址和來源地位址、接收埠數量、資料框指標和某些額外 的訊息,然後執行適當的査詢。一旦査詢結束,規則檢驗器 42或58送回資枓框指標並且將傳送埠向量送到埠向量FIFO 70 〇 埠向量FIFO 70為埠向量中已標示乏輸出埤將資料框 指標放入輸出佇列7 4的寫入側7 6。接收埠的交換模式定義 當埠向量F I F 0 7 0接收埠向量(和資料框指標)和將資料框 指標放入輸出佇列7 4之間的等待時間。將在下文中描述此 三種模式。一旦將資料框指標傳送到輸出佇列7 4的謓取側 本紙張尺度適用中國國家標準(CNS ) ΛΟΙ格(2丨0X 297公釐) 42 91469 經濟部中央標準局貝工消費合作社印製 A7 , ' ____B7 五、發明説明(43) 78,緵衝器管理器72謓取資料框指標且預定傳輸時間。媛 衝器管理器7 2開始從由資料框指標所指定的位址將資料框 資料移fe。一旦M A C埠的傳輸F I F 0 5 4已經在其起點準備好 (且假設可獲得用於資料傳輸之媒體),則開始資料框傳輸。 將第一模式設計成可提供最少的等待時間。Μ線速率 來接收和傳送資料框。在此第一模式中,沒有網路錯誤保 護,因為在決定資料框是否為片段(即,長度<64位元組)或 包含 CRC錯誤之前,此資料框即排序要傳輸。在第一横式 中,在輸出埠資料框傳輸開始之前,可能尚未完成資料框接 收。假如接收資料框因短缺或因具有無效CRC而終止,則接 收MAC為在外部記憶體36中之媛衝器標頭142做表示這些 狀況的標誌。傳輸MAC保證假如傳輸已從某個稍後將因短 缺或因具有無效CRC而終止的資料框開始,則MAC將產生壞 的 CRC。假如傳輸MAC尚未開始資料框的傳輸,且媛衝器標 頭142中顯示資料框因短缺或因具有無效CRC而終止,則媛 衝器管理器7 2不會將資料框送到輸出埠。 第二横式為傳輸資料框提供低等待時間及一些網路錯 誤保護。資料框是在已接收64或更多位元組之後才接收或 傳送。此使得交換装置12可過濾(即,不傳送)資料框的片 段;然而,其並無法完全將大於64位元組tCRC錯誤資料框 過瀘。 在第二模式中,將在接收MAC中達64位元組臨界值之資 料框的資料框指標排序送到適當的輸出佇列7 4。將無法達 到最小臨界值64位元組之資料框刪除,且不將他們的資 (請先閲讀背面之注意事項再填寫本頁)The dimensions of this paper are based on Chinese national standards. ((, Called the 8th secret (210 '乂 297mm) ~ Q-,, QA 7,' _________B7_ V. Description of the invention (4〇). When this column is taken At the time, all input data is shifted to the right by 13 bits, and then written back to this column. Finally, the input data packet that is actually written into the fast buffer memory 9 6 is the highest mark frame material. The key shape has the index number of the deputy meta-finger reference frame materials and the 9 and the liter device storage location ij-ff yuan be s quickly from the input when the input, follow the fast indexing and mark the location with a designated index The formation of the frame material is new and the old material is entered. The oldest and the most medium are stored in the oldest 6 9 machine. 0 The fast number of the rush rate will be V HU. The full value of the penalty is 8 J 9. It is listed as a storage holiday. 9 Yuan Ru Instruction box This material is written into the material. In addition to the capital, the capital will be transferred to the already lost. The new 96 will be removed and the storage will be stored. Depositing and recalling the deposit refers to the storage of the slow-moving material in the red part of the red box. In the use of the body. Department of memory 2Φ0) Note 1414 heads external standard punching device slow write punching, the number of frames and sub-frame materials of the materials and materials are displayed in the display, that is, the storage of Quan Yuan 逋 Quickly use the child Set 〇 In the district is a bit of overflowing nature, special interest, deputy deposit, storage and distribution 6 9 I manager Okimoto (please read the precautions on the back before filling this page) Slow and fast Entering 00 from material resources and entering 00 is a cost-effective and cost-effective solution. It is ignorant if you do not have access to materials and resources. 2 Central 7 9 Central Bureau of Standards, Ministry of Economic Affairs-Industrial Consumption Cooperatives print out fast-sending, fast-changing books. Non-structural execution permits are allowed to store their deposits as red dots. The speed is reduced and the speed is simplified. 6 This 9 writers are stored and moved to 96 stores. The decision to store the quick red has been marked by the search and return of 9 pieces of materials and management 8 pieces of materials for the input and output of materials due to the input of materials.平 ο Let 通通 ni 四 be remembered by the descriptive body ^ 0 of M. Although Surrounding 0, Fan® f the speed of Μ's 丨 do search-the book is only searched and moved up. Partial but mention, it will be more subtle, remember and remember to use lianlianguan _ 定 4 set in the storage device Quickly publish this book by Ming Ming to explain the descriptive description. From this paper scale, China National Standard (CNS) is applied. Λ4 is present (2 丨 0 × 297 mm) 40 91469 A7 B7 Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives V. Description of the Invention (41) 1 I Μ is listed as the basic input data entity positioning and maintains the fast buffer memory. 1 1 I The time sequence of input data (age). The physical positioning of the input data in 1 is an indication of the relevant year of the input data. ○ 1 1 Please 1 I substantially rearrange the input data in the memory. The first read of the input data can be performed. 1 Read 1 aging 0 Back 1 1 Of 1 The specific embodiment of the present invention provides that the switching device 12 can be customized on the communication port. Note that the waiting time of the data frame exchanged as a reference is customized. Refer to FIG. 14 Figure 9. Item 1 Refill the port vector FIFO 70 to check the receiving port The planned exchange mode K will determine how to write this package. The information frame indicators and related information can be placed in the appropriate output of the transmission port. Page V __ ^ 1 74 0 For the first mode, — ^ — (low latency mode ), The port vector F IF0 70 does not have 1 1 There is a limit on when the data frame indicator can be placed in the output queue 74 〇 As far as the second mode 1 1 (medium waiting time horizontal), the port vector F IF0 70 is only receiving data Box 64 puts the data frame indicator into the output queue after ordering I bytes. 〇 In the third horizontal form 1 I and -A-. (High wait time mode), the unitary vector F IF0 70 is in the fully received data frame 1. 1 I can only put the asset box indicator into the output queue 7 4 0 1 There are some special conditions that can change the port vector FIFO 7 0 Pass the data frame index 1 to the output queue 7 4 Timing 1) The data frame is from the first or second horizontal 1 1 10 M / bp s 璋Send to 100 M / b P s port; 2) Data frame is sent to management port 3 0 1 1 and 3) Data frame is sent to expansion bus communication port 0 In condition 1), since 1 | 10 M / b P s port to] 00 M / b P s port with an unmatched rate of eight forces its transmission mode 1 I to become the third, higher 时间 temple time mode. In condition 2), all data frames sent to management 埤 30 1 1 | are the third mode data frame 0. In condition 3), any data frame sent to the 1 1 1 expansion bus communication port uses the expansion bus communication At the turn of port 26 1 1 Change mode 0 When the multi-copy port vector contains any of these special communication ports 1 This paper size is applicable to the Chinese national standard (ΓΝ;?) Λ4 specification (210X297 mm) 41 91469 Α7 Β7 V. In the description of the invention (42), the ordering of the data frame indexes for the entire port vector becomes the one that exchanges the longest waiting time in the port vector. For example, if the data frame received by the first @second mode communication port and its multi-copy transmission port vector contains management 璋 30, its exchange mode is the third mode. In this case, a copy of the data frame indicator is placed in all output queues 74 only after the data frame has been completely received. The exchange mode will now be described in more detail. The switching mode applied on the input port (ie, receiving) determines the waiting time of the sender (once it starts receiving data frames, how quickly the switching device will send the data frame), and reduces the ability to fragment / error transmit to the output port . Second, the middle latency mode is the default value for each communication port; however, the exchange mode can be planned in the register 60 in units of ports. Printed by the Central Standards Bureau of the Ministry of Economic Affairs of the Bayer Consumer Cooperative (please read the precautions on the back before filling out this page) In all three modes, the data frame data received in the receive FIFO 52 of the internal MAC port will be sent as soon as possible Go to buffer 1 4 0 in external memory 52. At about the same time, the rule checker 4 2 or 5 8 receives the destination address and source address, the number of receiving ports, data frame indicators, and some additional information, and then performs the appropriate query. Once the query is completed, the rule checker 42 or 58 returns the data frame indicator and sends the transmission port vector to the port vector FIFO 70. The port vector FIFO 70 is the lack of output in the port vector. Put the data frame indicator into the output queue. 7 4 of the write side 7 6. Definition of the exchange mode of the receiving port The waiting time between the port vector F I F 0 7 0 receiving port vector (and data frame indicator) and putting the data frame indicator into the output queue 7 4. These three modes will be described below. Once the data frame index is transmitted to the output side of the output queue 7 4 The paper size is applicable to the Chinese National Standard (CNS) ΛΟΙ grid (2 丨 0X 297 mm) 42 91469 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs , '____B7 V. Description of the invention (43) 78, the punch manager 72 captures the data frame indicators and schedules the transmission time. Yuan The punch manager 72 starts to move the data frame data from the address specified by the data frame pointer. Once the transmission of the M A C port F I F 0 5 4 is ready at its starting point (and assuming media for data transmission is available), the data frame transmission is started. The first mode is designed to provide the least waiting time. M line rate to receive and transmit data frames. In this first mode, there is no network error protection, because the data frame is sorted for transmission before deciding whether the data frame is a fragment (ie, length < 64 bytes) or contains a CRC error. In the first horizontal mode, the data frame reception may not be completed before the output port data frame transmission starts. If the receiving data frame is terminated due to a shortage or due to an invalid CRC, the receiving MAC flags these conditions as the header header 142 in the external memory 36. The transmission MAC guarantees that the MAC will generate a bad CRC if the transmission has begun with a data frame that will be terminated later due to a shortage or due to an invalid CRC. If the transmission of the data frame has not yet started in the transmission MAC, and the data frame shown in the header of header element 142 is terminated due to a shortage or has an invalid CRC, the element manager 72 will not send the frame to the output port. The second horizontal mode provides low latency and some network error protection for transmitting data frames. A data frame is received or transmitted after 64 or more bytes have been received. This allows the switching device 12 to filter (i.e., not transmit) fragments of the data frame; however, it cannot completely oversize the 64-byte tCRC error data frame. In the second mode, the data frame index of the data frame that reaches the 64-byte threshold in the receiving MAC is sorted and sent to the appropriate output queue 7 4. Delete the data frames that cannot reach the minimum threshold of 64 bytes, and do not delete their data (please read the precautions on the back before filling this page)
、1T ΙΘ. 本紙張尺度適用中國國家標準(CNS > Λ4規格(210X 297公釐) 43 9 1469 A7 … __^B7__ 五、發明説明(44) 料框指標放人輸出佇列74。假如大於或等於64位元組之接 收資料框因具有無效C R C而終止,則接收M A C為外部記憶體 3 6中之_衝器標頭1 4 2標示表示這狀況的標誌。假如大於 或等於6 4位元組之資料框已開始傳輸,但其稍後將因具有 無效 C R C而終止,則傳輸M A C將完成此具有壞的C R C的傳輸 。假如傳輸MAC尚未開始資料框傳輸,且緩衝器標頭142中 顯示資料框(大於或等於64位元組)因具有無效CRC而終止, 則媛衝器管理器7 2將資料框指標送回回收佇列9 8 (對單副 本傳送)或多副本快速緩衝儲存器9 6 (對多副本傳送)而不 送到輸出埠7 4。 經濟.邓中央標準局員工消費合作社印家 (請先閱讀背面之注意事項再填寫本頁) 第三模式為儲存且傳送模式,其在此三種模式中提供 最高階的網路錯誤保護,但卻具有最長的傳送等待時間。 在交換裝置12將其傳送到輸出埠之前將資料框完全接收。 在此模式中,交換裝置12在傳送之前將所有片段和錯誤CRC 資料框隔開。在第三模式中,一旦有效資料框(即,具有有 效C R C且大於或等於6 4位元組)在接收端已成功地完成,則 將資料框指標排序送到適當的輸出佇列7 4。將因接收錯誤 (無效 CRC,短缺(>64位元組)等)而終止之資料框刪除,且 不將其資料框指標放入輸出佇列74中。 不管接收埠所選擇之模式及已接收泛資料量為何,埠 向量FIFO 70決定是否將璋向量放入輸出佇列74。在上述 之實施例中,其有三個臨界值,雖然在其他實施例中他們是 不同的臨界值。在實施例範例中,這些臨界值為1)接收η位 元組(例,6位元組)其中η〈 6 4位元組;2 )接收6 4位元組;和3 ) 本紙張尺度適用中國國家標準((’NS Μ4規格(210X 297公犛) ~~ 7~7Γ^ 44 91469 Α7 Β7 五、發明説明(45) 接收所有的資料框。 本發明依據臨界值來傳送資料框到輸出佇列7 4。埠向 量F I F 0; 7 0依據所接收資料的型式數量和此埠所規劃的模 式而重新排列傳輸的順序。雖然實施例範例依據所接收資 料的數量來做傳送的決定,本發明的其他實施例則依據其 他的因素,譬如接收資料之型式,來做傳送的決定。 在實現本發明之傳送計劃中,媛衝器管理器72維護在 快速鍰衝儲存記憶體(CAM)161中的表160,其建立資料框指 標和接收埠間的關連。每次埠向量FIFO 70從規則檢驗器 42或58收到新的埠向量和資料框指標,其進行關連K便決 定是否接收埠已完成資料框的接收,如果沒有,則判斷有多 少的資料框已經被接收。埤向量F I F 0 7 0並沒有從規則檢 驗器42或58收到任何有關接收埠辨識之訊息。埠向量所收 到之提供任何埠辨識用之訊息為資料框指標。 經濟部中央標準局貝工消費合作社印製 (請先閱讀背面之注意事項再填寫本頁) 埠向量FIFO 70用資料框指標質問位址表160。假如仍 在接收此資料框則將位址表退回接收埠,或位址表160無法 找到資料框指標,這表示已經收到此資料框。一旦資料框 已完全接收,則將資料框指標移出位址表160。此意謂其已 達到第三臨界值(資料框完成)。因此,可立刻將資料框指 .標放入輸出佇列7 4中。 、 假如位址表160已退回接收埠,則埠向量FIFO 70將資 料框指標和相關訊息放入保持區1 6 2 ,並開始從接收埠追蹤 二個訊號。這二訊號用旗標為此三事件中任一件做信號。 當埠接收到η位元組則用旗標為第一事件做信號。在那點, 本紙張尺度適用中國國家標埤.(CNS ) Λ4说格(2!ΟΧ297公釐) 45 9 1469 A7 B7 經漪部中央標隼局貝工消費合作社印製 五、發明説明 ( 46 ) 1 I 假 如 那 個 埠 是 在 第 一 横 式 中 ,則埠向量F I F0 7 0 藉 由 將 其 送 1 1 I 到 適 當 的 輸 出 佇 列 74 而 開 始 處 理 資 料 框 指 標 〇 假 如 接 收 埠 1 1 I 不 是 在 第 —- 模 式 中 ,則埠向量F IF0 70等 待 直 到 其 收 到 表 示 —V 1 1 請 1 I 第 二 事 件 發 生 的 訊 0 假 如 此 埠 是 在 第 二 模 式 中 ,則埠向 先 閱 1 I 1 | 量 FIFO 70將資料框指標從保持區1 62 釋 放 Μ 便 進 入 適 當 的 背 1¾ 1 I 之 1 輸 出 佇 列 7 4 0 最 後 9 假 如 接 收 埠 是 在 第 三 模 式 中 ,則埠向 注 意 審 1 I 量 F I F0 7 0等待接收表示資料框已完成的旗標c 每個接收 甲 項 再> 1 裝 堉 (第1 4圖參參考數字1 64 )維護此旗標, 且 將 此 訊 息 提 供 給 % ▲ 頁 1 埠 向 量 F I F0 7 0 ( 由埠向量F IF0 70決 定 掸 與 資 料 框 指 標 的 '—- 1 | 關 聯 0 埠 向 量 F IF0 70 維 護 用 於 確 認 每 個 通 訊 埠 所 持 有 之 1 1 模 式 的 訊 息 〇 總 而 ·* — 之 9 -旦收到資料框指標, 埠 向 量 FIFO 1 1 70 先 質 問 媛 衝 器 管 理 器 72 之 決 定 接 收 堉 的 位 址 表 160 , 為 此 訂 1 接 收 埠 決 定 模 式 ,然後從接收璋追蹤旗標, 並 且 依 據 模 式 和 i 1 旗 標 釋 放 資 料 框 指 標 0 1 1 本 發 明 之 佇 列 結 構 已 Μ 併 入 多 撺 交 換 裝 置 為 例 作 了 說 «cindL 明 0 肤 而 本 發 明 之 佇 列 結 構 和 方 法 可 應 用 到 其 他 型 式 技 1 1 術 中 很 顯 然 的 可 應 用 到 此 技 藝 之 般 技 術 中 0 舉 例 而 言 1 1 9 此 佇 列 結 構 可 用 到 微 處 理 器 或 其 他 的 在 晶 片 上 佇 列 的 1 1 數 位 處 理 器 0 因 此 本 發 明 並 不 限 於 用 於 如 上 述 說 明 之 多 1 1 .埠 交 換 機 0 1 1 1 雖 然 已 經 詳 细 說 明 和 描 述 本 發 明 ,但是可很清楚地了 1 I 解 其 僅 是 做 為 說 明 和 舉 例 用 而 不 是 做 為 限 制 用 ,本發明的 1 1 I 精 神 和 巨 的 僅 受 所 附 串 請 專 利 範 圍 的 限 制 0 1 1 1 1 本紙張尺度诮用中國國家榡爷(CNS ) Λ4規格(210X 297公釐) 46 91469, 1T ΙΘ. This paper size applies to the Chinese national standard (CNS > Λ4 size (210X 297mm) 43 9 1469 A7… __ ^ B7__ V. Description of the invention (44) The material frame index is put in the output queue 74. If it is greater than 74 Or the receiving data frame of 64 bytes is terminated due to invalid CRC, then the receiving MAC is the _ punch header 1 4 2 in the external memory 36, which indicates the status of this condition. If it is greater than or equal to 64 bits The data frame of the tuple has begun to be transmitted, but it will be terminated later with an invalid CRC, and the transmission MAC will complete the transmission with the bad CRC. If the transmission MAC has not started the data frame transmission, and the buffer header 142 Displaying a data frame (greater than or equal to 64 bytes) is terminated due to an invalid CRC, the Yuan punch manager 7 2 will return the data frame index to the recycle queue 9 8 (for single copy transmission) or multiple copy fast buffer storage Device 9 6 (transmission to multiple copies) instead of output port 7. 4. Economy. Deng Central Standards Bureau staff consumer cooperatives Yin Jia (Please read the precautions on the back before filling this page) The third mode is storage and transmission mode Which is here This mode provides the highest level of network error protection but has the longest transmission latency. The data frame is fully received before the switching device 12 sends it to the output port. In this mode, the switching device 12 will All fragments are separated from the erroneous CRC data frame. In the third mode, once the valid data frame (ie, with a valid CRC and greater than or equal to 64 bytes) has been successfully completed at the receiving end, the data frame indicators are sorted Send to the appropriate output queue 7 4. Delete the data frame that was terminated due to a reception error (invalid CRC, shortage (> 64 bytes), etc.), and do not put its data frame indicator in the output queue 74 Regardless of the mode selected by the receiving port and the amount of data received, the port vector FIFO 70 determines whether to place the unitary vector into the output queue 74. In the above embodiment, it has three critical values, although in other embodiments, They are different threshold values. In the example of the embodiment, these threshold values are 1) receiving n bytes (eg, 6 bytes) where n <64 bytes; 2) receiving 64 bytes ; And 3) this paper The scale is applicable to Chinese national standards ('NS Μ4 specification (210X 297 cm) ~~ 7 ~ 7Γ ^ 44 91469 Α7 Β7 V. Description of the invention (45) Receive all data frames. The present invention transmits data frames to the threshold value Output queue 7 4. The port vector FIF 0; 7 0 rearranges the transmission order according to the number of types of data received and the mode planned by this port. Although the example of the embodiment makes a transmission decision based on the amount of data received, Other embodiments of the present invention make a transmission decision based on other factors, such as the type of data received. In implementing the transmission plan of the present invention, the yuan punch manager 72 maintains a table 160 in the fast flash storage memory (CAM) 161, which establishes the association between the data frame index and the receiving port. Each time the port vector FIFO 70 receives a new port vector and data frame indicator from the rule checker 42 or 58, and it makes a connection K to determine whether the receiving port has completed receiving the data frame. If not, it determines how many data frames Has been received. The unitary vector F I F 0 7 0 did not receive any information about the identification of the receiving port from the rule checker 42 or 58. The information received by the port vector to provide any port identification is a data frame indicator. Printed by Shellfish Consumer Cooperative of Central Bureau of Standards of the Ministry of Economic Affairs (please read the precautions on the back before filling this page). Port vector FIFO 70 uses data frame indicators to challenge the address table 160. If the data frame is still being received, the address table is returned to the receiving port, or the address table 160 cannot find the data frame indicator, which indicates that the data frame has been received. Once the data frame has been completely received, the data frame pointer is moved out of the address table 160. This means that it has reached the third threshold (data frame completion). Therefore, the data frame index can be immediately placed in the output queue 74. If the address table 160 has been returned to the receiving port, the port vector FIFO 70 puts the data frame index and related information into the holding area 16 2 and starts tracking two signals from the receiving port. These two signals are flagged to signal any of these three events. When the port receives n bytes, it uses the flag to signal the first event. At that point, this paper size applies the Chinese National Standard. (CNS) Λ4 grid (2.0 × 297 mm) 45 9 1469 A7 B7 Printed by the Shellfish Consumer Cooperative of the Central Bureau of Standards of the Ministry of Economic Affairs 5. Description of the invention (46 ) 1 I If that port is in the first horizontal mode, the port vector FI F0 7 0 starts processing the data frame index by sending it 1 1 I to the appropriate output queue 74. If the receiving port 1 1 I is not In the first mode, the port vector F IF0 70 waits until it receives the indication—V 1 1 Please 1 I The second event occurs 0. If the port is in the second mode, the port reads 1 I first 1 | Volume FIFO 70 releases the data frame pointer from the holding area 1 62 and enters the appropriate back 1 2 1 1 1 output queue 7 4 0 Last 9 If the receiving port is in the third mode, the port will pay attention to review 1 I Amount FI F 0 7 0 Waiting for reception Flag indicating that the data frame is complete c Each reception Item > 1 decoration (Refer to reference number 1 64 in Figure 14) Maintain this flag and provide this message to% ▲ Page 1 Port vector FI F0 7 0 (determined by port vector F IF0 70 and data '—- 1 of the frame index | Associate 0 port vector F IF0 70 Maintain the message for confirming the 1 1 pattern held by each communication port. 0 ·· * — of 9-Once the frame index is received, the port vector FIFO 1 1 70 first asks the address manager 160 of the receiver manager 72 to determine the address of the receiver, and sets the 1 receiver port determination mode, and then traces the flag from the receiver, and releases the data frame according to the mode and the i 1 flag. Index 0 1 1 The queue structure of the present invention has been incorporated into a multi-swap exchange device as an example. It is described as «cindL Ming 0 skin, and the queue structure and method of the present invention can be applied to other types of technology. Technology applied to this skill Medium 0 For example 1 1 9 This queue structure can be used by a microprocessor or other 1 1 digital processors queued on a chip. Therefore, the present invention is not limited to use as many 1 1 .port switches as described above. 0 1 1 1 Although the present invention has been illustrated and described in detail, it is clear that the 1 I solution is for illustration and example only and not for limitation. The 1 1 I Limited by the scope of the attached patents 0 1 1 1 1 This paper size uses China National Grandpa (CNS) Λ4 size (210X 297 mm) 46 91469
Claims (1)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US99387997A | 1997-12-18 | 1997-12-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
TW381223B true TW381223B (en) | 2000-02-01 |
Family
ID=25540029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW87113147A TW381223B (en) | 1997-12-18 | 1998-08-11 | Split-queue architecture and method of queuing |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW381223B (en) |
-
1998
- 1998-08-11 TW TW87113147A patent/TW381223B/en not_active IP Right Cessation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW449694B (en) | Method and apparatus for transmitting multiple copies by replicating data identifiers | |
TW453080B (en) | Method and apparatus for selectively discarding packet for blocked output queues in the network switch | |
JP2002514366A (en) | Multi-copy queue structure with searchable cache area | |
EP0960536B1 (en) | Queuing structure and method for prioritization of frames in a network switch | |
JP4166285B2 (en) | Method and apparatus for reclaiming a buffer | |
US6175902B1 (en) | Method and apparatus for maintaining a time order by physical ordering in a memory | |
CN102098216B (en) | Avionics full duplex switched Ethernet (AFDX) protocol switching engine based on shared storage | |
US20060069869A1 (en) | Enqueueing entries in a packet queue referencing packets | |
TW200414719A (en) | Network switching device and network switching method | |
CN102549552A (en) | Method for processing data packets in flow-aware network nodes | |
EP0960505B1 (en) | Method and apparatus for controlling initiation of transmission of data as a function of received data | |
CN101212451B (en) | Firewall chip data packet buffer management method | |
TW381223B (en) | Split-queue architecture and method of queuing | |
CN106101737A (en) | A kind of framing control method supporting real-time video caching multichannel to read | |
CN100531123C (en) | Method and device for converting data-packet-mode into element-frame-mode | |
JP2002513530A (en) | Split queue architecture and queue method | |
JP4452781B2 (en) | Method and apparatus for maintaining time order by physical order in memory | |
CN103634238B (en) | The switch of a kind of data monitoring supporting AFDX agreement switching engine and exchange method | |
TW522689B (en) | High speed buffer management structure and method for share memory using plural linked lists |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |