freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計算機網(wǎng)絡課程設計(編輯修改稿)

2024-07-10 15:19 本頁面
 

【文章內(nèi)容簡介】 ]。 delay=end start。 計算分組的延遲時間 if( startend) printf(%d %.9f\n,rate,delay)。 打印節(jié)點 delay=delay+(end start)。 節(jié)點之間發(fā)送的分組機分組的延遲時間 }} 17 、 文件 BEGIN { init=0。 i=0。 } { event = $1。 time = $2。 node = $3。 len = length(node)。 if(len == 3) { node_ = substr(node,2,1)。 trace_type = $4。 flag = $5。 uid = $6。 pkt_type = $7。 pkt_size = $8。 } else { from_node = $3。 to_node = $4。 pkt_type = $5。 pkt_size = $6。 flag =$7。 uid = $12。 } if(len==1) 如果目的節(jié)點接收到分組 { if(event==r amp。amp。 to_node==0 amp。amp。 pkt_type==cbr){ pkt_byte_sum[i+1]=pkt_byte_sum[i]+(pkt_size20)。 計算已接收的數(shù)據(jù)字節(jié) if(init==0) { start_time=time。 保存接收到的第一個分組的時間 init=1。 } end_time[i]=time。 更新接收到的最新一個分組的時間 i++。 } } } END{ th =8*pkt_byte_sum[i1]/(end_time[i1]start_time)/1000。 計算吞吐量 printf(%d %.2f\n,rate, th)。 打印吞吐量信息 } 18 、 文件 BEGIN { highest_uid=0。 } { event = $1。 time = $2。 node = $3。 len = length(node)。 if(len == 3) { node_ = substr(node,2,1)。 trace_type = $4。 flag = $5。 uid = $6。 pkt_type = $7。 pkt_size = $8。 } else { from_node = $3。 to_node =$4。 pkt_type = $5。 pkt_size = $6。 flag = $7。 uid = $12。 } if(len==3) { if(event==d amp。amp。 node_==2 amp。amp。 trace_type==AGT amp。amp。 pkt_type==cbr) start_time[uid] = time。 } else { if(event==r amp。amp。 to_node==0 amp。amp。 pkt_type==cbr) end_time[uid] = time。 } if(highest_uid uid) highest_uid = uid。 更新 highes_uid 的值 } END { id=1。 for(i=0。 i=highest_uid。 i++ ) { start = start_time[i]。 end = end_time[i]。 if(start end) { 19 delay[i]=endstart。 用一個數(shù)組保存每個分組的延遲時間 } } last_delay=0。 last_delay 用于保存上一分組的延遲時間 last_seqno=0。 for(i=0。 i=highest_uid。 i++) { if(delay[i]!=0) { if(last_delay==0) { jitter=0。 第一個抖動為 0 } else { jitter=(delay[i]last_delay)/(ilast_seqno)。 從第二個分組開始 } 計算抖動 printf(%d %.8f\n,i,jitter)。 打印延遲抖動信息 last_delay=delay[i]。 last_seqno=i。 } } } 、流量分析(主要是分析時延、帶寬和抖動率) 20 三、 E to C Translation A Day in the Life of a Web Page Request 網(wǎng)頁請求的流程 前言: 本章我們主要討論鏈路層,我們的網(wǎng) 絡之路從協(xié)議棧起步。 Getting Started : DHCP ,UDP, IP, and Ether 讓我們來假設 Bob 啟動他的筆記本然后連上以太網(wǎng)連接到學校的以太網(wǎng)交換機,這些交換機輪流連到學校的路由器,像上圖顯示的一樣 學校的路由器連到 ISP,如電信,電信為學校提供 DNS 服務,因此, DNS服務器存在于電信聯(lián)盟的網(wǎng)絡上而不是學校網(wǎng)絡。 我們假設 DHCP 服務器運行在路由器,經(jīng)常都是這樣 。 當 Bob 第一次聯(lián)網(wǎng)時,他不能做任何事假如沒有 IP 地址,因此,第一次網(wǎng)絡關(guān)聯(lián)的舉動就是運行 DHCP 來獲得 IP 地 址,也包括其他的一些信息。 正文:如上圖所示:數(shù)字和下面的翻譯對應: 1. The operating system on Bob’s laptop creates a DHCP request message and puts this message within a UDP segment with destination port 67 (DHCP server) and source port 68 (DHCP client). The UDP segment is then placed within an IP datagram with a broadcast IP destination address 21 () and a source IP address of , since Bob’s laptop doesn’t yet have an IP address. Bob的筆記本電腦上的操作系統(tǒng)創(chuàng)建一個 DHCP請求消息并且把這個消息放在包含目標端口67( DHCP 服務器)和源端口 68( DHCP 客戶端) UDP 段內(nèi)。 UDP 報文封裝在 IP 數(shù) 據(jù)報內(nèi)以源 IP 地址( ),全網(wǎng)廣播出去,現(xiàn)在 Bob 的電腦依然上不了網(wǎng)。 2. The IP datagram containing the DHCP request message is then placed within an Ether frame. The Ether frame has a destination MAC addresses of FF:FF:FF:FF:FF:FF so that the frame will be broadcast to all devices connected to the switch (hopefully a DHCP server)。 the frame’s source MAC address is that of Bob’s laptop, 00:16:D3:23:68:8A. IP 數(shù)據(jù)報包含 DHCP 的發(fā)送請求報文,然后封裝在以太網(wǎng)幀中。 以太網(wǎng)幀的默認目的 MAC 地址為 FF:FF:FF:FF:FF:FF,以至于以太網(wǎng)幀能廣播到連接在交換機(準確的說應該是 DHCP 服務器)的全部設備上,然后幀的源 MAC 地址是 Bob 的電腦:00:16:D3:23:68:8A. 3. The broadcast Ether frame containing the DHCP request is the first frame sent by Bob’s laptop to the Ether switch. The switch broadcasts the ining frame on all outgoing ports, including the port connected to the router. Bob 的電腦發(fā)到以太網(wǎng)交換機的第一幀是包括 DHCP 請求報文的廣播幀。 交換機廣播所有來自輸出端口的傳入幀,包括連接到路由器的端口上的。 4. The router receives the broadcast Ether frame containing the DHCP request on its interface with MAC address 00:22:6B:45:1F:1B and the IP datagram is extracted from the Ether frame. The datagram’s broadcast IP destination address indicates that this IP datagram should be processed by upper layer protocols at this node, so the datagram’s payload (a UDP segment) is thus demultiplexed up to UDP, and the DHCP request message is extracted from the UDP segment. The DHCP server now has the DHCP request message. 路由器用接口 MAC 地址為 00:22:6B: 45:1F: 1B 接收包含 DHCP 請求報文的廣播以太網(wǎng)幀,然后從以太網(wǎng)幀中提取 IP 報文。 該報文的廣播的 IP 目的地址表明本 IP 數(shù)據(jù)報應該由上層協(xié)議在這個節(jié)點上進行處理,所以該數(shù)據(jù)報的有效載荷(一個 UDP 報文)向上分用給 UDP,然后 DHCP 請求報文從 UDP 報文中提取。 此時 DHCP 服務器擁有了 DHCP 請求報文。 5. Let’s suppose that the DHCP server running within the router can allocate IP addresses in the CIDR block In this example, all IP addresses used within the school are thus within Comcast’s address block. Let’s suppose the DHCP server allocates address to Bob’s laptop. The DHCP server creates a DHCP ACK message containing this IP address, as well as the IP address of the DNS server (), the IP address for the default gateway router (), and the sub block () (equivalently, the “work mask”). The DHCP message is put inside a UDP segment, which is put inside an IP datagram, which is put inside an Ether frame. The Ether frame has a source MAC add
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1