计算机网络习题.doc

上传人:xin****828 文档编号:6497892 上传时间:2020-02-27 格式:DOC 页数:6 大小:201KB
返回 下载 相关 举报
计算机网络习题.doc_第1页
第1页 / 共6页
计算机网络习题.doc_第2页
第2页 / 共6页
计算机网络习题.doc_第3页
第3页 / 共6页
点击查看更多>>
资源描述
计算机网络ppt题及答案1.Imagine that you have trained your St. Bernard, Bernie, to carry a box of six 8mm tapes instead of a flask of brandy. (When your disk fills up, you consider that an emergency.) These tapes each contain 21 gigabytes. The dog can travel to your side, wherever you may be, at 18 km/hour. For what range of distances does Bernie have a higher data rate than a transmission line whose data rate (excluding overhead) is 300 Mbps? Question 想象一下,你已经训练你的至伯纳德,威廉斯,携带着一盒6个8毫米磁带代替一瓶白兰地。这些磁带每一个标题都包含21G字节。不管你在哪里,那只狗可以到你身边,以18公里/小时。什麽范围的距离确实伯尼具有更高的数据传输速率比传输线的数据传输速率(不含开销)是300Mbps?答:狗能携带6*21=126 千兆字节或者126*8=1008千兆位的数据。18 公里/小时的速度等于0.005 公里/秒,走过x 公里的时间为x / 0.005 = 200x 秒, 产生的数据传输速度为1008/200x Gbps或者5040/x Mbps。因此,与通信线路相比较,若x16.8 公里,狗有更高的速度。Test 1: A collection of five routers is to be connected in a point-to-point subnet. Between each pair of routers, the designers may put a high-speed line, a medium-speed line, a low-speed line, or no line. If it takes 100 ms of computer time to generate and inspect each topology, how long will it take to inspect all of them? 五个路由器通过点对点的子网连接。每一对路由器的设计可能是高速、中速、低速线,或者是没有线。检查每个拓扑需要100ms,问检查完这些需要多长时间?答:将路由器称为A,B,C,D 和E.:则有10 条可能的线路;AB, AC, AD, AE, BC,BD, BE, CD, CE,和DE。 每条线路有4 种可能性(3 速度或者不是线路),这样,拓扑的总数为410 = 1,048,576。检查每个拓扑需要100 ms,全部检查总共需要104,857. 6 秒,或者稍微超过29 个小时。2 An image is 1024 x 768 pixels with 3 bytes/pixel. Assume the image is uncompressed. How long does it take to transmit it over a 56-kbps modem channel? Over a 1-Mbps cable modem? Over a 10-Mbps Ethernet? Over 100-Mbps Ethernet? 一个图片是1024*768像素,每个像素3个字节。假设图片没被压缩。如果传输速度是56kbps需要传输时间是多少?1Mbps呢?10Mbps呢?100Mbps呢?答:照片是1024*768*3=2,359,296字节。 也就是18,874,368位. 如果速度是 56,000 bps, 将花费 337.042 秒。如果速度是 1,000,000 bps, 将花费 18.874 秒。 如果是 10,000,000 bps, 将花费 1.887 秒。如果是100,000,000bps, 将花费 0.189 秒。3 The following character encoding is used in a data link protocol: A: 01000111; B: 11100011; FLAG: 01111110; ESC: 11100000 Show the bit sequence transmitted (in binary) for the four-character frame: A B ESC FLAG when each of the following framing methods are used: (a) Character count. (b) Flag bytes with byte stuffing. (c) Starting and ending flag bytes, with bit stuffing. 下面的字符编码被用在数据连接协议A: 01000111; B: 11100011; FLAG: 01111110; ESC: 11100000当使用以下框架方法时请写出连续传输编码(二进制)用这四种字符结构:A B ESC FLAG(a) 字符计数法(b) 含字节填充的分界标志法(c)含位填充的分界标志法答:(a) 00000100 01000111 11100011 11100000 01111110(b) 01111110 01000111 11100011 11100000 11100000 11100000 01111110 01111110(c) 01111110 01000111 110100011 111000000 011111010 011111104 A bit stream 10011101 is transmitted using the standard CRC method . The generator polynomial is x3 + 1. Show the actual bit string transmitted. Suppose the third bit from the left is inverted during transmission. Show that this error is detected at the receivers end. 一个位流10011101通过循环冗检测被传输。生成多项式是x3 + 1。显示实际的位串传输。假定在传输过程中第三位倒转。请显示这个错误在接收方接收到位串后。答:要传输的字节流是1011101,生成多项式是1001。10011101加三个零是10011101000,然后用这个数除以1001,余数为100。所以要传输的字节流应该是10011101100。第三位倒转后是10111101100,然后用这个数除以1001结果余数是100。因此,接收器检测到错误并可以要求重发。配置实例组网需求该公司通过一台Quidway路由器的接口Serial 0访问Internet,公司内部对外提供WWW、FTP和Telnet服务,公司内部子网为129.38.1.0,其中,内部FTP服务器地址为129.38.1.1,内部Telnet服务器地址为129.38.1.2,内部WWW服务器地址为129.38.1.3,公司对外地址为202.38.160.1。在路由器上配置了地址转换,这样内部PC机可以访问Internet,外部PC可以访问内部服务器。通过配置防火墙,希望实现以下要求:l 外部网络只有特定用户可以访问内部服务器l 内部网络只有特定主机可以访问外部网络在本例中,假定外部特定用户的IP地址为202.39.2.3。1. 组网图图1-1 防火墙配置的组网图配置步骤:# 打开防火墙功能。Quidway firewall enable# 设置防火墙缺省过滤方式为允许包通过。Quidway firewall default permit # 配置访问规则禁止所有包通过。Quidway acl 101Quidway-acl-101 rule deny ip source any destination any# 配置规则允许特定主机访问外部网,允许内部服务器访问外部网。Quidway-acl-101 rule permit ip source 129.38.1.4 0 destination anyQuidway-acl-101 rule permit ip source 129.38.1.1 0 destination anyQuidway-acl-101 rule permit ip source 129.38.1.2 0 destination anyQuidway-acl-101 rule permit ip source 129.38.1.3 0 destination any# 配置规则允许特定用户从外部网访问内部服务器。Quidway acl 102Quidway-acl-102 rule permit tcp source 202.39.2.3 0 destination 202.38.160.1 0# 配置规则允许特定用户从外部网取得数据(只允许端口大于1024的包)。Quidway-acl-102 rule permit tcp source any destination 202.38.160.1 0.0.0.0 destination-port greater-than 1024# 将规则101作用于从接口Ethernet0进入的包。Quidway-Ethernet0 firewall packet-filter 101 inbound# 将规则102作用于从接口Serial0进入的包。Quidway-Serial0 firewall packet-filter 102 inbound给定192.168.1.0网络地址进行如下设计: 其中FTP服务器地址:192.168.1.9; WWW服务器地址:192.168.1.14;路由协议采用RIPV2 1 给出地址设计方案(分配所需子网掩码) 2 阻止来自pc1、pc3、pc4所在网络中节点访问WWW 3 允许pc2、pc3、pc4访问FTP、pc1禁止访问FTP
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 小学资料


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!