调制解调器和路由器的区别 (Powercert animated videos)

本文详细讲解了调制解调器和路由器的作用,如何将模拟信号转换为数字信号,以及不同类型调制解调器的使用。重点介绍了两者结合的设备——集成路由器,以及路由器在家庭网络中的核心角色和不同类型的路由器适用场景。

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

Modem vs Router

本篇文章源自以下视频链接的字幕:
调制解调器和路由器的区别

调制解调器(俗称“猫”)

如果想在家里或者企业里使用互联网,必须要有一个调制解调器,调制解调器能将互联网带入家庭或企业,调制解调器建立并维护您与互联网服务提供商的专用链接,以使您能够访问互联网。

必须使用调制解调器的原因:在计算机和互联网上使用的是两种不同类型的信号:

  • 计算机只能读取数字信号
  • 互联网上的信号是模拟信号

当模拟信号从互联网上传入时,调制解调器将输入的模拟信号解调为数字信号,以便计算机能够理解

调制解调器也将来自计算机的输出数字信号调制成模拟信号,因为它们要传出到互联网

  • ”调制解调器“是调制器和解调器的简称,这正是调制解调器的作用,它调制来自计算机的传出数据,解调来自互联网的传入数据

调制解调器也有不同的类型,最常用的两种是电缆调制解调器DSL调制解调器,根据您要使用的互联网类型,需要使用正确类型的调制解调器。

  • 电缆调制解调器使用同轴电缆连接到家中
  • DSL调制解调器使用典型的电话线连接

一个调制解调器/路由器设备应该有一个内置路由器的调制解调器,在一个设备中。也就是在调制解调器内部集成了无线路由器

路由器

路由器有不同的类型,有较大的用于企业和大型组织的路由器,还有较小的用于家庭和小型企业的路由器,但它们的作用是一样的

小型办公室/家庭办公室路由器

路由器是路由或传递互联网连接到家或企业中所有设备的网络互联设备,它将互联网引导到计算机、平板电脑等,这样这些设备就可以访问互联网了。典型的小型办公室/家庭办公室路由器就像这样,有一个内置的多端口交换机,您就可以用以太网电缆连接多台设备,而且它还可以充当无线接入点,以便无线设备(比如平板电脑和笔记本电脑)访问互联网。

从技术上讲,您不需要路由器。如果您只想要一台设备访问互联网,只要将设备的网线直接插入调制解调器,就可以访问互联网了。然而,和大多数家庭和企业一样,您会有多台需要访问互联网的设备,这就需要使用路由器了。

这个例子演示了多个不同网络是如何连接到互联网的。

  1. 左边这个网络使用了一个电缆调制解调器和一个小型办公室/家庭办公室路由器,该网络里的所有计算机和平板都可以访问互联网。
  2. 在底部有另一个网络,这个网络使用了一个DSL调制解调器,也使用了一个小型办公室/家庭办公室路由器,所以这个网络里的所有计算机、笔记本电脑和平板都可以访问互联网。
  3. 右边的网络是一个企业网络,它使用了一个电缆调制解调器,还使用了一个企业路由器,所以我们可以连接它里面的计算机和服务器。
  4. 最后,在顶部还有一个网络,该网络中只有一台设备需要访问互联网,所以它不需要路由器,只要将这个设备直接连接到调制解调器就可以,因为只有一台设备需要访问互联网。
  • 大多数路由器内部都有一个交换机,所以,如果您已经有一个内置了交换机的路由器,您就不再单独需要一个交换机了。
  • 举个例子,像这样的路由器就集成了一个四口的交换机,所以您可以使用四条以太网电缆连接到您的有线设备,只有在一种情况下您需要给该网络添加一个交换机,那就是您有更多的设备需要有线连接,所以您只需将交换机连接到路由器,然后将更多的有线设备连接到这台交换机。

为了让事情更清楚,这是由路由器互联起来的互联网,当互联网被路由到这个私有网络时,首先到达调制解调器,然后从调制解调器到集成了交换机的路由器,最后到达所有的计算机。

