• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Only for the REAL Techy GEEKS!!

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Only for the REAL Techy GEEKS!!

    Hi People,

    Just got some questions mailed to me by a mate that needs these questions answered by monday - people here it is:

    1. What are the four components of a socket?

    2. How is a TCP connection established?


    3. Could you run two web servers (both on TCP/80) on the same box?


    4. How many hosts can you have in a class C network with a 26 bit mask?


    5. What is a TCP full scan?


    6. Give an example of resource starvation DOS attack?


    7. In windows, from the command line, what command would you use to start and or stop a service?


    8. Service’s are to windows like _________ is to UNIX?


    9. What command could you use to change the permissions of a file in UNIX?


    10. What file is used to resolve a hostname if the /etc/host file does not contain the host information and IP address.


    Thanks all in advance!!

    The Newbie on the Block!!

    #2
    Originally posted by sharemaster2 View Post
    Hi People,

    Just got some questions mailed to me by a mate that needs these questions answered by monday - people here it is:

    1. What are the four components of a socket?

    2. How is a TCP connection established?


    3. Could you run two web servers (both on TCP/80) on the same box?


    4. How many hosts can you have in a class C network with a 26 bit mask?


    5. What is a TCP full scan?


    6. Give an example of resource starvation DOS attack?


    7. In windows, from the command line, what command would you use to start and or stop a service?


    8. Service’s are to windows like _________ is to UNIX?


    9. What command could you use to change the permissions of a file in UNIX?


    10. What file is used to resolve a hostname if the /etc/host file does not contain the host information and IP address.


    Thanks all in advance!!

    The Newbie on the Block!!
    Should have read - I have an interview Monday for an IT gig. I managed to get the test paper from someone who works there. Can you please fill in the blanks for me so I can look good.
    Throw them to the lions - WC2 5.4

    Comment


      #3
      Originally posted by sharemaster2 View Post
      Hi People,

      Just got some questions mailed to me by a mate that needs these questions answered by monday - people here it is:

      1. What are the four components of a socket?

      2. How is a TCP connection established?


      3. Could you run two web servers (both on TCP/80) on the same box?


      4. How many hosts can you have in a class C network with a 26 bit mask?


      5. What is a TCP full scan?


      6. Give an example of resource starvation DOS attack?


      7. In windows, from the command line, what command would you use to start and or stop a service?


      8. Service’s are to windows like _________ is to UNIX?


      9. What command could you use to change the permissions of a file in UNIX?


      10. What file is used to resolve a hostname if the /etc/host file does not contain the host information and IP address.


      Thanks all in advance!!

      The Newbie on the Block!!
      3 - No.
      7 - net start xxx / net stop xxx
      8 - processes
      9 - chmod

      I think they're right, but I'm not sure.

      You could ask a pure IT forum, or even ask Jeeves.
      Best Forum Advisor 2014
      Work in the public sector? You can read my FAQ here
      Click here to get 15% off your first year's IPSE membership

      Comment


        #4
        Your "mate" could answer all those quite easily with a bit of research on Google.

        They are all straight forward network and OS related questions, no need for a "real geek" to answer them unless you are a complete newbie and don't understand the questions to start with.
        "Being nice costs nothing and sometimes gets you extra bacon" - Pondlife.

        Comment


          #5
          1. What are the four components of a socket?

          Mmm, not sure what is meant here. Must be source address:source port and destination address : destination port. But full UNIX sockets are made up user (e.g. root), process ID, protocol UDP/TCP4/6/, local address : port and foreign address : port.

          2. How is a TCP connection established?
          Forgotten, look up 'three way handshake'.

          3. Could you run two web servers (both on TCP/80) on the same box?
          Yes and no. Each daemon will want it's unique local address : port combination. However, multihomed systems can run address1 : 80 and address2 : 80 if address1 and address2 are bound to the same machine - but it's contrived to run multiple instances of the same daemon. Furthermore multiple sites can be hosted on one address : port combination using named based virtual hosting.


          4. How many hosts can you have in a class C network with a 26 bit mask?
          255.255.255.192
          e.g. 192.16.168.0/26
          Range 192.168.0.1 to 192.168.0.62, broadcast 192.168.0.63, 62 hosts

          5. What is a TCP full scan?
          Look up nmap

          6. Give an example of resource starvation DOS attack?
          Look up nmap again. Don't all DOS starve resources?

          7. In windows, from the command line, what command would you use to start and or stop a service?

          net start _______ & net stop ________

          8. Service’s are to windows like _________ is to UNIX?
          daemons


          9. What command could you use to change the permissions of a file in UNIX?
          chmod


          10. What file is used to resolve a hostname if the /etc/host file does not contain the host information and IP address.

          /etc/resolv.conf - it points to the DNS

          Thanks all in advance!!

          The Newbie on the Block!![/QUOTE]

          Comment


            #6
            #1 2x (IP + port)
            #2 Server behaviour:
            • Socket
            • Bind (set local port number)
            • Listen
            • Accept

            Client behaviour:
            • Socket
            • Bind (optional)
            • Connect

            #3 Yes potentially
            #4 Class C part irrelevant; netmask implies CIDR hence [2^(32-26) - 2] or 62; host part of all zeros is reserved for representing the network address; host part of all ones is the network broadcast address.
            #5 Don't know.
            #6 Examples:
            • If process spawned for each new connection then if hard limit on the number processes you have problems.
            • May be hard limit on the number of sockets.
            • May hit limit on resource such as memory.

            #7 Don't know since don't use Windows much.
            #8 Presumably daemons.
            #9 chmod

            Comment


              #7
              so when do you get the homework score back?

              btw socket_type, udp/tcp, ip, port ?

              Comment

              Working...
              X