wolf-bailang / CCN_For_RTS_course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content-Centric Networking(CCN)

Format definition

Route_ID = 'r0' 'r1'...
Consumer_ID = 'c0' 'c1'...
Interest_ID = 'i0' 'i1'...
Content_name = 'route_ID/0-100'. example: 'r0/0'

Global table

Network router link

Network = [['route_ID', ['route_ID', ...]], ... ]

1200 content names

Content_table = [content_name, ...]

Interest packets sent by consumer

Requerst_table = {'consumer_ID': [interest_ID, interest_ID, ...], ... }

Interest packets received by router

Interest_table = {'route_ID': [[type, interest_ID, consumer_ID, route_ID, content_name, start_time, life_time], ...], ... }

Data packets received by router

Data_table = {'route_ID': [[type, interest_ID, consumer_ID, route_ID, content_name, start_time, life_time, hop], ...], ... }

#Quene_interest = {'route_ID':[]}
#Quene_data = {'route_ID':[]}

Unique content name generated by producer

PS = {'route_ID': [content_name, ...], ... }

Cache content information in the router's' CS

CS = {'route_ID': [[content_name, cost, record_time], ...], ... }

Information recorded in the router's PIT

PIT = {'route_ID': [[content_name,[inface, ...],[outface, ...]], ...], ... }

Information recorded in the router's FIB

FIB = {'route_ID': [[content_name,[[cost, outface], ...]], ...], ... }

Table for each router

interest = [type, interest_ID, consumer_ID, route_ID, content_name, start_time, life_time]
data = [type, interest_ID, consumer_ID, route_ID, content_name, start_time, life_time, hop]
ps = [content_name, ...]
pit = [[content_name,[inface, ...],[outface, ...]], ...]
cs = [[content_name, cost, record_time], ...]
fib = [[content_name,[[cost, outface], ...]], ...]

git

添加新文件
git add PIT.py

提交版本 git commit -m "Changed some files"
git commit -a -m "Changed some files"

发布版本
git pull origin main
git push origin main

删除
git rm file

这些是各种场合常见的 Git 命令:
开始一个工作区(参见:git help tutorial)
clone 克隆一个仓库到一个新目录
init 创建一个空的 Git 仓库或重新初始化一个已存在的仓库

在当前变更上工作(参见:git help everyday)
add 添加文件内容至索引
mv 移动或重命名一个文件、目录或符号链接
reset 重置当前 HEAD 到指定状态
rm 从工作区和索引中删除文件

检查历史和状态(参见:git help revisions)
bisect 通过二分查找定位引入 bug 的提交
grep 输出和模式匹配的行
og 显示提交日志
show 显示各种类型的对象
status 显示工作区状态

扩展、标记和调校您的历史记录
branch 列出、创建或删除分支
checkout 切换分支或恢复工作区文件
commit 记录变更到仓库
diff 显示提交之间、提交和工作区之间等的差异
merge 合并两个或更多开发历史
rebase 在另一个分支上重新应用提交
tag 创建、列出、删除或校验一个 GPG 签名的标签对象

协同(参见:git help workflows)
fetch 从另外一个仓库下载对象和引用
pull 获取并整合另外的仓库或一个本地分支
push 更新远程引用和相关的对象

命令 'git help -a' 和 'git help -g' 显示可用的子命令和一些概念帮助。
查看 'git help <命令>' 或 'git help <概念>' 以获取给定子命令或概念的帮助。

About

License:Apache License 2.0


Languages

Language:Python 100.0%