[Network]Wireless and Mobile

本文深入探讨了无线网络的基础概念,包括无线主机、基站、模式、特性和Wi-Fi标准,详细解释了基础设施模式、Ad-Hoc模式的特点,以及CDMA、Wi-Fi架构、多址接入、帧结构等关键要素。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Wireless

1 Introduction

1.1 Elements

1. Wireless Hosts
Wireless does not mean mobility.
2. Base Station
Typically connect to wired network.

1.2 Modes

1. Infrastructure mode
base station connects mobiles into wired network.
Handoff: mobile changes base station
2. ad hoc mode
no base station
nodes orgnize themselves into a network: route among themselves.

2 Characteristics

2.1 Differences from wired link

1. signal strength
2. interference
3. multipath propagation

2.2 SNR versus BER

SNR: signal-to-noise rate
BER: bit error rate
The higher SNR, the lower BER.

2.3 Multiple Access

1. Hidden terminal problem

2. Signal attenuation


2.4 CDMA: Code Division Multiple Access

The algorithm is as what I have recapped before

调制(modulation)
(1)先将资料的0转成 -1
A = [1,-1,1], B = [1,1,-1]
好处是在解调时,更能够区别0和1,而使解调错误率下降。
(2-1) A使用Walsh Transform的第一个channel [1,1,1,1,1,1,1,1](即其第一个basis,矩阵的第一个row)来做调制
A_m = [1,1,1,1,1,1,1,1,|-1,-1,-1,-1,-1,-1,-1,-1,|1,1,1,1,1,1,1,1,]。
(2-2) B使用Walsh Transform的第二个channel [1,1,1,1,-1,-1,-1,-1](矩阵的第二个row)来做调制
B_m = [1,1,1,1,-1,-1,-1,-1,|1,1,1,1,-1,-1,-1,-1,|-1,-1,-1,-1,1,1,1,1,]。
(3)将调制的结果相加M = A_m + B_m
M = A_m + B_m = [2,2,2,2,0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,0,0,2,2,2,2]
(4)最后传送出去的信号为M,共有24个bit。
解调(demodulation)
(1)将接收到的资料分别和channel做内积
(1-1) M和 第一个channel [1,1,1,1,1,1,1,1]做内积得到
前八码内积:[2,2,2,2,0,0,0,0] \cdot [1,1,1,1,1,1,1,1] = 8
中间八码内积:[0,0,0,0,-2,-2,-2,-2] \cdot [1,1,1,1,1,1,1,1] = -8
后八码内积:[0,0,0,0,2,2,2,2] \cdot [1,1,1,1,1,1,1,1] = 8
(1-2) M和 第二个channel [1,1,1,1,-1,-1,-1,-1]做内积得到
前八码内积:[2,2,2,2,0,0,0,0] \cdot [1,1,1,1,-1,-1,-1,-1] = 8
中间八码内积:[0,0,0,0,-2,-2,-2,-2] \cdot [1,1,1,1,-1,-1,-1,-1] = 8
后八码内积:[0,0,0,0,2,2,2,2] \cdot [1,1,1,1,-1,-1,-1,-1] = -8
(2)内积结果出来若为8,则解调为1;若为 -8,则解调为 -1
(2-1)第一个channel解调出信号为[8, -8, 8] \to [1, -1, 1]
(2-2)第二个channel解调出信号为[8, 8, -8] \to [1, 1, -1]
(3)最后,将 -1还原回0
(3-1)因此,第一个channel成功还原信号为[1, 0, 1]
(3-2)因此,第二个channel成功还原信号为[1, 1, 0]

3 Wi-Fi: IEEE 802.11 Wireless LAN

There is a family of 802 wireless LAN. They all:

1) use CSMA/CA for multiple access

2) have base-station and ad-hoc network versions


3.1 Architecture

1. Basic Service Set: contains 

1) wireless hosts

2) access point: base station

3) ad hoc mode: hosts only

2. Channel

1) divided into 11 channels

2) interference possible: neighboring AP chooses same channel.

3. Association

host must associates to a AP

4. Passive/Active Scanning

1) Passive


beacon -> request -> response

2) Active


request -> reponse -> assocation request -> assocation response


3.2 Multiple Access - Avoid Collisions

1. reasons: why not collision detection

1) signal weak
2) can not sense all collisions: hidden terminal problem


2. Avoiding collisions

1) Idea: allow sender to reverse channel. Sender first send request-to-send(RTS) packets to base station using CSMA. BS broadcast clear-to-send(CTS) in response to RTS.

CTS heard by all nodes.



3.3 Frame

1. Addressing

1) Address 1: receiver

2) Address 2: sender

3) Address 3: router

2. In frame control
1) Frame type: RTS, CTS, ACK, data


3.4 Other Characteristics

1. Mobility within same subnet

Self-learning: switch will see frame from H1 and remember which switch can be used to reach H1




2. advanced capabilities

1) Rate adaptation

BER vs. SNR

2) Power management

If there is no msg to be sent to this node. This node will sleep. When the node receive ‘beacon frame’, the node will wake up.


3. Personal area network

ad box mode: master/slave/parked device



3.5 802.16: WiMax

antenna: unlike 802.11, it has a large range

