Friday, May 10, 2013

How TCP and UDP work



Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)is a transportation protocol that is one of the core protocols of the Internet protocol suite. Both TCP and UDP work at transport layer TCP/IP model and both have very different usage.




Lets imagine, that we need to transfer certain amount of data. You may transfer only certain amount at the time (you have limitation on the packet size, which is below TCP/UDP).

In case of TCP, first you should establish connection (you may read about "3-Way handshake"). During this you agree on the "TCP Window Size" (explained  below). Then you start actual data transfer...

You transfer a packet, and then you wait for a confirmation, that the packet received. If you didn't receive confirmation within certain amount of time, you transmit the same packet again (Retransmission occured). If you agreed on certain "TCP Window Size", you may transmit multiple packets without waiting for a confirmation, and then you receive one confirmation for all these packets (not many, usually a few, just "more than one"). If you sent 3 packets, but only two confirmed, you will send that missing packet, if no confirmation was received at all, then you send all 3 packets again. But the bottom line is - each and every packet should be confirmed.

TCP has tweaked for performance over the years. ACKs are often piggy-backed with replies to messages so there is no extra packet or waiting. It can also dynamically adjust to changing network performance with features like slow start and congestion avoidance. TCP optimizes the amount of data sent per packet to avoid IP fragmentation. With UDP, if you send a message greater than 1472 bytes (for 'normal' Ethernet) the IP layer will fragment it into multiple datagrams and it will buffered and re-assembled in the receiving stack.


In case of UDP, you just blindly split your data into packets, and transfer them without any care, if they were received or not. You may do it "at the wire speed". And if you need some kind of control over the data, this should be taken care on higher layers of OSI model (for example, you should implement transfer verification at the Application Layer).


So, in theory, TCP actual performance is at least twice slower (for example, your one-way-trip time is 100ms, you sent a packet, and wait for a response), plus depends on receiver (how long it takes to prepare and send a confirmation), while UDP may send packets "as a stream" without any delay.

That said, there are many case where UDP may be a better choice. there isn't much use for retransmissions with applications like VOIP. For a simple exchange where you don't need the overhead of establishing and tearing down a connection UDP is likely the way to go, DNS being a perfect example. Note that even DNS will switch to TCP when the server sees that the reply will be lengthy due to multiple addresses and/or MX records.

If you are creating a VoIP application, there is no need constantly to check if the other end is on-line, so you can use UDP to transfer the main payload (voice) and a second TCP connection to handle connection/disconnection at a lower speed (once a second is ok).

If you are transmitting a public radio station over IP, you need only to enable your players to join one multicast channel. In the latest case, UDP is far more effective and is causing less overhead, since all the network balancing is handled by the multicast enabled routers.

In areas of video streaming and VoIP the overhead of TCP would be intolerable, so they use UDP and they work pretty well- mainly because the network infrastructure and the protocols have "matured" to the extent where reliability is largely taken for granted.



Clear as mud?



Thursday, April 25, 2013

Changes to CCNA exam 2013

What changes are Cisco making to the CCNA?

Cisco has made some changes to Associate-level certifications and also renamed the CCNA certification to CCNA Routing and Switching certification. 
The CCNA certification has changed from a foundation certification to a concentration certification.

How is the CCNA Routing and Switching different from the current CCNA?


CCNA Routing and Switching is the same certification as the CCNA, however the syllabuses for ICND1, ICND2 and CCNA Composite have been changed to keep up with technology advancements and job roles.

Are the CCNA Routing and Switching exams changing?


Yes, the exams are changing due to the new syllabuses. The current CCNA/CCENT/ICND2 exams will be retired on September 30, 2013.

How are the new exams harder than the current versions?


Yes, Cisco has taken topics from the ICND2 and included them in the ICND1 exam, such as OSPF, NAT, IPv6 and VLSM subnetting, making the CCENT certification a much tougher assignment.
The new ICND2 exam will include some topics from the CCNP such as multi-area OSPF, OSPF3, Sysylog, Netflow and EtherChannel. This really makes the CCNA Routing and Switching certificate a hard-to-get cert.

Can I mix and match the current exams with newer exams to achieve CCNA Routing and Switching?


Yes, you can mix current ICND1 exam with newer ICND2 exam or vice versa. However, note that several topics have been added to the new ICND1 and ICND2 syllabus. So if you take the new versions of these exams then you need to be prepared to answer questions on the new topics.

What has changed between the current ICND1, ICND2, and CCNA Composite exams and the newer versions of these exams?


To ensure the certifications are up-to-date with current technology, some older topics have been removed from the syllabus and several new topics have been added.
If you take the new versions of these exams then you need to be prepared to answer questions on the new topics.

