已知数据帧长为1000 bit,帧头为64 bit,数据速率为500 kb/s,线路传播延迟5 ms,完成下列计算:
(1)信道无差错,采用停等协议,求信道利用率。
(2)设滑动窗口为大窗口(w>2a+1),求窗口至少多大。
(3)设重发概率P=0.4,采用选择重发ARQ协议,求线路的利用率。
第1题
【说明】以下是Linux局域网服务器配置的简单描述。
如图4所示,某企业通过ADSL上网,ADSL外部网卡输入的地址是192.168.10.6,子网掩码是255.255.255.0,网关是192.168.10.254。此网卡用于外部接入,名称为eth0。
内部网卡地址设定为10.191.252.10,同时将子网的掩码设置为255.255.255.0,名称设为eth1。两个网的DNS服务地址采用同一个地址,设定为202.103.86.3。
服务器和客户机都接在同一台交换机上。服务器安装完毕后,Squid的功能非常强大,但部分内容需要修改才能够正常使用。用编辑器打开/etc/squid/squid.conf文件,有下面两句话:
http_access allow localhost (1)
http_access allow all (2)
Squid代理在服务器启动时默认是关闭的,需要改一下。在服务器桌面图标Server Configuration(服务配置)/start at boot(启动选择)中,在Squid和Ipchains两项前边打上星号,这样服务器在启动时就可以同时启动Squid和Ipchains,也可以单独运行命令setup找到服务器配置项进行上述配置。
至此,服务器已经能够提供WWW的代理服务,不过需要配置的东西仍然很多。比如聊天、收发邮件等功能,要特别设定地址伪装才能进行。将下面的内容添加到/etc/rc.local文件的尾部,然后重新启动服务器。
echo 1>/proc/sys/net/ipv4/ip_forward (3)
/sbin/ipchains-PforwardDENY
/sbin/ipchains-F (4)
/sbin/ipchains-A forward-s 192.168.0.0/24-j MASQ -i eth0 (5)
客户机的设定很简单,它的IP地址必须设定在10.191.252.0~10.191.252.254之间,但不能设定为与服务器的内部地址相同的IP地址。
请将(n) L(n=1~5)处的含义写在答题纸对应的栏内。
第2题
能随意的发电子邮件、分享档案及上网络浏览。上图当企业内的员工发电子邮件时必须通过路由器IP网关,请简述路由器IP网关的作用?
第3题
阅读以下说明,回答问题1和问题2,将解答填入对应的解答栏内。
某单位新购近一台Cisco两层交换机2950,其配置过程:
第一步,准备安装与调试所需的设备,主要包括Cisco 2950交换机、RJ45直通线,RJ45转9针串口转 换器、计算机。
第二步,硬件连接,RJ45直通线一头插入Cisc02950的console口,另一头接RJ45转9针串口转换器,再将转换器接到计算机的串口。
第三步,交换机加电,在计算机上调用WINDOWS XP下的超级终端程序,配置设备连接参数,如图5-1,以便进入Cisco设备的虚拟操作台。
第四步,输入Cisco 2950的IOS配置命令。配置过程如下:
Switch>
Switch>enable
Switchconfig terminal
Switch(config)enable secret cisco2006 (1)
Switch(config)hostname Switch1
Switch1(config)ip default-gateway 192.168.1.1 (2)
Switch1(config)interface vlan 1
Switch1(config-if)ip address 192.168.1.23 255.255.255.0
Switch1(config-if)management (3)
Switch1(config-if)end
Switch1(config)vlan database
Switch1(config-vlan)vtp mode server (4)
Switch1(config-vlan)vtp domain ABC (5)
Switch1(config-vlan)vtp pruning (6)
Switch1(config-vlan)end
Switch1show vtp status (7)
Switch1config terminal
Switch1(config)interface gb0/1
Switch1(config-if)switchport mode trunk (8)
Switch1(config-if)switchport trunk encap dotlq (9)
Switch1(conflg-if)end
Switch1copy run start (10)
第五步,将调试完毕的设备连入网络,通过PC机验证配置是否正确。
第三步中,在图5-1中配置超级终端程序时连接参数应如何设置:
(1)每秒位数(B): (11)
(2)数据位(D): (12)
(3)奇偶校验(P): (13)
(4)停止位(S): (14)
(5)数据流控制(F): (15)
第6题
请根据网页显示的效果图(见图13-5),将HTML文本中(n)处解答填于相应的解答栏内。
[说明]
<html>
<head>
<[-- TemplateBeginEditable name="doctitle" -->
<title>(1)</title>
<!-- TemplateEndEditable -->
<meta. http-equiv="Content-Type" content="text/html; charse=gb2312">
<!-- TemplateBeginEditable name="head"--><!-- TemplateBeginEditable-->
<!-- TemplateParam name="HeaderColor" type="color" value="333333" -->
<!-- TemplateParam name="BackgroundColor" type="color" value="CCCCCC"-->
<!-- TemplateParamname= BodyBackgroundColor"type="color" value="FFFFFF"-->
<!-- TemplateParam name="FormName" type="text" value="forml" -->
<!-- TemplateParam name="FormMethod" type="text" value="post" -->
<!-- TemplateParam name="FormAction" type="text" value="mailto:" -->
<!-- TemplateParam name="To" type="boolean" value="true" -->
<!-- TemplateParam name="CC" type="boolean" value="true" -->
<!-- TemplateParam name="BCC" type="boolean" value="true" -->
</head>
<body bgcolor="FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form. name="@@(FormName)@@"method="@@(FormMethod)@@" action="@@(FormAcfion)@@">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr bgcolor="FFFFFF">
<td colspan="2" valign="top"><!-- TemplateBeginEditable name="标题" -->
<div align="center"><font color="000000" face="Arial, Helvetica, sans-serif"><b>(2)
</b></font></div>
<!-- TemplateEndEditable --></td>
</tr>
<tr>
<td width="64%" colspan="2" align="right" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="FFFFFF">
<!-- TemplateBeginlf cond="To" -->
<tr>
<td width="40%" align="right" valign-"top"><b>(3)</bb></td>
<td width="79%" valign="top"> <!-- TemplateBeginEditable name="收件人" -->
<input name="to" type="text" value="zhangyixin7109@ciu.net.cn" size="50">
<!-- TemplateEndEditable --> </td>
</tr>
<!-- TemplateEndlf--> <!-- TcmplateBeginlf cond="BCC" -->
<tr>
<td align="right" valign="top"><b>抄送:</h></td>
<td valign="top"> <!-- TemplateBeginEditable name="抄送" -->
<!-- TemplateEndEditable -->
</rd>
</tr>
<!-- TemplateEndlf--> <tr>
<td align="right" valign="top"><b>主题:</b></td>
<td valign="top"> <!-- TemplateBeginEditable name="主题" -->
<input name="subject" type="text" value="CIU辅导" size="50">
<!-- TemplateEndEditable --></td>
</tr>
<tr>
<td align="right" valign="top"><b>正文:</b></td>
<td valign="top"><!-- TemplateBeginEditable name="正文" -->
<textarea name="message" (4) (5) wrap="VIRTUAL">欢迎您加入CIU,我们竭诚为您服务!
您有什么疑问有下列途径跟辅导老师联系
1.CIU平台上留言
2.辅导与答疑(每周一晚7:30-8:30)
3.发送电子邮件</textarea>
<!-- TemplateEndEditable --> </td>
&nb
第8题
空缺处的代码填写完整。
<!--以下为实现加入信息功能的部分-->
<form. name="fonn1" method="post" action="main_search.asp">
<td>
<div align="left">
<table width="404" border=-"0">
<tr>
<td align="right" width="121">
<font size="2">请选择品牌</font>
</td>
<td align="left" width="194" valign="bottom">
<p><(3) size="1" name="D1">
<option (4) value="mow">]摩托罗拉</option>
<option value="(5)">诺基亚</option>
< (6) >
</p>
</td>
<td align="left" width="69" valign="middle">
<p>
<input type="submit" value="提交" name="B1">
</p>
</td>
</tr>
</table></div></td>
</form>
第9题
认真阅读以下关于静态网页制作和动态网页编程的技术说明,根据要求回答问题1~问题6。
【说明】
一、静态网页制作
某电子商务公司用ASP实现了一个用于手机销售信息查询的网页,主页文件名为“index.html”,其文档内容如下。
[index.html文档内容]
<html>
<head>
<title>易搜手机资讯广场</title>
</head>
<frameset cols="198, *" "border=0">
<frame name="side" src="side.html" scrolling="No">
<frameset rows='96, *" "border=0">
<frame name="top" src="top.html" scrolling="No">
<frame name="main" src="main.asp" scrolling="Auto">
</frameset>
</frameset>
<body>
</body>
</html>
二、动态网页编程
图6-9是用户按品牌型号进行查询时的网页(main.asp)在IE浏览器上运行后的效果图。表6-9是手机信息数据库表结构。
其中,Brand字段下共有两种数据:moto、nokia,分别代表摩托罗拉、诺基亚。
【main.asp文档的内容】
<html>
<head>
<title>易搜手机资讯广场</title>
</head>
<body bgcolor="ffffff" background="bg1.gif" text="000000">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<left>
<!-以下为实现按手机型号搜索功能的部分-->
<from name="form1" method="post" action="main_search.asp">
<div align="left">
<table width="400" border="0">
<tr>
<td align="right" width="120">请输入<font color="ff0000">型号</font>关键字:</td>
<td align="left" width="40">
<input name="Searchtxt" type="text" id="Searchtxt"></td>
<td colspan="2" align="left">
<input type="submit" name="Submit" value="搜索"></td>
</tr>
</table>
</div>
</form>
</left>
</table>
<!-以下为浏览手机信息部分功能>
<table>
<center>
<%dim searchtext searchtext=Request.Form. ("Mobel")
exec="select * from mod order by Type ASC"
set conn=server.createobject ("adodb.connection")
dbpath=server.mappath ("mod.mdb")
conn.open "PROVIDER=Microsoft.jet.OLEDB.4.0;data source="&dbpath
set rs=server.createobject ("adodb.recordset")
rs.open exec, conn, 1, 3
<!-省略关于分页功能的代码>
%>
<div align="right">
<table border="1" width="100%">
<tr>
<th width="20%"><font color="996633" size="2">品牌</font></th>
<th width="20%"><font color="996633" size="2">型号</font></th>
<th width="20%"><font color="996633" size="2">参考价格</fonr></th>
<th width="40%"><font color="996633" size="2">功能描述</font></th>
</tr>
</table><br>
<% do while NOT rs.EOF and rowcount>0%>
<div align="right">
<table border="1" width="100%">
<tr>
<td align="center" width="20%"><font size="2"><%=rs (Brand) %></font></td>
<td align="center" width="20%"><a herf="<%=rs ("type") %>.asp"><
第10题
在学校学术报告厅内部署了多个无线AP。为了防止信号覆盖形成的干扰,应调整无线AP的“(3)”参数值。 A.工作模式(Operation Mode)
B.加密(Encryption Level)
C.服务区认证ID(ESSID)
D.频道(Channel)
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!