当前在线人数15914
Router VS Switch - 未名空间精华区
首页 - 版面精华区 - 新闻中心精华区 - 科技新闻版精华区 - 精华区文章阅读 首页
未名交友
[更多]
[更多]
Router VS Switch

发信人: Blumlein (幸福是一种传说), 信区: ITnews
标  题: router & switch
发信站: The unknown SPACE (Fri Nov 12 03:13:05 1999), 站内信件

偶来试着回答这个问题吧,呵呵,错了大家不要扁偶的说

Routers and switches paly simiar role in the network, they
are both intermediate network devie that relay information
packet from the source to the destination. 但是它们的实现
是不同的。

switch的操作较简单,查表,然后forward。
router的操作就较复杂,因为它需要为packets决定路由。

For example, switches are used in ATM, because ATM uses VC,
i.e., virtual circuit. How packets go throught the network
is determined during the VC setup. In VC setup, switches hav
got the relationship between input and output, i.e., packets
from some VPI(virtual path ID),VCI(Virtual connection ID?
not quite sure at this point of time),and port will be forwarded
some VPI,VCI,and port。During VC setup, switchs updates
their routing table, then when packets come, looking the table,
from the input VPI, VCI and port, finding out the output VPI,
VCI and port, then forwarding.

Routers are used in the nowaday's IP network, since routing
for different packets is independent, i.e., different packets
from the same source to the same destination may go throught
the network in quite different routes. Then, the internediate
routers need to determine where to forward packets based on the
most recent network condition.

So, switch is simpler, cheaper and faster; router is more complex,
more expensive, and slower.

BTW, in OSI 7-layer model, router works on layer 3, i.e., network
layer or IP layer, switch works on layer 2, datalink layer. Because
of this, routers can work between different networks.

其实浪一应该是这个问题的大拿,他老板不是做switch的吗?

hehe
--
<七种武器>,七种不平凡的武器,它们是小马的拳头,长生剑,
孔雀翎,多情环,碧玉刀,霸王枪和离别钩,它们并不是真的常
胜不败,而是代表了友情,微笑,信心,仇恨,诚实,勇气和爱
情。如果我们拥有其中之一,也许我们就能永远不败。

※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 128.125.8.82]
发信人: robinsnow (春天的第一场雪~成长的烦恼), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Fri Nov 12 12:19:36 1999) WWW-POST

then will switches need to solve the problems that router face? like
congestion? or they just blindly forward...no matter what happened on the
other end? no slow start, sliding window? (these are for data link layer,
aren't they)

did you study the second edition of Tanenbaum? i ream with no difficulty for
your article ;PPPP

【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: 偶来试着回答这个问题吧,呵呵,错了大家不要扁偶的说
:
: Routers and switches paly simiar role in the network, they
: are both intermediate network devie that relay information
: packet from the source to the destination. 但是它们的实现
: 是不同的。
:
: switch的操作较简单,查表,然后forward。
: router的操作就较复杂,因为它需要为packets决定路由。
:
: For example, switches are used in ATM, because ATM uses VC,
: i.e., virtual circuit. How packets go throught the network
: is determined during the VC setup. In VC setup, switches hav
: got the relationship between input and output, i.e., packets
: from some VPI(virtual path ID),VCI(Virtual connection ID?
: not quite sure at this point of time),and port will be forwarded
: some VPI,VCI,and port。During VC setup, switchs updates
: their routing table, then when packets come, looking the table,
: from the input VPI, VCI and port, finding out the output VPI,
: VCI and port, then forwarding.
:
: Routers are used in the nowaday's IP network, since routing
: for different packets is independent, i.e., different packets
: from the same source to the same destination may go throught
: the network in quite different routes. Then, the internediate
: routers need to determine where to forward packets based on the
: most recent network condition.
:
: So, switch is simpler, cheaper and faster; router is more complex,
: more expensive, and slower.
:
: BTW, in OSI 7-layer model, router works on layer 3, i.e., network
: layer or IP layer, switch works on layer 2, datalink layer. Because
: of this, routers can work between different networks.
:
: 其实浪一应该是这个问题的大拿,他老板不是做switch的吗?
:
: hehe

--

想你是我一生最亮的星
想我是你窗外孤单的雨



※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 128.112.41.28]
发信人: hugh (黑雪), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Fri Nov 12 13:40:05 1999) WWW-POST