What new topics are in the new CCNA Routing and Switching exam?


More emphasis on IPv6
High availability via FHRP
Multi-area OSPF and OSPF3
SNMP v1 and V2, SYSLOG and Netflow
NTP (Network Time Protocol)
Be able to troubleshooting everything!
Have I wasted my time learning the current CCNA?
No, the fundamentals of networking do not change, the new exams include some new topics and some have been removed, but the bulk of the syllabus will remain unchanged.

I bought a training package from your company recently, is it up-to-date?


Yes. So as long as you take your exams by 30 September 2013 and pass you will be CCNA certified. Your goal should be to pass by 30 September 2013, which gives you 6 months. We will update our training materials for the new syllabus in due course should you need to sit the new exam.

Should I stop my studies and wait to study the new version?


We advise you to continue studying and aim to take the exam before 30 September 2013. If you wait for the new version you will only delay your career. You'll probably have to start studying from the beginning again, and the new exam will be tougher than the current version.

Is the ICND2 exam required to achieve the CCNA Wireless, CCNA Voice, or CCNA Security certifications?


No. From March 26, 2013, you will only need to pass the ICND2 exam to achieve the CCNA Routing and Switching. You will only need to have a valid CCENT as a prerequisite for CCNA Wireless, CCNA Voice, or CCNA Security certifications.

Is the ICND2 exam required to achieve the CCDA certification?


No. From October 1, 2013, you will only need to have a valid CCENT, or CCNA Routing and Switching or any CCIE certification as a prerequisite.

My CCNA expires within 12 months, what should I do?


We strongly recommend you to recertify before the end of September 2013 before the current exams are retired, otherwise you will need to learn the new syllabus and take the new CCNA Routing and Switching exam.

What are the recertification requirements for the new CCNA Routing and Switching?


The CCNA Routing and Switching certification is valid for three years, then you will need to recertify just like the current CCNA.

Monday, April 8, 2013

More Random Networking Questions

Here's another set of Cisco based 
networking questions, 
They may assist with your gaining certification 
or just as a refresher - enjoy!

1. Which of the following could be a valid MAC address?

A) 00-08-74-CE-B7-90
B) 192.168.0.1
C) FFFF.FFFF.FFFF.FFFF
D) 255.255.255.240


2. Fragment Free switching method is best described by which of the following?

A) The entire frame is received before forwarding is commenced
B) Forwards frame after receiving the destination MAC address
C) Filters out collision packets by waiting for the first 64 bytes of data


3. A CIDR value of /30 equates to what subnet mask?

A) 255.255.255.253
B) 255.255.255.128
C) 255.255.255.248
D) 255.255.255.252


4. Bridges cannot provide congestive feedback information to end nodes?

A) True
B) False


5. What is true about the MAC address?

A) Used to identify networks
B) Defined at the Network layer
C) Unique for every networked device in the world
D) Identical to the IP address


6. What OSI layer does the following refer to?

"Establishes availability of intended communication partners, establishes agreement on procedures regarding error recovery and data integrity and synchronizes networked applications"


A) Transport layer
B) Session layer
C) Datalink layer
D) Application layer
E) Presentation layer




VistaPrint Australia


1. Correct Answer: A

The standard format for printing MAC addresses is six groups of two hexadecimal digits, separated by hyphens (-) or colons (:) e.g. 00-08-74-CE-B7-90, 00:08:74:CE:B7:90.
Another convention commonly used is three groups of four hexadecimal digits separated by dots e.g. 0573.4567.19ab.


2. Correct Answer: C

Fragment Free is also referred to as Modified Cut-Through. It is the default mode used by Cisco® Catalyst® 1900 series switches. This switching method is the same as with Cut-Through except the switch will check the first 64 bytes of every frame received as this is where the vast majority of errors occur within a frame.

3. Correct Answer: D

4. Correct Answer: A

Flow Control and Congestive Feedback are functions of the Network layer. Bridges operate at the Data Link layer so these responsibilities fall to the end devices in a bridged environment.


5. Correct Answer: C

MAC addresses are assigned by the manufacturer of a network interface card (NIC) and are stored in its hardware. A MAC address contains the manufacturer's identification number.


The MAC address may also be referred to as the burned-in address, hardware address, Ethernet address or physical address and is part of the Data Link layer, specifically the Media Access Control sub-layer of the Data Link layer.


6. Correct Answer: D

The Application layer of the OSI model (layer 7) establishes availability of intended communication partners, establishes agreement on procedures regarding error recovery and data integrity and synchronizes networked applications.