downlink/uplink scheduling



4 Cellular Internet Access

4.1 Architecture

like the other architecture, it is hierarchical and consists a list of base station, users, and links or protocols.
In Cellular Internet: the hierarchical arch is formed by Mobile Switching Center. And Cell denotes the components, BS, users, air-interface(protocols)
1. Hops: two techniques
1) FDMA/TDMA: divide spectrum
2) CDMA: bit dot algorithm(see before)

4.2 Standards

2G, 2.5G, 3G

GSM -> GPRS 



Mobility

1 Principles: addressing and routing

1.1 Address

First I need to clarify some address definations:


1) mobile: 

care-of-address, in visited network known by home network

permanent address, in home network known by correspondent to communicate

2) home:

home agent: function entity for mobile

3) correspondent:

who mobile want to contact with.


1.2 Routing

1. Registration
Mobile moves to a visited network, and connects to home agent telling it some mobility information.
Here are three important components:
1) mobile
2) foreign agent
3) home agent

2. Indirect Routing
Mobile requests to connect with correspondent through home agent. Then correspondent transfers pkt to mobile through home agent. Mobile replies directly to correspondent.


Triangle routing Problem
On-going connection can be maintains 
3. Direct Routing

Correspondent need to get care-of-address when mobile moves to another visited network.
Some Improvement
Accommdation mobility with direct routing
when mobile moves, new FA gets pkt from old FA(Chaining)



 2 Mobile IP

2.1 Indirect routing

In indirect or direct routing network, frame should be encapsulated into addresses.

Such as indirect routing network:


1) correspondent: mobile permanent address

2) home agent: add care-of-address(the address of foreign agent address) to find visited network 

3) foreign agent: dissolve to a permanent address.

2.2 Agent discovery

agent advertisement: foreign/home agents advertise service by broadcasting ICMP msg.





Registration Example

foreign agent broadcast ICMP msg. And a new mobile will put out registration request to foreign agent. And then foreign agent forwards the request to the home agent and gets the reply for the mobile.


NOTE:

Mobile maintains the home agent address consistantly.


3 Handoff within Mobile Switching Center

3.1 Common: 

like mobile move to another foreign network and update the information between BSS and MSC


3.2 Anchor MSC: 

like the machanism mentioned above.



### 无线网络与移动计算概述 #### 一、定义与发展背景 无线网络是指通过无线电波或其他电磁波来传输数据的计算机网络形式。这种类型的网络允许设备之间无需物理连线即可相互通信,极大地提高了灵活性和便捷性[^2]。 移动计算指的是利用便携式电子装置,在任何时间地点都能访问互联网服务的能力。随着智能手机和平板电脑等终端设备性能不断增强以及4G/5G通信技术的发展,移动计算已经深入到人们生活的方方面面,并成为当今信息技术领域的重要组成部分之一[^1]。 #### 二、关键技术特点对比分析 ##### (一)5G 技术特性 第五代移动通讯标准(5G),相比前几代具有更高的带宽速度、更低延时性和更大容量等特点。这些改进使得高清视频流媒体播放更加流畅;支持大规模物联网(IoT)连接需求;并为虚拟现实(VR)/增强现实(AR)体验提供了坚实基础。此外,为了适应不同应用场景的要求,还引入了灵活频谱分配机制和服务质量(QoS)保障措施。 ##### (二)Wi-Fi 技术演进方向 Wi-Fi联盟推出的最新版本——Wi-Fi 6 (802.11ax),不仅提升了最大理论速率至9.6 Gbps,更重要的是优化了多用户并发接入效率(MU-MIMO技术和OFDMA调制方式的应用).这有助于缓解公共热点区域内的拥塞状况; 同时降低了功耗水平以延长电池续航能力。即将面世的 Wi-Fi 7 则将进一步提高吞吐量并减少延迟,从而更好地满足未来智能家居、工业自动化等领域对于高性能无线局域网的需求. #### 三、应用场景差异探讨 尽管两者都属于短距离无绳解决方案范畴内,但在实际部署过程中往往存在明显区别: - **成本因素考量** 对于个人消费者而言,如果仅需覆盖家庭内部环境,则选择性价比高的路由器产品配合现有宽带线路组建私有WLAN可能更为经济实惠; - **易用性角度出发** 商业场所如咖啡馆或机场候机厅通常会优先考虑设置开放式的Wi-Fi AP以便访客快速连入Internet享受免费上网福利; - **安全性层面权衡** 政府机关单位出于保密工作需要更倾向于采用运营商级别的安全加密协议构建专用蜂窝基站群组,确保敏感信息传递过程中的绝对可靠防护[^3]. ```python # Python code example demonstrating a simple connection test between two devices over WiFi or cellular network. import socket def check_connection(host="google.com", port=80): try: # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect the socket to the server's address and port number server_address = (host, port) print(f'connecting to {server_address}') sock.connect(server_address) # Send data message = 'This is the message.' print('sending "%s"' % message) sock.sendall(message.encode()) # Look for response amount_received = 0 amount_expected = len(message) while amount_received < amount_expected: data = sock.recv(16) amount_received += len(data) print('received "%s"' % data.decode()) sock.close() except Exception as e: print(e) check_connection() ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值