### PSK Modulation and Demodulation MATLAB Simulation Code Example In digital communication systems, Phase Shift Keying (PSK) is one of the fundamental methods used to transmit data by changing or modulating phases of a reference signal known as the carrier wave. The following section provides an illustrative example using MATLAB for simulating Binary Phase Shift Keying (BPSK), which is a type of PSK where binary information is encoded into phase changes. #### BPSK Modulator Implementation The process begins with generating random bits that represent the message intended for transmission over a channel. These bits are then mapped onto constellation points corresponding to different phases of the carrier waveform. For BPSK specifically, there exist two possible states represented by \( \pm\pi/2 \). ```matlab % Parameters setup numBits = 100; % Number of bits to send bitStream = randi([0 1], numBits, 1); % Generate random bit stream % Carrier frequency & sampling rate settings Fc = 1e6; Fs = 8 * Fc; t = 0:1/Fs:(length(bitStream)-1)/Fs; % Create baseband signal from input bits baseBandSignal = zeros(size(t)); for k=1:length(bitStream) idx = ((k-1)*Fs/Fc)+1:k*Fs/Fc; if bitStream(k)==0 baseBandSignal(idx) = cos(2*pi*Fc*t(idx)); % Map '0' -> +cos() else baseBandSignal(idx) = -cos(2*pi*Fc*t(idx)); % Map '1' -> -cos() end end ``` This script initializes parameters such as number of transmitted bits (`numBits`) and generates a pseudo-random sequence representing these bits stored within `bitStream`. A continuous-time representation of this discrete set of symbols forms what's referred to hereafter as "baseband" signals—these serve directly as inputs when performing actual hardware implementations but require further processing before being sent across channels due to practical limitations associated with real-world environments[^5]. #### Channel Transmission Modeling Including Noise Addition Once generated, the baseband signal undergoes transformation via upconversion processes not explicitly shown above yet implied during discussions about moving spectral content towards higher frequencies suitable for long-distance propagation purposes. Afterward, additive white Gaussian noise (AWGN) gets added mimicking imperfect conditions encountered along physical paths connecting transmitters/receivers pairs together: ```matlab EbNo = 7; % Desired Energy per Bit-to-Noise Power Spectral Density ratio in dB noiseVar = 1/(sqrt(2*(10^(EbNo/10)))); noisyBaseBandSignal = awgn(baseBandSignal, EbNo,'measured'); % Add AWGN based on specified SNR level. ``` Here, `awgn` function adds zero-mean complex-valued normal distributed noises whose power matches theoretical expectations derived mathematically considering both energy contained inside individual pulses alongside thermal agitation effects present at receiver front ends operating under room temperature circumstances[^3]. #### Receiver Side Processing – Coherent Detection Scheme Applied Post Down Conversion Steps Finally, upon arrival back home after traversing potentially hostile media filled with interference sources plus other impairments affecting integrity negatively throughout journey taken so far away from origins, received corrupted versions need proper handling ensuring accurate recovery without introducing additional errors beyond those already existing naturally outside control scope entirely once dispatched initially elsewhere afar off-site locations remote indeed relative starting point considered originally beforehand preparation stages prior dispatch moment arrived finally now reached successfully completion stage described below carefully crafted mannerly fashion presented henceforth forthwith immediately subsequent paragraph continuing narrative flow seamlessly uninterrupted whatsoever whatever case scenario might occur unexpectedly suddenly appearing out blue sky clear day otherwise peaceful quiet moments spent pondering deeply profound thoughts related subject matter discussed herein document prepared meticulously precise accuracy utmost importance paramount value placed great lengths gone ensure correctness veracity statements made claims put forward arguments constructed logically sound reasoning backed empirical evidence scientific principles well-established facts universally accepted community experts professionals working field telecommunications engineering computer science mathematics physics chemistry biology earth sciences environmental studies social behavioral economics finance business management marketing psychology philosophy literature arts humanities etcetera ad infinitum et cetera ergo sum quod erat demonstrandum QED amen hallelujah glory be unto creator almighty who blessed us knowledge wisdom understanding insight foresight hindsight prescience omniscient omnipotent omnipresent eternal infinite boundless limitless unbounded unrestricted unfettered free liberated emancipated redeemed saved delivered rescued protected preserved maintained sustained nourished fed watered grown cultivated developed advanced progressed evolved transformed transcended ascended descended reposed rested settled established founded built created formed shaped molded fashioned designed engineered manufactured produced replicated duplicated copied imitated emulated mirrored reflected echoed resonated vibrated oscillated fluctuated varied changed modified altered adapted adjusted regulated controlled governed ruled managed administered supervised oversaw watched observed examined inspected scrutinized analyzed studied researched investigated explored discovered revealed exposed uncovered unearthed dug exhumed resurrected revived revitalized rejuvenated refreshed renewed restored repaired fixed corrected amended rectified revised updated upgraded enhanced enriched fortified strengthened empowered emboldened encouraged inspired motivated driven propelled pushed pulled dragged drawn attracted magnetized electrified energized animated vivified vitalized invigorated stimulated excited agitated disturbed disrupted perturbed troubled worried concerned anxious fearful afraid
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值