-->
Clickbank Products

A business absolutely devoted to service will have only one worry about profits. 
They will be embarrassingly large. -- Henry Ford 

Monday, April 1, 2013

CCNA exam questions part vii

The following is a selection of exam type questions for computer networking, specifically pointed toward CCNA certification.  Good to get the grey matter clicking as a refresher as well, enjoy!


 1. Inter-Switch Link and IEEE 802.1Q are types of...

A.) Spanning Tree Protocol
B.) Trunking method
C.) Ethernet
D.) Routing protocol


2. What is port 53 used for?

A.) FTP data
B.) FTP program
C.) Telnet
D.) DNS
E.) TFTP


3. Frame tagging is used to identify...

A.) The intended recipient of a frame
B.) The IP address of the frame
C.) The source of the frame
D.) The VLAN ID of the frame
E.) The trunking method


4. Where is the start-up configuration file held in a (Cisco) router?

A.) NVRAM
B.) RAM
C.) Routing table
D.) ROM

5. A CIDR value of /30 equates to what subnet mask?

A.) 255.255.255.253
B.) 255.255.255.128
C.) 255.255.255.248
D.) 255.255.255.252


6. Where would you place standard access lists?

A.) As close to the destination as possible
B.) As close to the source as possible




-->
Clickbank Products


1. Answer B

2. Answer D

3. Answer D
 
Explanation: Frame tagging is used to tags frames on trunked links to identify what VLAN they belong to.


4. Answer A

5. Answer D

6. Answer A

Explanation: Standard access lists only filter based on source address so they have to be placed as close to the destination as possible.


Creative | Australian Online Store

Saturday, March 30, 2013

Cashing in on Mobile Phones



Most people cannot live without their phones. 

They like the convenience of talking on the road and the safety it provides in an emergency.  But did you know you can do more?  You can.  In fact, you can make money with mobile phones, here are five options to consider:




1 – Open a Mobile Phone Store
If you want to capitalise on the popularity of mobiles, you should sell them.  You can do so through an online store, a brick and mortar store, or both.  When selling mobile phones, you find a wholesale supplier with cheap prices and buy phones and accessories in bulk.  You then, in turn, sell them to consumers.  If operating a full-time store, you can develop a partnership with providers to not only sell phones, but plans too.  In this aspect, you not only make money through the phones, but commission with plans too.

2 – Open a Franchise Store

If you don’t want to spend months developing a business plan or researching wholesale suppliers, you can opt for a franchise opportunity.  A number of well-known and reputable mobile phone stores have franchises available for sale.  With a franchise, you are in charge of your store, but you get a solid business model to follow, as well as other helpful, profitable tips and support.

3 – Sell Mobile Phones Online


If you want to sell mobile phones full-time, you are encouraged to have both an online store and a brick and mortar store.  On the other hand, if you are only interested in working part-time, you can turn to the internet.  Instead of operating a functioning store, you can rely on other websites to help you.  These websites may include eBay.com, Craigslist.org, and so forth.  Also, many message boards have buy, trade, and sell sections.  This approach is nice, as you do not need a shop full of mobile phones.  You can sell them as you buy them.

4 – Work as an Affiliate Seller

If you want to make money with mobile phones, but do not have the financial resources needed to buy products to sell, consider affiliate programs.  By working as an affiliate, you partner with a company.  That company gives you text links, banners, coupon codes, and more.  You place these on your website.  Each time a sale is made, you generate income. Your startup costs are low, as affiliate programs are free to join.  All you need is a website with applicable content.  Good topics are those that focus on mobile phones and accessories, such as product reviews and buying guides.

5 – Through Website Advertisements

Many well-known cell phone providers and mobile phone stores pay you commission for each sale you help to generate.  In addition to this approach, you can outright sell advertisements.  For example, you can charge $25 a month for good advertising space.  This does not seem like a lot, but it will significantly add up with the more space you sell.  With this approach, you earn money each month even if a sale isn’t generated through your website.


As for which approach is best for you, it depends on what you want out of life,
 the choice is yours.


amaysim AS YOU GO offers customers one simple low call rate of 12c per minute, 12c per SMS and 5c per MB for data to any network, anytime, Australia wide. There are no minimum fees, no flagfall and no minimum term contract, which means users have complete control of what they spend.

amaysim - One pure SIM

Monday, March 25, 2013

CCNA networking quick questions

Another random assortment of Cisco based networking questions you can use as a primer for achieving CCNA certification or as a refresher.  

Scroll to the bottom for examination tips .. 

1.  How many IP access lists can you assign on an outbound interface?

A.) 1
B.) 1-100
C.) Unlimited


