Group1_Charisma: Selective Repeat ARQ
Below is a link to an applet which animates the Selective Repeat ARQ protocol:
http://media.pearsoncmg.com/aw/aw_kurose_network_3/applets/SelectRepeat/SR.html
Below is a link to an applet which animates the Selective Repeat ARQ protocol:
http://media.pearsoncmg.com/aw/aw_kurose_network_3/applets/SelectRepeat/SR.html
Due to the upcoming internals, we didn’nt manage any susbstantial development to either projects.
Selective Repeat ARQ is a specific instance of the Automatic Repeat-reQuest (ARQ) Protocol. It may be used as a protocol for
->The delivery and acknowledgement of message units, or
->The delivery of subdivided message sub-units.
When used as the protocol for the delivery of messages, the sending process continues to send a number of frames specified by a window size even after a frame loss. The receiving process will continue to accept and acknowledge frames sent after an initial error. The receiver process keeps track of the sequence number of the earliest frame it has not received, and sends that number with every ACK it sends. If a frame from the sender does not reach the receiver, the sender continues to send subsequent frames until it has emptied its window. The receiver continues to fill its receiving window with the subsequent frames, replying each time with an ACK containing the sequence number of the earliest missing frame. Once the sender has sent all the frames in its window, it re-sends the frame number given by the ACKs, and then continues where it left off.
When used as the protocol for the delivery of subdivided messages it works somewhat differently. In non-continuous channels where messages may be variable in length, standard ARQ or Hybrid ARQ protocols may treat the message as a single unit. Alternately selective retransmission may be employed in conjunction with the basic ARQ mechanism where the message is first subdivided into sub-blocks (typically of fixed length) in a process called Packet segmentation. The original variable length message is thus represented as a concatenation of a variable number of sub-blocks. While in standard ARQ the message as a whole is either acknowledged (ACKed) or negatively acknowledged (NAKed), in ARQ with selective transmission the NAKed response would additionally carry a bit flag indicating the identity of each sub-block successfully received. In ARQ with selective retransmission of sub-divided messages each retransmission diminishes in length, needing to only contain the sub-blocks that were NAKed.
In most channel models with variable length messages, the probability of error-free reception diminishes in inverse proportion with increasing message length. In other words it’s easier to receive a short message than a longer message. Therefore standard ARQ techniques involving variable length messages have increased difficulty delivering longer messages, as each repeat is the full length. Selective retransmission applied to variable length messages completely eliminates the difficulty in delivering longer messages, as successfully delivered sub-blocks are retained after each transmission, and the number of outstanding sub-blocks in following transmissions diminishes.
Applications:
->The ITU-T(International Telecommunication Union) G.hn (common name for the “next generation” home network technology standard being developed under the ITU) standard, which provides a way to create a high-speed (up to 1 Gigabit/s) Local area network using existing home wiring (power lines, phone lines and coaxial cables), uses Selective Repeat ARQ to ensure reliable transmission over noisy media.
->G.hn employs Packet segmentation to sub-divide messages into smaller units, to increase the probability that each one is received correctly.
Wireshark is a tool that allows packet traces to be sniffed, captured and analysed. Before Wireshark (or in general, any packet capture tool) is used, careful consideration should be given to where in the network packets are to be captured.
Intended Purposes:
Features that Wireshark provides:
To use Wireshark, you must:
Let’s look at Wireshark’s user interface.The figure below shows Wireshark as you would usually see it after some packets are captured or loaded

