블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
반응형

Category

Recent Post

Recent Comment

Archive

'A Concern Interest'에 해당되는 글 24

  1. 2009.09.24 윤리)사이버언어와 네티켓
  2. 2009.09.24 www.naver.com까지 라우팅 과정
  3. 2009.09.24 OReilly.Head.First.Servlets.and.JSP
  4. 2009.09.22 ♡ 아라가키유이
반응형
 *과제는 수업 시작 전까지 보고서로 제출하세요.

과제-1>사용해본 적이 있거나 알고 있는 사이버 언어(속어 또는 축약어)를 3개 이상 적어 보시오. (용어와 의미를 함께 적으시오.)

과제-2>내가 알고 있는 사이버 언어(속어 또는 축약어) 중에 표준어로 등재하여 사용하여도 좋을 법한 용어가 있다면 그 사용 예와 그 의미를 적어 보시오.

과제-3>많은 사람들이 표준 언어 사용보다는 사이버 언어(속어 또는 축약어)를 더 즐겨 사용하는 경향이 있는데 그 이유에서 무엇이라고 생각하나?

과제-4>현재 인터넷 공간에서 속어 또는 축약어를 사용하는 형태에 대해 자신의 견해를 적어보시오. (문제될 것이 없으면 왜 문제가 되지 않는다고 생각하는지, 아니면 문제가 된다면 어떤 면에서 문제가 되는지)


반응형

'A Concern Interest > University Study' 카테고리의 다른 글

졸업작품 ERC 자료  (0) 2009.10.01
Head First Servlet & JSP 141-143  (0) 2009.09.24
윤리)인터넷 사회와 법  (0) 2009.09.24
www.naver.com까지 라우팅 과정  (0) 2009.09.24
OReilly.Head.First.Servlets.and.JSP  (0) 2009.09.24
posted by Magic_kit
반응형



1단계 : 패킷 송신 컴퓨터가 패킷 수신 컴퓨터의 MAC 주소를 확인한다. (ARP)
             패킷의 목적지 MAC 주소 부분에 패킷 수신 컴퓨터의 MAC 주소를 적어
           
 스위치로 보낸다.

2
단계
: 스위치에서 2 포트로 수신된 패킷의 목적지 MAC 주소가 3 포트와 연결된
        
 컴퓨터라는 것을 메모리에서 확인한 , 패킷을 3 포트로 흘려 보낸다.

4
단계
: 패킷 수신 컴퓨터로 패킷이 흘러간다.

§

호스트 A 네트워크계층(3계층) 패킷을 전달할 인접 장치를 라우터 로 결정
§
호스트
A 데이터링크 계층(2계층) 패킷을 스위치로 전송
§
스위치는
라우터로 전송
 
ARP를 통해 200.1.1.20이 LAN에 없는 것을 확인하고,
 
패킷의 목적지 MAC을 Gateway로 정함. (AA-AA à BB-BB)


v전송 계층 (4계층)
§포트번호(Port Number) 이용하여 종단 장치 간의 통신을 보장하는 규약
§            포트번호로 패킷을 전달할 종단의 어플리케이션을 결정
§            수신된 패킷의 누락 여부로 패킷 손실에 대한 에러제어
§
            4
계층의 대표적인 프로토콜은 TCP(Transmission Control Protocol).
§            MAC 주소가 네트워크 카드의 고유 식별자이고, IP 시스템의 주소라면,
            
포트번호는 시스템에 도착한 패킷이 찾아갈 응용 프로그램과 통하는 통로
          
 번호라 생각할 있음.
 
§            시스템에서 구동되는 응용 프로그램들은 네트워킹을 하기 위해 자신에게 해당되
            는
패킷을 식별할 필요가 있고 사용하는 것이 포트이며, 포트는 0번부터
            65535(216)
번까지 존재함.
 
§0번부터 1023 포트까지 1,024개를 Well Known 포트
§보통 0번은 쓰지 않으며, 1023 포트까지는 대부분 고유의 용도가 있음.
 
v쓰리웨이 핸드쉐이킹
1단계: 두 시스템이 통신을 하기 전에, 클라이언트는 포트가 닫힌 Closed 상태며 서버는 
           해당 포트로
항상 서비스를 제공할 수 있도록 Listen 상태
 
2단계: 처음 클라이언트가 통신을 하고자 하면, 임의의 포트 번호가 클라이언트 프로그램에 
           할당되고
클라이언트는 서버에 연결하고 싶다는 의사 표시로 Syn Sent 상태가 됨.

3단계: 클라이언트의 연결 요청을 받은 서버는 SYN Received 상태가 됨. 그리고 클라이
          언트에게
연결을 해도 좋다는 의미로 SYN+ACK 패킷을 보냄.

4단계 : 마지막으로 클라이언트는 연결을 요청한 것에 대한 서버의 응답을 확인했다는 표시
           로 ACK
패킷을 서버에 보냄.

v세션 계층 (5계층)
§    기본적으로는 시스템간의 통신 동기화를 유지하고 데이터 교환을 관리.
§    전송 계층이 종단간에 논리적인 설정을 담당한다면 세션 계층은 이런 연결에 정보
  
 교환을 효과적으로 있게 추가 서비스를 .