2. What type of switch port can belong to multiple VLANS?

A.) Access port
B.) Trunk port
C.) Voice access port
D.) No port can belong to multiple VLANs


3. What happens if a packet does not match any of the ACL statements?

A.) Nothing
B.) It is rejected
C.) It is allowed


4. Protocol Data Units of the Physical layer are called?

A.) Bits
B.) Frames
C.) Segments
D.) Packets


5. Bridges can only have one spanning tree instance, while switches can have many.

A.) True
B.) False









1.  Correct Answer A

2.  Correct Answer B

3.  Correct Answer B

4.  Correct Answer A

The Layer 1 (Physical Layer) PDU is the bit
The Layer 2 (Data Link Layer) PDU is the frame
The Layer 3 (Network Layer) PDU is the packet
The Layer 4 (Transport Layer) PDU is the segment


5.  Correct Answer A




Here are some revision tips to help you revise for the CCNA exam, or any Cisco exam for that matter...

1.)  Make sure you only learn topics which are covered by the exam.
2.)  Glance through the course/exam topics and highlight the areas you think you'll need to concentrate on more.
3.)  Get a good CCNA book that suits your learning style.
4.)  Practice what you learn frequently by using practice tests and flash cards. Highlight your weakest subjects and aim to improve them.
5.)  Create a set of revision notes for each topic. Try to stick to one page of paper per topic.
6.)  Read through your revision notes frequently.
7.)  You want to retain the information beyond the exam, so forget about cramming the night before the exam. Spread out your revision into 30 minute revision periods.
8.)  Condense your revision notes. The act of rewriting them will help you memorize them.
9.)  Practice your IOS configuration on a Cisco router or router simulator.

Monday, March 11, 2013

More CCNA Networking Questions for you

Here are a bunch of Cisco based networking questions to ponder.  These are the kinds of questions you may find if you study Network engineering, so i hope they may assist you in your endeavors..or just for fun :-)

1. What TCP/IP Application layer protocol polls devices on the network helping to notify when network errors occur?

A) Telnet
B) FTP
C) SNMP
D) LPD
E) SMTP


2. What is Cisco's default NAT table entry timeout (translation timeout)?

A) 1 hour
B) 12 hours
C) 24 hours
D) 36 hours
E) 48 hours


3. What TCP/IP layer are ICMP, ARP and RARP protocols associated with?

A) Application
B) Host-to-Host
C) Internet
D) Network Access


4. Hosts on one VLAN that want to communicate with another VLAN need to go through a router.

A) True
B) False


5. Which of the following are Routed protocols?

A) IP, IPX, ICMP
B) IP, IPX, Appletalk
C) RIP, IGRP, EIGRP


6. What does the Spanning Tree Protocol achieve?

A) Determines a loop free topology
B) Sets up a meshed switched topology
C) Creates bridge loops and broadcast storms
D) Disseminates VLAN topology




-->
Clickbank Products




1. Correct Answer: C

2. Correct Answer: C

Explanation: When an entry is placed into the NAT table a timer begins, the duration of this timer is called the translation timeout, defaulted to 24 hours on Cisco routers.


3. Correct Answer: C

4. Correct Answer: A

Explanation: VLANs act as if they are different networks.  So communication between VLANs require routers.


5. Correct Answer: B

Explanation: Routed Protocols are layer 3 Network Layer protocols. They include Internet Protocol (IP), Internetwork Packet Exchange (IPX) and Apple's AppleTalk. Routed or routable protocols allow for internetwork communication by assigning network and host identities to packets.


6. Correct Answer: A

Explanation: Spanning Tree Protocol (STP) is a Data Link protocol that ensures a loop-free topology for bridged or switched LANs. The algorithm prevents bridge loops within the network that cause broadcast storms, while allowing redundant links.


“Insanity is doing the same thing, over and over again, but expecting different results.”
- Narcotics Anonymous

Random networking questions for you

Here are a few more ideas 
to get the grey matter ticking,
 all Cisco based questions, enjoy.




1. Which switching mode has the highest degree of error checking?

A) Fragment-Free
B) Fast-Forward
C) Cut-Through
D) Store-and-Forward
E) FIFO


2. Router(config)#access-list 150 deny tcp any host 172.32.14.2 eq 25

What type of ACL is this and what is it performing?

A) Standard ACL, deny all SMTP traffic to host 172.32.14.2
B) Standard ACL, deny all Telnet traffic to host 172.32.14.2
C) Extended ACL, deny all SMTP traffic to host 172.32.14.2
D) Extended ACL, deny all Telnet traffic to host 172.32.14.2
E) Named ACL, deny all SMTP traffic to host 172.32.14.2


