The invention relates to a method for Cache synchronous transmission based on MAC address, which comprises the following steps: first, for the source and destination hosts with the same configuration and structure of the Cache; two, the source and destination hosts initialization; three when data to be transmitted, the source host directly transmits the data to the data link layer data. The data link layer packet encapsulation into data frames, and then sent to the network; four, the destination host receives the data, unpack and processing of the data, and send feedback to the source host; five, the source host feedback information to judge and handle. The invention is no longer the TCP protocol and IP protocol packets, unpacking operation, saves CPU resources; no longer add TCP protocol and IP protocol headers, saves network bandwidth; through the double direct connection, reduce network delay.
【技术实现步骤摘要】
【技术保护点】
1.一种基于MAC地址传输的Cache同步方法,其特征在于,包括以下步骤:一、为源主机和目标主机配备相同配置和结构的Cache;二、当两个主机初次连接时,对源主机和目的主机初始化,使目的主机的Cache与源主机保持数据一致;三、当数据发生变化,需要向对方传输同步数据时,源主机直接将数据传送到数据链路层,数据链路层对数据进行分组封装成数据帧,每个数据帧中加入源主机和目的主机的MAC地址、数据长度、检验位以及位置标识项,然后由物理层将其转换为可供传输的比特流,并向网络发送;四、目的主机接收到数据后,对数据进行解包,提取其中的MAC地址,如果目的主机MAC地址和自己的MAC地址不符,直接丢弃数据;如果相符,则对数据进行正确性判定,如果数据错误,则向源主机发回一个“重发”请求;如果数据正确,则对数据进行处理并向源主机发回一个“确认”信息;五、源主机对反馈信息进行判定,如果是“确认”信息,说明数据发送成功,源主机把该数据块相关信息从相关队列清除;如果是“重发”请求,源主机重新发送该同步数据;如果源主机在发送数据后一定时间间隔内收不到“确认”信息或“重发”请求等反馈信息,源主机自动重发该同步数据并 ...
【技术特征摘要】
【专利技术属性】
技术研发人员:刘靖宇,谭毓安,李元章,张雪兰,马忠梅,张全新,
申请(专利权)人:北京理工大学,
类型:发明
国别省市:11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。