slow start, slow window are all in layer 3, are you talking about
TCP slow start? actually, it's nly for TCP, UDP doesn't have slow start
though, it's also in layer 3
【 在 robinsnow (春天的第一场雪~成长的烦恼) 的大作中提到: 】
: then will switches need to solve the problems that router face? like
: congestion? or they just blindly forward...no matter what happened on the
: other end? no slow start, sliding window? (these are for data link layer,
: aren't they)
:
: did you study the second edition of Tanenbaum? i ream with no difficulty
: for
: your article ;PPPP
:
: 【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: : 偶来试着回答这个问题吧,呵呵,错了大家不要扁偶的说
: :
: : Routers and switches paly simiar role in the network, they
: : are both intermediate network devie that relay information
: : packet from the source to the destination. 但是它们的实现
: : 是不同的。
: :
: : switch的操作较简单,查表,然后forward。
: : router的操作就较复杂,因为它需要为packets决定路由。
: :
: : For example, switches are used in ATM, because ATM uses VC,
: : i.e., virtual circuit. How packets go throught the network
: : is determined during the VC setup. In VC setup, switches hav
: : got the relationship between input and output, i.e., packets
: : from some VPI(virtual path ID),VCI(Virtual connection ID?
: : not quite sure at this point of time),and port will be forwarded
: : some VPI,VCI,and port。During VC setup, switchs updates
: : their routing table, then when packets come, looking the table,
: : from the input VPI, VCI and port, finding out the output VPI,
: : VCI and port, then forwarding.
: :
: : Routers are used in the nowaday's IP network, since routing
: : for different packets is independent, i.e., different packets
: : from the same source to the same destination may go throught
: : the network in quite different routes. Then, the internediate
: : routers need to determine where to forward packets based on the
: : most recent network condition.
: :
: : So, switch is simpler, cheaper and faster; router is more complex,
: : more expensive, and slower.
: :
: : BTW, in OSI 7-layer model, router works on layer 3, i.e., network
: : layer or IP layer, switch works on layer 2, datalink layer. Because
: : of this, routers can work between different networks.
: :
: : 其实浪一应该是这个问题的大拿,他老板不是做switch的吗?
: :
: : hehe
:


--
※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 199.244.214.130]
发信人: melon (抽刀断水), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Fri Nov 12 15:09:03 1999), 站内信件

are you guys taking computer networking?
that class is boring...

【 在 hugh (黑雪) 的大作中提到: 】
: slow start, slow window are all in layer 3, are you talking about
: TCP slow start? actually, it's nly for TCP, UDP doesn't have slow start
: though, it's also in layer 3
: 【 在 robinsnow (春天的第一场雪~成长的烦恼) 的大作中提到: 】
: : then will switches need to solve the problems that router face? like
: : congestion? or they just blindly forward...no matter what happened on the
: : other end? no slow start, sliding window? (these are for data link layer,
: : aren't they)
: :
: : did you study the second edition of Tanenbaum? i ream with no difficulty
: : for
: : your article ;PPPP
: :
: : 【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: :


--
※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 35.9.20.152]
发信人: floating (只在水云间), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Fri Nov 12 16:20:17 1999) WWW-POST

i think switch can provide a contentionless connection, right? for data link
layer, 802 series inherently have the carrier contention problem.
of course, maybe switch is used under different contexts.
【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: 偶来试着回答这个问题吧,呵呵,错了大家不要扁偶的说
:
: Routers and switches paly simiar role in the network, they
: are both intermediate network devie that relay information
: packet from the source to the destination. 但是它们的实现
: 是不同的。
:
: switch的操作较简单,查表,然后forward。
: router的操作就较复杂,因为它需要为packets决定路由。
:
: For example, switches are used in ATM, because ATM uses VC,
: i.e., virtual circuit. How packets go throught the network
: is determined during the VC setup. In VC setup, switches hav
: got the relationship between input and output, i.e., packets
: from some VPI(virtual path ID),VCI(Virtual connection ID?
: not quite sure at this point of time),and port will be forwarded
: some VPI,VCI,and port。During VC setup, switchs updates
: their routing table, then when packets come, looking the table,
: from the input VPI, VCI and port, finding out the output VPI,
: VCI and port, then forwarding.
:
: Routers are used in the nowaday's IP network, since routing
: for different packets is independent, i.e., different packets
: from the same source to the same destination may go throught
: the network in quite different routes. Then, the internediate
: routers need to determine where to forward packets based on the
: most recent network condition.
:
: So, switch is simpler, cheaper and faster; router is more complex,
: more expensive, and slower.
:
: BTW, in OSI 7-layer model, router works on layer 3, i.e., network
: layer or IP layer, switch works on layer 2, datalink layer. Because
: of this, routers can work between different networks.
:
: 其实浪一应该是这个问题的大拿,他老板不是做switch的吗?
:
: hehe

