본문 바로가기

컴퓨터 네트워킹 하향식 접근5

1.4 Delay, Loss, and Throughput in Packet-Switched Networks 1.4.1 Overview of Delay in Packet-Switched Networks The most important of these delays are the nodal processing delay, queuing delay, transmission delay, and propagation delay; together, these delays accumulate to give a total nodal delay. Processing Delay The time required to examine the packet’s header and determine where to direct the packet is part of the processing delay. Queuing Delay At t.. 2023. 6. 11.
3.2 Multiplexing and Demultiplexing -P.230~ 1. 목적 host에서 transport layer 는 바로 아래에 있는 network layer로부터 segments를 받는다. 2. transport layer 는 host에서 운영되고 있는 application process에 segments안에 있는 데이터들을 배달해줄 책임이있다. 1. 받는 host안에 있는 transport layer는 데이터들을 직접적으로 process에 전달하지 않는다. 대신 socket이 이일을 대신한다. 2. demultiplexing : transport layer segment 안에 있는 데이터를 올바른 socket에 전달하는 작업. ex) BILL이 집배원한테 편지를 받으면 이편지가 어느 address에서온 편지인지 확인하고 친구 B에 전달하는 작업을 demulti.. 2023. 5. 25.
Chapter 3 Transport Layer 3.1 Introduction and Transport-Layer Services 3.1.1 Relationship Between Transport and Network Layers 1. transport-layer protocol : 다른 host의 processes 간의 logical communication을 제공해준다. 2. network-layer protocol : 다른 host간의 logical communication을 제공해준다. 3. 위의 차이는 부가적이지만 중요하다라는 것을 인지하고 있으면 좋겠습니다. 4. 예를 들면 서로 동쪽가 서쪽에 떨어져 있는 집에 있는 친구 2명이 서로 편지를 주고 받을때를 가정하겠습니다. 이때 친구 A 와 B 에게는 각각의 집에 ANN 과 BILL 이라는 사.. 2023. 5. 24.
TCPClient.py -P.202~ 1. client socket 생성 코드. 2. SOCK_STREAM : TCP socket 의미 1. server로 받은 문자들을 modifiedSentence로 바꾼다. 2. 문자들을 다 바꾼뒤 client socket은 닫힌다 TCPServer.py 밑에 내용은 UDPServer.py 랑은 다른부분을 설명하겟습니다. TCPServer.py 내용! 1. (1)이 의미하는것 : 대기중인 연결의수가 1개 있다는것 최소한 1개는 있어야한다. 1. client 가 문에 노크를 할떄, accept() method가 발생한다. serverSocket를 위해서 2. 위의 method가 발생할때 이제 server을 위한 새로운 socket이 생성된다. 이 socket은 connectionSocket이라고 부른다. .. 2023. 5. 24.
UDPserver.py -p.199~ 1. 포트넘버 12000 -> server's socket 에 assign 해준다. packet 을 12000 포트로 보내면 server's socket 으로 간다. 이떄 UDPserver은 while loop로 들어가게 되고 clients로 부터 packets을 receive 하고 process 할수 있게된다. 2. packet이 server's socket에 도착할때 packet's data 는 message 에 들어간다. packet's source address 는 clientAddress 로 들어간다. clientAddress 는 client's IP address , client's port number 이 들어있다. 3. 위의 코드는 간단한 어플리케이션에 심장같은 코드이다. message를 .. 2023. 5. 23.
728x90