v
표현
계층 (6계층)
§    데이터의 구조를 하나의 통일된 형식으로 표현.
§    데이터의 압축과 암호화 기능을 수행.
v
응용
프로그램 계층 (7계층)
§    응용 프로그램 계층은 응용 프로그램 사이에 데이터의 교환이 가능하게 하는 계층.
§    예를 들어 HTTP, FTP, 터미널 서비스, 여러 메일 프로그램, 디렉토리 서비스 등을 제공.



클라이언트가 DNS 서버에게 접속하고자 하는 IP 주소(www. wishfree.com
같은
도메인 물어봄. 이때 보내는 패킷은 DNS Query.
 
DNS 서버가 해당 도메인 이름에 IP 주소를 클라이언트에게 보내줌.
클라이언트가 받은 IP 주소를 바탕으로 서버를 찾아감.

공격자는 로컬에 존재하므로 DNS 서버보다 지리적으로 가까움
.
따라서 DNS 서버가 올바른 DNS Response 패킷을 보내주기 전에 클라이언트에 위조된 DNS Response 킷을 보낼 있음
.

클라이언트는
공격자가 보낸 DNS Response 패킷을 올바른 패킷으로 인식하고,
웹에 접속.
지리적으로 멀리 떨어져 있는 DNS 서버가 보낸 DNS Response 패킷은 버림.
v
DNS
스푸핑 공격
클라이언트가 DNS 서버로 DNS Query 패킷을 보내는 것을 확인.
스위칭 환경일 경우에는 클라이언트 DNS Query 패킷을 보내면 이를 받아야
하므로 ARP 스푸핑과 같은 선행 작업이 필요함. 만약 허브를 쓰고 있다면 모든 패킷이 자신에게도 전달되므로 클라이언트가DNS Query 패킷을 보내는 것을 자연스럽게 확인할 있음.

순환잉여검사 (CRC : Cycle Redundancy Check)

CRC 란 오류가 한꺼번에 많이 발생하는 비트들(burst error)에 대한 블록합
 검사의 단점을 해결할 수 있도록 하는 방식이다. 즉, 집단 오류를 해결하
 기 위한 오류제어 방식이다.

중복 검사 기법 중 가장 강력 하며, 2진 나눗셈을 기반으로 한다.
송신장치는 전송될 데이터 블록에 16 비트 또는 32 비트 다항식을 적용하여,

그 결과로 얻어진 코드를 그 블록에 덧붙인다. 수신측에서는 데이터에 같은
다항식을 적용하여 그 결과를 송신측이 보내온 결과와 비교한다.
 
만약 두 개가 일치하면, 그 데이터는 성공적으로 수신된 것이며,
그렇지 않은 경우 그 데이터 블록을 재 송신하도록 송신측에게 요구한다.
 

ITU-T(이전의 CCITT)는 송신블록에 부가될 코드를 얻는데 사용되는 16 비트
다항식에 대한 표준을 제정했다.
 
IBM의 SDLC와 다른 프로토콜들은 CRC-16과 다른 16 비트 다항식을 사용하며,
16 비트 CRC는 두 개의 비트가 동시에 에러가 난 경우를 포함하여, 일어날 수 있는 모든 에러에 대하여 99.998% 검출을 보장한다.
 

이 정도의 검출보증은 4 KB 이하의 데이터 블록 전송에는 충분한 것으로 평가되고 있으며, 그 이상의 대량 전송에는 32 비트 CRC가 사용된다. 이더넷과 토큰링 프로토콜에서도 모두 32 비트 CRC를 사용








반응형

'A Concern Interest > University Study' 카테고리의 다른 글

졸업작품 ERC 자료  (0) 2009.10.01
Head First Servlet & JSP 141-143  (0) 2009.09.24
윤리)인터넷 사회와 법  (0) 2009.09.24
윤리)사이버언어와 네티켓  (0) 2009.09.24
OReilly.Head.First.Servlets.and.JSP  (0) 2009.09.24
posted by Magic_kit
반응형
211-216p 문제와 해답을 적어 제출하시오.

 1.When using a RequestDispatcher, the use of which methods can  Often lead to an
    IllegalStateException ? (Choose all that apply.)
    A. Read
    B. flush
    C. getOutputStream
    D. Write
    E. GetResourceAsStream

2. Which statements about ServletContext initialization parameters are true ?
    A. They should be used for data that changes rarely.
    B. They should be used for data that Changes Frequently.
    C. They can be accessed using 
         ServletContext.GetParameter(String)
    D. They can be accessed using 
         ServletContext.GetInitParameter(String)
    E. They should be used for data that is specific to a particular servlet.
    F. They should be used for data that is applicable 
         to an entire web application.

3. Which types define the methods getAttributee() and setAttribute() ? 
    A. HttpSession 
    B. ServletRequest
    C. ServletResponse 
    D. ServletContext 
    E. Servletconfig 
    F. SessionConfig 

4. If a servlet is invoked using the forward or include method of RequestDispatcher, 
   which methods of the servlet's request object can access the reques attributes set  
   by the container ? (Choose all that apply)
    