3. Router(config-router)#

What mode are you in when you see this prompt?

A) user exec mode
B) privileged mode
C) global configuration mode
D) interface configuration mode
E) routing protocol configuration


4. IP subnet-zero is enabled on all your routers.
How many bits must you borrow to create 16 subnets?


A) 1
B) 2
C) 3
D) 4
E) 5


5, What IP address will test the internal loopback of a node?

A) 127.0.0.1
B) 255.255.255.255
C) 0.0.0.0
D) 126.0.0.1
E) 127.0.0.0


6. The maximum default hop count for Routing Information Protocol (RIP) is?

A) 1
B) 10
C) 15
D) 16
E) 30






LearnSecurityOnline.com is a highly interactive online security training experience. We do this by utilizing simulators, security games, challenge servers, and hacking competitions to give you both the technical knowledge and hands-on experience required to be a competent IT & IT Security Professional all in a safe and legal environment.




1. Correct Answer: D

Store and forward switching method is known as store and forward because the switch will store the incoming data frame in its internal buffer, then when the complete frame has been received the switch will then run a Cyclic Redundancy Check (CRC) against the frame. If the CRC passes, the switch will then look up the destination MAC Address in its MAC filter table to forward it on to its destination.


2. Correct Answer: C

Router(config)#access-list 150 deny tcp any host 172.32.14.2 eq 25
Port 25 is SMTP. This extended ACL denies traffic from any source to host 172.32.14.2.


3. Correct Answer: E

Here is a summary of Cisco IOS router command prompts:

Router> - User EXEC mode
Router# - Privileged EXEC mode
Router(config)# - Global configuration mode
Router(config-if)# - Interface level configuration mode
Router(config-router)# - Routing engine level within configuration mode
Router(config-line)# - Line level (vty, tty, async) within configuration mode


4. Correct Answer: D

4 bit mask = 16 subnets

5. Correct Answer: A

127.0.0.1 is the loopback address in IP, it is a test mechanism for network adapters. Messages sent to 127.0.0.1 do not get delivered to the network. The NIC intercepts all loopback messages and returns them to the sending application.


6. Correct Answer: C

The maximum allowable hop count for RIP is 15 by default. 16 is unreachable.



How did you go? leave a comment if you found these helpful, thanks.

“Don't cry because it's over, smile because it happened.”
- Dr. Seuss

Monday, March 4, 2013

Networking questions part 4


Another batch of random network questions, specifically targeted at the CCNA exam for those budding engineers out there - or people like me that need refreshing sometimes :-) enjoy.


1. What does 'r' stand for in the capabilities of a Cisco device in the output of a show cdp neighbor command?


A) Repeater
B) Router
C) IGMP
D) Host
E) Switch


2. What describes the role of the Session layer?

A) Provides transport services
B) Translates between different data formats
C) Supports communication between applications
D) Establishes and terminates communications between applications


3. What is the default VTP mode of operation for the Cisco Catalyst switch?

A) Client
B) Server
C) Transparent


4. The maximum default hop count for Routing Information Protocol (RIP) is?

A) 1
B) 10
C) 15
D) 16
E) 30


5. What is the purpose of VTP pruning?

A) Reduces unnecessary VLANS
B) Reduces traffic on VLAN1
C) Reduces unnecessary broadcast and multicast traffic
D) A mechanism used to create Switched VLANs
E) Manages the addition, deletion, and renaming of VLANs









1. Correct Answer: A

Explanation: Router#show cdp neighbors 


Capability Codes: 
  • R - Router, 
  • T - Trans Bridge, 
  • B - Source Route Bridge,  
  • S - Switch, 
  • H - Host, 
  • I - IGMP, 
  • r - Repeater
2.  Correct Answer: D

Explanation: The Session Layer (layer 5) of the OSI model provides the mechanism for opening, closing and managing a session between end-user application processes.


3. Correct Answer: B

Explanation: The default mode for all Catalyst switches is Server.
A VTP domain requires at least one VTP server.


4. Correct Answer: C

Explanation: The maximum allowable hop count for RIP is 15 by default. 16 is unreachable.


5.  Correct Answer: C

Explanation: VTP pruning makes more efficient use of VLAN trunk bandwidth by reducing unnecessary broadcast traffic. Broadcast and unknown uni-cast frames on a VLAN are only forwarded over a trunk link if the switch on the receiving end of the trunk has ports in that VLAN.






Courage doesn't always roar. Sometimes courage is the quiet voice at the end of the day saying, "I will try again tomorrow".
~ Mary Anne Radmacher




-->