HY+MAC,包括第一以太網(wǎng)芯片PHY+MAC、第二以太網(wǎng)芯片PHY+MAC、第三以太網(wǎng)芯片PHY+MAC ;步驟6、用于輸出的以太網(wǎng)芯片PHY+MAC對以太網(wǎng)數(shù)據(jù)進(jìn)行編碼后發(fā)送至相應(yīng)的以太網(wǎng)輸出收發(fā)模塊完成以太網(wǎng)報文發(fā)送,所述以太網(wǎng)輸出收發(fā)模塊包括第一以太網(wǎng)輸出收發(fā)模塊、第二以太網(wǎng)輸出收發(fā)模塊、第三以太網(wǎng)輸出收發(fā)模塊。
[0012]所述拷貝成的多路以太網(wǎng)數(shù)據(jù)為四路以太網(wǎng)數(shù)據(jù)。
[0013]所述步驟5中將多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中存儲的多路APPID完全不同的以太網(wǎng)報文發(fā)送至多路以太網(wǎng)芯片PHY+MAC采用的方式為DMA。
[0014]本發(fā)明采用的基于APPID可配置的多路以太網(wǎng)擴(kuò)展裝置,其結(jié)構(gòu)具體包括:
第一單元:以太網(wǎng)輸入收發(fā)模塊、第一以太網(wǎng)芯片PHY+MAC、接收緩沖模塊依次連接,
用于將接收到的以太網(wǎng)幀進(jìn)行以太網(wǎng)物理鏈路的數(shù)據(jù)解碼,解碼后的以太網(wǎng)數(shù)據(jù)存儲在接收緩沖模塊;
第二單元:配置以太網(wǎng)輸入收發(fā)模塊、第二以太網(wǎng)芯片PHY+MAC、多路以太網(wǎng)配置解包模塊依次相連,用于接收APPID配置指令的以太網(wǎng)報文,并完成APPID配置指令的解析,將解析后的配置指令發(fā)送給多路以太網(wǎng)修改緩沖模塊;
第三單元:包括多路以太網(wǎng)生成緩沖模塊,用于將接收緩沖模塊中的一路以太網(wǎng)數(shù)據(jù)拷貝成多路以太網(wǎng)數(shù)據(jù)并存儲在多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū);多路以太網(wǎng)修改緩沖模塊,用于根據(jù)解析后的配置指令中設(shè)置的APPID對多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中多路以太網(wǎng)報文的APPID域進(jìn)行修改,將修改后得到的多路APPID完全不同的以太網(wǎng)報文存儲在多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū);
第四單元:包括多路以太網(wǎng)發(fā)送控制模塊,所述多路以太網(wǎng)發(fā)送控制模塊分別連接多個以太網(wǎng)芯片PHY+MAC,所述以太網(wǎng)芯片PHY+MAC分別連接相應(yīng)的以太網(wǎng)輸出收發(fā)模塊,用于對以太網(wǎng)數(shù)據(jù)進(jìn)行編碼后發(fā)送至相應(yīng)的以太網(wǎng)輸出收發(fā)模塊完成以太網(wǎng)報文發(fā)送。
【主權(quán)項】
1.一種基于APPID可配置的多路以太網(wǎng)擴(kuò)展方法,其特征在于,包括以下步驟: 步驟1、采用以太網(wǎng)PHY+MAC將接收到的以太網(wǎng)幀進(jìn)行以太網(wǎng)物理鏈路的數(shù)據(jù)解碼,解碼后的以太網(wǎng)數(shù)據(jù)存儲在RAM的接收緩沖區(qū); 步驟2、將RAM接收緩沖區(qū)中的一路以太網(wǎng)數(shù)據(jù)拷貝成多路以太網(wǎng)數(shù)據(jù)并存儲在RAM的多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū); 步驟3、接收APPID配置指令的以太網(wǎng)報文,并完成APPID配置指令的解析,將解析后的配置指令發(fā)送給多路以太網(wǎng)修改緩沖模塊; 步驟4、根據(jù)解析后的配置指令中設(shè)置的APPID對多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中多路以太網(wǎng)報文的APPID域進(jìn)行修改,將修改后得到的多路APPID完全不同的以太網(wǎng)報文存儲在多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū); 步驟5、將多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中存儲的多路APPID完全不同的以太網(wǎng)報文發(fā)送至用于輸出的以太網(wǎng)芯片PHY+MAC,包括第一以太網(wǎng)芯片PHY+MAC、第二以太網(wǎng)芯片PHY+MAC、第三以太網(wǎng)芯片PHY+MAC ; 步驟6、用于輸出的以太網(wǎng)芯片PHY+MAC對以太網(wǎng)數(shù)據(jù)進(jìn)行編碼后發(fā)送至相應(yīng)的以太網(wǎng)輸出收發(fā)模塊完成以太網(wǎng)報文發(fā)送,所述以太網(wǎng)輸出收發(fā)模塊包括第一以太網(wǎng)輸出收發(fā)模塊、第二以太網(wǎng)輸出收發(fā)模塊、第三以太網(wǎng)輸出收發(fā)模塊。2.如權(quán)利要求1所述的基于APPID可配置的多路以太網(wǎng)擴(kuò)展方法,其特征在于,所述拷貝成的多路以太網(wǎng)數(shù)據(jù)為四路以太網(wǎng)數(shù)據(jù)。3.如權(quán)利要求1或2所述的基于APPID可配置的多路以太網(wǎng)擴(kuò)展方法,其特征在于,所述步驟5中將多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中存儲的多路APPID完全不同的以太網(wǎng)報文發(fā)送至多路以太網(wǎng)芯片PHY+MAC采用的方式為DMA。4.一種基于APPID可配置的多路以太網(wǎng)擴(kuò)展裝置,其特征在于,包括: 第一單元:以太網(wǎng)輸入收發(fā)模塊、第一以太網(wǎng)芯片PHY+MAC、接收緩沖模塊依次連接,用于將接收到的以太網(wǎng)幀進(jìn)行以太網(wǎng)物理鏈路的數(shù)據(jù)解碼,解碼后的以太網(wǎng)數(shù)據(jù)存儲在接收緩沖模塊; 第二單元:配置以太網(wǎng)輸入收發(fā)模塊、第二以太網(wǎng)芯片PHY+MAC、多路以太網(wǎng)配置解包模塊依次相連,用于接收APPID配置指令的以太網(wǎng)報文,并完成APPID配置指令的解析,將解析后的配置指令發(fā)送給多路以太網(wǎng)修改緩沖模塊; 第三單元:包括多路以太網(wǎng)生成緩沖模塊,用于將接收緩沖模塊中的一路以太網(wǎng)數(shù)據(jù)拷貝成多路以太網(wǎng)數(shù)據(jù)并存儲在多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū);多路以太網(wǎng)修改緩沖模塊,用于根據(jù)解析后的配置指令中設(shè)置的APPID對多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中多路以太網(wǎng)報文的APPID域進(jìn)行修改,將修改后得到的多路APPID完全不同的以太網(wǎng)報文存儲在多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū); 第四單元:包括多路以太網(wǎng)發(fā)送控制模塊,所述多路以太網(wǎng)發(fā)送控制模塊分別連接多個以太網(wǎng)芯片PHY+MAC,所述以太網(wǎng)芯片PHY+MAC分別連接相應(yīng)的以太網(wǎng)輸出收發(fā)模塊,用于對以太網(wǎng)數(shù)據(jù)進(jìn)行編碼后發(fā)送至相應(yīng)的以太網(wǎng)輸出收發(fā)模塊完成以太網(wǎng)報文發(fā)送。
【專利摘要】本發(fā)明公開了一種基于APPID可配置的多路以太網(wǎng)擴(kuò)展方法及裝置,方法為:采用以太網(wǎng)PHY+MAC將接收到的以太網(wǎng)幀進(jìn)行以太網(wǎng)物理鏈路的數(shù)據(jù)解碼;將RAM接收緩沖區(qū)中的一路以太網(wǎng)數(shù)據(jù)拷貝成多路以太網(wǎng)數(shù)據(jù)并存儲在RAM的多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū);接收APPID配置指令,并完成解析;根據(jù)解析后的配置指令中設(shè)置的APPID對多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中多路以太網(wǎng)報文的APPID域進(jìn)行修改;將多路以太網(wǎng)轉(zhuǎn)發(fā)緩沖區(qū)中存儲的多路APPID完全不同的以太網(wǎng)報文發(fā)送至用于輸出的以太網(wǎng)芯片PHY+MAC;用于輸出的以太網(wǎng)芯片PHY+MAC對以太網(wǎng)數(shù)據(jù)進(jìn)行編碼后發(fā)送至相應(yīng)的以太網(wǎng)輸出收發(fā)模塊完成以太網(wǎng)報文發(fā)送。本發(fā)明實現(xiàn)了把以太網(wǎng)數(shù)據(jù)包根據(jù)多個APPID的配置進(jìn)行重新打包后分發(fā)到以太網(wǎng)不同的硬件端口上的功能。
【IPC分類】H04L12/861, H04L12/931, H04L12/28
【公開號】CN105337825
【申請?zhí)枴緾N201510919761
【發(fā)明人】劉彥琴, 唐廣瑜, 楊紅權(quán), 陳績, 董青迅, 胡祥勝
【申請人】國網(wǎng)四川省電力公司成都供電公司, 國家電網(wǎng)公司
【公開日】2016年2月17日
【申請日】2015年12月10日