Wireshark’s main window consists of parts that are commonly known from many other GUI programs.
By next week, we intend to become familiar with the tolls provided with Wireshark and sucessfully analyse simple protocols.
How did the Internet really get started? It all began with a satellite. In 1957 when the then Soviet Union launched Sputnik, the first man-made satellite, the cold war between the Russians and the Americans led to the then American President Dwight D. Eisenhower create the Advanced Research Projects Agency (ARPA) in 1958. ARPA’s purpose was to give the United States a technological edge over other countries. It created a computer network which connected four computers running on four different operating systems. They called the network ARPANET. ARPANET laid the foundation for the present day internet.
Nobody owns the Internet. The Internet Society, a non-profit group established in 1992, monitors how we interact with the Internet.
Internet Protocol: IP Addresses:
Every machine on the Internet has a unique identifying number, called an IP Address. The IP stands for Internet Protocol, which is the language that computers use to communicate over the Internet. A protocol is the predefined way that someone who wants to use a service talks with that service. The “someone” could be a person, but more often it is a computer program like a Web browser.
A typical IP address looks like this:
216.27.61.137
To make it easier for us humans to remember, IP addresses are normally expressed in decimal format as a dotted decimal number like the one above. But computers communicate in binary form. The same IP address in binary looks like this:
11011000.00011011.00111101.10001001
All of these networks rely on Network Access Points or NAPs, backbones and routers to talk to each other.The Internet backbone is made up of many large networks which interconnect with each other. These large networks are known as Network Service Providers or NSPs. What is incredible about this process is that a message can leave one computer and travel halfway across the world through several different networks and arrive at another computer in a fraction of a second!
The routers determine where to send information from one computer to another. Routers are specialized computers that send your messages and those of every other Internet user speeding to their destinations along thousands of pathways. A router has two separate, but related, jobs:
* It ensures that information doesn’t go where it’s not needed. This is crucial for keeping large volumes of data from clogging the connections of “innocent bystanders.”
* It makes sure that information does make it to the intended destination.
Protocol Stacks and Packets:
How does a computer with a unique IP address communicate with other computers connected to the Internet? An example should serve here: Let’s say your IP address is 1.2.3.4 and you want to send a message to the computer 5.6.7.8. Obviously, the message must be transmitted over whatever kind of wire connects your computer to the Internet. Let’s say you’ve dialed into your ISP(Internet Service Provider) from home and the message must be transmitted over the phone line. Therefore the message must be translated from alphabetic text into electronic signals, transmitted over the Internet, then translated back into alphabetic text. This is accomplished through the use of a protocol stack. Every computer needs one to communicate on the Internet and it is usually built into the computer’s operating system (i.e. Windows, Unix, etc.). The protocol stack used on the Internet is referred to as the TCP(Transmission Control Protocol)/IP protocol stack because of the two major communication protocols used.
The ISP maintains a pool of modems for their dial-in customers. This is managed by some form of computer (usually a dedicated one) which controls data flow from the modem pool to a backbone or dedicated line router. This setup may be referred to as a port server, as it ‘serves’ access to the network. Billing and usage information is usually collected here as well.
After your packets traverse the phone network and your ISP’s local equipment, they are routed onto the ISP’s backbone or a backbone the ISP buys bandwidth from. From here the packets will usually journey through several routers and over several backbones, dedicated lines, and other networks until they find their destination, the computer with address 5.6.7.8. This is how the internet works.
Network protocol analysis is a process for a program or a device to decode network protocol headers and trailers to understand the data and information inside the packet encapsulated by the protocol. Traffic passing over a digital network or part of a network can be intercepted.To conduct protocol analysis, packets must be captured at real time for line speed analysis or later analysis. Such program or device is called a Protocol Analyzer.

Screenshot of a Network Protocol Analyser tool
In the typical network architecture, a layered approach is used to design network protocols and communications. The most popular network architecture reference model is called the OSI model. The protocols at one layer should communicate with protocols at the same layer. The key function of a protocol analyzer is to decode the protocol at each layer. Protocol information of multiple layers may be used by protocol analyzer to identify possible problems in the network communication, which is called Expert Analysis.
Protocol analyzers may decode multiple layer protocols and packets to re-construct lower level packets (such as Link, IP or TCP level) into higher level (such as application level) messages for deep understanding of network traffic and user activities. This technique is used in protocol analyzers when network traffic monitoring and user surveillance are the primary goals. Javvin Packet Analyzer is a example of this type of tools.
Protocol Analyzer can be used both for legitimate network management or for stealing information off a network. Network operations and maintenance personnel use Protocol Analyzer to monitor network traffic, analyze packets, watch network resource utilization, conduct forensic analysis of network security breaches and troubleshoot network problems. Unauthorized protocol analyzers can be extremely dangerous to a network’s security because they are virtually impossible to detect and can be inserted almost anywhere. This makes them a favorite weapon in the hacker’s arsenal.
The versatility of packet sniffers means they can be used to:
A packet sniffer:
Our objective in the previous week was to understand the basics of network protocol analysis, know more about the tools used and thier working,and we have accomplished the same.We have learnt that network protocol analysis is a process of decoding packets of information encapsulated by the protocol.This can be done using a network protocol analyser which can also be used to build protocols.In the typical network architecture, a layered approach is used to design network protocols and communications. The most popular network architecture reference model is called the OSI model. The protocols at one layer should communicate with protocols at the same layer.The regular computer communication class was of great help in making us understand these concepts better and get a vivid picture of how protocol stack works. The key function of a protocol analyzer is to decode the protocol at each layer. Protocol information of multiple layers may be used by protocol analyzer to identify possible problems in the network communication, which is called Expert Analysis.
With this background we learnt about the usage of the protocol analyser tool wireshark.These are some of the commands whose syntaxes and functions were understood by us:-
capinfos – Prints information about capture files
dumpcap – Dump network traffic
editcap – Edit and/or translate the format of capture files
idl2wrs – CORBA IDL to Wireshark Plugin Generator
mergecap – Merges two or more capture files into one
rawshark – Dump and analyze raw libpcap data
text2pcap – Generate a capture file from an ASCII hexdump of packets
tshark – Dump and analyze network traffic
wireshark-filter – Wireshark filter syntax and reference
wireshark – Interactively dump and analyze network traffic
We look forward to learn more about wireshark by next week.
Recent Comments