5. Which calls provide information about initialization parameters that are applicable to
    an entire web application ?
     A. ServletConfig.getInitParameters()
     B. ServletContext.GetInitParameters()
     C. ServletConfig.getInitParameterNames()
     D. Servletcontext.GetInitParameterNames() 
     E. Servletconfiug.getInitParameter(String)
     F. Servletcontext.getInitParameter(String)

6.  which statements about Listeners are true ?
     A. A ServletResponseListener can be used to perform an action When a servlet
         response has been sent 
     B. An HttpSessionListener can be used to perform an action when an HttpSession
         has timed out.
     C. A servletContextListener can be used to perform an action
         When the servlet context is about to be shut down. 
     D. A ServletRequestAttributeListener can be used to Perform an action when an
         attribute has been removed from a ServletRequest.
     E. A ServletContextAttributeListener can be used to perform
         an action when the servlet context has just been created and is available
         to service its first request.

7. Which is most logically stored as an attribute in session scope ?
    A. A copy of a query parameter entered by a user.
    B. The result of a database query to be returned 
         immediately to a user.
    C. A database connection object used by all web components of the system.
    D. An object representing a user who has just logged into the system. 
    E. A copy of an initialization parameter retrieved from a ServletContext object.

8. Given this code from an otherwise valid HttpServlet that has also been registered as
    a ServletRequestAttributteListener.
What logging output is generated ? 
    A. A:a -> b P:a->b     
    B. A:a -> b M:a->b
    C. A:a -> b P:a->b M:a->c
    D. A:a -> b P:a->b P:a -> Null
    E. A:a -> b M:a->b A:a -> b M:a->b
    F. A:a -> b M:a->b A:a -> c P:a->Null

9. when declaring a listener in the DD, which sub-elements of the <listener>
    element are required ?
    A. <description>
    B. <listener - name>
    C. <listener - type>
    D. <listener - class>
    E. <servlet-mapping>

10. Which types of objects can store attributes ?
      A. ServletConfig
      B. ServletResponse
      C. RequestDispatcher
      D. HttpServletRequest
      E. HttpSessionContext

11. Which are true ?
      A. When a web application is preparing to shutdown, the order  of listener
           notification is not guaranteed. 
      B. When listener-friendly events occur, listener invocation order is not predictable
      C. The container registers listeners based on declarations in the 
           deployment descriptor.
      D. Only the container can invalidate a session. 

12. Which statements about RequestDispatcher are true
     (where applicable, assume the RequestDispatcher was not obtained via a call to
       getNamedDispatcher())?  (Choose all that apply.)
       A. A RequestDispatcher can be used to forward a request to another servlet.
       B. The only method in the RequestDispatcher interface is forward().
       C. Parameters specified in the query string used to create a RequestDispatcher
           are not forwarded by the forward() method.
       D.The servlet to which a request is forwarded may access the original query
           string by calling getQueryString() on the HttpServletRequest.
       E. The servlet to which a request is forwarded may access the original query
            string by calling getAttribute(“javax.servlet.forward.query_string”) on the
            ServletRequest.

13. What is the recommended way to deal with servlets and thread safety?
     A. Write the servlet code to extend ThreadSafeServlet.
     B. Have the servlet implement SingleThreadModel.
     C. Log all servlet method calls.
     D. Use local variables exclusively, and if you have to use instance      
         vables,synchronize access to them.

14. Given the following methods:
     - getCookies
     - getContextPath
     - getAttribute
 Match the methods above to the following classes or interfaces. Note that each 
 method can be used more than once.
 HttpSession           _____________      ___________      __________
 ServletContext        _____________      ___________      __________
 HttpServletRequest  _____________      ___________      __________
 
15. Which are true about the RequestDispatcher interface? (Choose all that apply.)
     A. Of its two methods, forward() is used most frequently.
     B. Its methods take the following arguments: a resource, a request, and a
         response.
     C. Depending on the class whose method creates a RequestDispatcher, the path
          to the resource to be forwarded to will change.
     D. Regardless of the class whose method creates a RequestDispatcher, the path to
          the resource to be forwarded to will NOT change.
     E. If your servlet invokes RequestDispatcher.forward, it can send its own response
         to the client before, but not after the invocation of forward.  

012345








반응형

'A Concern Interest > University Study' 카테고리의 다른 글

졸업작품 ERC 자료  (0) 2009.10.01
Head First Servlet & JSP 141-143  (0) 2009.09.24
윤리)인터넷 사회와 법  (0) 2009.09.24
윤리)사이버언어와 네티켓  (0) 2009.09.24
www.naver.com까지 라우팅 과정  (0) 2009.09.24
posted by Magic_kit
2009. 9. 22. 21:46 A Concern Interest/A summand
반응형


반응형

'A Concern Interest > A summand' 카테고리의 다른 글

♡ 사랑이 언제 쯤 올까요?  (0) 2010.05.17
♡태희  (0) 2009.09.28
태연♡  (0) 2009.07.28
♡태연  (0) 2009.07.24
태연♡  (3) 2009.07.23
posted by Magic_kit
prev 1 2 3 4 5 6 next