Skip to content

Commit a5cbfe4

Browse files
committed
2021-3-23
1 parent ce521c2 commit a5cbfe4

24 files changed

+84
-3560
lines changed

_config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ netease_comment: false
7171
# ba_track_id: [your track id]
7272

7373
# Google Analytics
74-
ga_track_id: 'G-FL29Q4YZYX' # Format: UA-xxxxxx-xx
75-
ga_domain: litrane.github.io
76-
74+
#ga_track_id: 'G-FL29Q4YZYX' # Format: UA-xxxxxx-xx
75+
#ga_domain: litrane.github.io
7776

77+
ba_track_id: 88c7596000ab93c6ef6bc654ec6fd2a2
7878

7979
# Sidebar settings
8080
sidebar: true # whether or not using Sidebar.

_includes/about/zh.md

+1-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1 @@
1-
Hi,我是黄玄,前端娱乐圈 NPC,编程语言/编译器初心者,[Facebook](https://www.facebook.com/) 签约软件工程师,[广院](https://baike.baidu.com/item/%E4%B8%AD%E5%9B%BD%E4%BC%A0%E5%AA%92%E5%A4%A7%E5%AD%A6)认证数字设计师,曾被招募为阿里巴巴 · [阿里旅行(飞猪)](http://alitrip.com)· 前端工程师、微影时代 · 微票儿 · 前端基础设施工程团队负责人、[饿了么](https://ele.me/) · 大前端团队 · [PWA 顾问](https://medium.com/elemefe/upgrading-ele-me-to-progressive-web-app-2a446832e509) 等。
2-
3-
目前的物理活动范围主要在美帝硅谷,分身日常出没于[博客](https://huangxuan.me)[微博](https://weibo.com/huxpro)[知乎](https://www.zhihu.com/people/huxpro/pins/posts)[Twitter](https://twitter.com/Huxpro/)[Github](https://github.com/huxpro)[Medium](https://medium.com/@Huxpro)
4-
5-
6-
##### [我的编程语言可视化 (WIP 🚧)](https://huangxuan.me/2020/05/05/pl-chart/)
7-
8-
这个图表可视化了我对于各种编程语言的使用经历、兴趣,还附带了一些评语和解释等等。 啊我知道对比编程语言是一件很有争议的事情……自娱自乐一下!不要太较真哦 ;)
9-
10-
11-
##### 演讲与分享
12-
13-
- [Upgrading to Progressive Web Apps][9] · [JSConf CN 上海 2017](http://2017.jsconf.cn/)
14-
- Building Progressive Web Apps · [CSDI 广州 2017](http://www.csdisummit.com/)
15-
- The State of Progressive Web App · GDG IO Redux 北京 2017
16-
- 炒冷饭 · PWA 到底是个什么玩意?· Baidu HQ 北京 2017
17-
- [Service Worker 101][5] · GDG DevFest 北京 2016
18-
- [Progressive Web App,复兴序章][4] · [QCon 上海 2016](http://2016.qconshanghai.com/presentation/3111)
19-
- Progressive Web App 之我见 · GDG IO Redux 北京 2016
20-
- [CSS Still Sucks 2015][2] · 2015
21-
- [JavaScript 模块化七日谈][1] · 2015
22-
23-
[1]: //huangxuan.me/2015/07/09/js-module-7day/
24-
[2]: //huangxuan.me/2015/12/28/css-sucks-2015/
25-
[3]: //huangxuan.me/2016/06/05/pwa-in-my-pov/
26-
[4]: //huangxuan.me/2016/10/20/pwa-qcon2016/
27-
[5]: //huangxuan.me/2016/11/20/sw-101-gdgdf/
28-
[6]: https://yanshuo.io/assets/player/?deck=58ac8598b123db0067292f92 "PWA Rehashing"
29-
[7]: https://yanshuo.io/assets/player/?deck=593ad6fbfe88c2006a0a0d6d "The State of PWA"
30-
[8]: https://yanshuo.io/assets/player/?deck=594d673d570c357d0698a950 "Building PWA"
31-
[9]: //huangxuan.me/jsconfcn2017/
1+
Hi,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
layout: post
3+
title: "computer network physical layer"
4+
subtitle: "计算机网络物理层"
5+
date: 2021-03-23
6+
author: "litrane"
7+
header-img: "img/post-bg-2015.jpg"
8+
tags: [计算机网络, computer network]
9+
---
10+
11+
# 计算机网络
12+
13+
## 编码
14+
15+
曼彻斯特编码将时钟包括在数据中,两端看上生下降沿。是原始基带宽度的两倍。
16+
17+
NRZ编码不归零,正负代表01。
18+
19+
NRZI 看翻转,翻转0,不翻转1。
20+
21+
差分曼彻斯特同步编码,在曼彻斯特基础上相同是0,不同是1,抗干扰性好。
22+
23+
24+
25+
## 前缀知识
26+
27+
QAM(Quadrature Amplitude Modulation)是将数字转模拟,在模拟信号上传输。模拟信号上的传输叫**频带**传输。在数字信号上传输是 **基带**传输。
28+
29+
PCM,脉冲编码调制(Pulse Code Modulation,PCM)。音频(模拟)转数字。
30+
31+
## 电路交换、报文交换、分组交换
32+
33+
1. 电路交换延时低,无差错控制,
34+
2. 报文存储转发,延迟大,有
35+
3. 分组交换有差错控制,分组交换又分为数据报和虚电路两种。
36+
4. 虚电路数据包有顺序不是临时的,只需携带虚电路标识,数据报无顺序(散的如天女散花),不保证到达,必须携带源地址和目的地址。
37+
5. 虚电路不需要分配带宽
38+
39+
40+
## 时延计算
41+
**时延**=发送时延+传播时延
42+
43+
n个分组,m个链路(m+1个节点,m-1个路由器)
44+
45+
分组交换的时延=**n\*一个包发送时延**+(m-1)\*一个包发送时延+m\*传播时长
46+
47+
![20210323184435](https://raw.githubusercontent.com/litrane/picbase/master/pic/20210323184435.png)
48+
49+
**电路交换**=S(电路建立的时间)+x/b(发送时延)+kd(传播时延)
50+
51+
**分组交换**=p/b\*x/p+(k-1)\*p/b+kd
52+
53+
即总的发送时间+一个分组的在链路上疯狂转发需要的时间(一个以上)+传播延时
54+
55+
考虑头部则为D=[ (x/p) x (p+h) / b ]+ [(p+h) / b] x (k-1)
56+
57+
58+
![20210323190323](https://raw.githubusercontent.com/litrane/picbase/master/pic/20210323190323.png)
59+
60+
61+
## 香农定理与奈氏准则
62+
码元就是有几种信号即电平数目,信息则是二进制位表示码元,所以是log2的。
63+
64+
奈:极限速率为 2W(HZ)log2 V
65+
66+
香农: 极限速率为 W(HZ)log2(1+S/N)
67+
68+
_S/N为信噪比,而db是10\*log10(S/N)_
69+
70+
## 刷题心得
71+
72+
在计算传输速率时要考虑奈氏和香农定理的限制 **能计算时一定要计算**
73+
74+
奈氏一定要记得2.
75+
76+
一定要看清题目注意什么,忽略什么。
77+
78+

_posts/hidden/2020-05-05-pl-chart.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ tags:
1616
scrolling="no"
1717
style="width: 100%">
1818
</iframe>
19+

_posts/read_sf_lf/2019-01-03-sf-lf-03-list.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Proof.
4848
It only generate **one subgoal**, becasue
4949
> That's because natprods can only be constructed in one way.
5050
51-
5251
### My take on `destruct`
5352

5453
`destruct`
@@ -89,7 +88,7 @@ It's exactly like OCaml, even for `;`, `at level 60` means it's tightly than `+
8988
```coq
9089
Notation "x ++ y" := (app x y) (right associativity, at level 60).
9190
```
92-
91+
9392
Instead of SML/OCaml's `@`, Coq chooses Haskell's `++`.
9493

9594

0 commit comments

Comments
 (0)