--

※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 129.186.5.181]
发信人: windflower (windflower), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Fri Nov 12 23:44:41 1999), 站内信件


nodnod,very boring.everyone fell asleep...ZZZZzzzzZZZZ


【 在 melon (抽刀断水) 的大作中提到: 】
: are you guys taking computer networking?
: that class is boring...
: 【 在 hugh (黑雪) 的大作中提到: 】
: : slow start, slow window are all in layer 3, are you talking about
: : TCP slow start? actually, it's nly for TCP, UDP doesn't have slow start
: : though, it's also in layer 3


--
※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 35.9.20.121]
发信人: lwzhi (倾心), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Sat Nov 13 00:25:58 1999), 站内信件

that's ur professor or u guys' problem.

actually very interesting in the security issue, we often argue on it,
usually find teacher's protocol r incorrect, hoho


【 在 windflower (windflower) 的大作中提到: 】
: nodnod,very boring.everyone fell asleep...ZZZZzzzzZZZZ
: 【 在 melon (抽刀断水) 的大作中提到: 】
: : are you guys taking computer networking?
: : that class is boring...


--

蒹葭苍苍,白露为霜。所谓伊人,在水一方。
溯洄从之,道阻且长;溯游从之,宛在水中央。

※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 128.83.204.81]
发信人: waves (蜗牛), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Sun Nov 14 07:44:29 1999), 站内信件

【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: 偶来试着回答这个问题吧,呵呵,错了大家不要扁偶的说
偶还是扁泥吧,从发展史上这么分层是没有错的,但是现在
switching router, route switch, layer 3 switch满天飞
的时候还这么分就教条了。


--

    悟已往之不灌,知管子不可追;实干涸已久矣,决大堤而放水。


※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 129.95.42.61]
发信人: tick (风满楼), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Sun Nov 14 13:09:33 1999), 站内信件

【 在 Blumlein (幸福是一种传说) 的大作中提到: 】

: BTW, in OSI 7-layer model, router works on layer 3, i.e., network
: layer or IP layer, switch works on layer 2, datalink layer. Because
: of this, routers can work between different networks.

correct, 这个是关键, switch & router属于不同的layer,只是概念上的区别
本质上可以是同一台机器,正如server & client一样,是概念上的区别,但你可以
用同一台机器同时做server和client.

: 其实浪一应该是这个问题的大拿,他老板不是做switch的吗?
: hehe

hehe,你没事替我做广告啊 :)

--
我的心象一颗尘埃

※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 144.118.32.142]
发信人: laoe (Goose), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Sun Nov 14 23:01:23 1999) WWW-POST

【 在 tick (风满楼) 的大作中提到: 】
: 【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
:
: : BTW, in OSI 7-layer model, router works on layer 3, i.e., network
: : layer or IP layer, switch works on layer 2, datalink layer. Because
: : of this, routers can work between different networks.
:
: correct, 这个是关键, switch & router属于不同的layer,只是概念上的区别
: 本质上可以是同一台机器,正如server & client一样,是概念上的区别,但你可以
: 用同一台机器同时做server和client.
:
: : 其实浪一应该是这个问题的大拿,他老板不是做switch的吗?
: : hehe
:
: hehe,你没事替我做广告啊 :)


Faint, How about the Layer 3 Switch?

--
人恒过,然后能改,困于心,横于虑,而后作

※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 207.58.21.141]
发信人: hugh (黑雪), 信区: ITnews
标  题: Re: router & switch
发信站: The unknown SPACE (Sun Nov 14 23:35:34 1999), 站内信件

Are you talking about layer 3 switch of ATM?
it still needs router to set up the VP, afterwards
the traffic could be forwarded by switch only
once the connection is tear down, the next traffic flow
needs to set up a new path by router again

【 在 laoe (Goose) 的大作中提到: 】
: 【 在 tick (风满楼) 的大作中提到: 】
: : 【 在 Blumlein (幸福是一种传说) 的大作中提到: 】
: :
: :
: : correct, 这个是关键, switch & router属于不同的layer,只是概念上的区别
: : 本质上可以是同一台机器,正如server & client一样,是概念上的区别,但你可以
: : 用同一台机器同时做server和client.
: :
: :
: : hehe,你没事替我做广告啊 :)
:
:
: Faint, How about the Layer 3 Switch?


--
※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 4.11.214.151]

[返回]
赞助链接
未名交友
将您的链接放在这儿
 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996