Question

3. The fields in a PPP header are as follows (source: Point to Point Protocol Structure) (Alterna...

3.

The fields in a PPP header are as follows (source: Point to Point Protocol Structure) (Alternate source: TCPI Guide.com)

Using the correct data types (this is essential to the assignment), design a data structure in C++ language that would represent this frame. Please use 10 bytes for the information and 5 bytes for the padding.

Name

Number of bytes

Description

Flag

1

0x7E, the beginning of a PPP frame

Address

1

0xFF, standard broadcast address

Control

1

0x03, unnumbered data

Protocol

2

PPP ID of embedded data

Information

variable (0 or more)

datagram

Padding

variable (0 or more)

optional padding

Frame Check Sequence

2

frame checksum

Flag

1

0x7E, omitted for successive PPP packets

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#include <iostream.h>
using namespace std;

void main(){
  
   struct ppp{
       char name[5];       //for 5bytes
       char nbytes[5];  
       char info[10];        //for 10 bytes
   }
   typedef struct ppp ppp;

   void main(){
       srtruct ppp arr[8];
       arr[0].name = 'Flag';
       arr[0].nbytes = '1';
       arr[0].info= '0x7E, the beginning of a PPP frame';

   }
}

like this fill information in arr[] which is a custom made data type fotthis PPP header packet.

Add a comment
Know the answer?
Add Answer to:
3. The fields in a PPP header are as follows (source: Point to Point Protocol Structure) (Alterna...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In python I need to extract the below data from a file called wireshark.txt I made...

    In python I need to extract the below data from a file called wireshark.txt I made the element i'm trying to extract Bold in the 1st frame section. Frame 1, Src:00:14:ee:08:dd:b1, Des:01:00:5e:7f:ff:fa, Type:0x0800 Frame 2, Src:00:14:ee:08:dd:b1, Des:01:00:5e:7f:ff:fa, Type:0x0800 Frame 3, Src:cc:2f:71:3e:ca:a1, Des:14:91:82:36:7a:8d, Type:0x0800 Frame 4, Src:cc:2f:71:3e:ca:a1, Des:14:91:82:36:7a:8d, Type:0x0800 The wireshark.txt file contents: Frame 1: 372 bytes on wire (2976 bits), 372 bytes captured (2976 bits) on interface 0 Ethernet II, Src: WesternD_08:dd:b1 (00:14:ee:08:dd:b1), Dst: IPv4mcast_7f:ff:fa (01:00:5e:7f:ff:fa)     Destination: IPv4mcast_7f:ff:fa (01:00:5e:7f:ff:fa)...

  • Question 1 The size of the datagram is determined by the application that sends the data....

    Question 1 The size of the datagram is determined by the application that sends the data. Allowing the size of datagrams to vary makes IP adaptable to a variety of applications. True False Question 2 What is the conceptual network boundary, and where is it located within the protocol stack? Is the transition area between digital and analog signals and can be found between layer 2 and layer 3 of the protocol stack. Identifies application direct messaging and is formed...

  • 1. Can this message be delivered directly by the source to the destination, or will it...

    1. Can this message be delivered directly by the source to the destination, or will it require routers to handle the message? Frame Type Frame Data Destination Hardware Address 6 Bytes Source Hardware Address 6 Bytes 2 Bytes 46 - 1500 Bytes 3 Byte 0 1 2 3 bit 012345678 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 O Version Header Length Type Of Service...

  • What is the network ID in the destination address? What is the host ID in the...

    What is the network ID in the destination address? What is the host ID in the destination address? Write the destination IP address in dotted-decimal notation. Find the source IP address. What class is the source IP address? What is the network ID in the source address? What is the host ID in the source address? Write the source IP address in dotted-decimal notation. Can this message be delivered directly by the source to the destination, or will it require...

  • 1. a. In Wireshark, for packet 92, what information in the IP header indicates that the...

    1. a. In Wireshark, for packet 92, what information in the IP header indicates that the datagram has been fragmented? b. What information in the IP header indicates whether this is the first fragment versus a latter fragment? How long is this IP datagram? 2. a. For packet 93, what information in the IP header indicates that this is not the first data fragment? Are there more fragments? If so, how can you tell? - 0 X IP_traceFile File Edit...

  • In this lab, we’ll investigate the 802.11 wireless network protocol. Follow the instructions and answers questions...

    In this lab, we’ll investigate the 802.11 wireless network protocol. Follow the instructions and answers questions 7 - 10. http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip In this lab, we'll investigate the 802.11 wireless network protocol. Before beginning this lab, you might want to re-read Section 6.3 in the text. Since we l1 be delving a bit deeper into 802.11 than is covered in the text, you might want to check out "A Technical Tutorial on the 802.11Protocol," by Pablo Brenner (Breezecom Communications) http://www.sss-mag.com/pdf802_11tut.pdf, and "Understanding...

  • LC-3 Programming Help!! The Stack Protocol The following outline is the protocol for passing arguments to...

    LC-3 Programming Help!! The Stack Protocol The following outline is the protocol for passing arguments to a function and returning values. Everything is stored on the runtime stack so that space is used only when the function is executing. As a result the actual address of arguments and locals may change from call to call. However, the layout of the stack frame (activation record) is constant. Thus, the offests from the frame pointer (FP) to the parameters/locals are constant. All...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT