Question

Time synchronization over Ethernet in automotive industry is achieved by correcting the local clock of slave according to local clock of master.The synchronization of each node is done according to GPTP protocol(IEEE 802.1AS).According to this the master node send Sync message to slave and the slave will receive the sync message and after a certain period of time, master send follow up message to slave and the slave will receive the follow up message ,the follow up message contain precision origin time stamp. Then the slave correct its local clock based on the information from sync and follow up message and also by calculating the delay.The master get current time from StbM. I find it difficult to understand the purpose of sending Sync message and what are its contents? Can you write the code in C language with the following steps: Structure to represent a PTP timestamp Structure to represent a PTP header Structure to represent a Sync message Check the message type, PTP version, domain number, control field, source port identity, sequence ID Then in the main function: Initialize EthIf Set the expected source port identity and sequence ID Wait for a Sync message Parse the Sync message Validate the Sync message Perform any additional tasks

          Time synchronization over Ethernet in automotive industry is achieved by correcting the local clock of slave according to local clock of master.The synchronization of each node is done according to GPTP protocol(IEEE 802.1AS).According to this the master node send Sync message to slave and the slave will receive the sync message and after a certain period of time, master send follow up message to slave and the slave will receive the follow up message ,the follow up message contain precision origin time stamp. Then the slave correct its local clock based on the information from sync and follow up message and also by calculating the delay.The master get current time from StbM. I find it difficult to understand the purpose of sending Sync message and what are its contents?
Can you write the code in C language with the following steps:
Structure to represent a PTP timestamp
Structure to represent a PTP header
Structure to represent a Sync message
Check the message type, PTP version, domain number, control field, source port identity, sequence ID
Then in the main function:
Initialize EthIf
Set the expected source port identity and sequence ID
Wait for a Sync message
Parse the Sync message
Validate the Sync message
Perform any additional tasks
        
Show more…

Added by Megan A.

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Time synchronization over Ethernet in automotive industry is achieved by correcting the local clock of slave according to local clock of master.The synchronization of each node is done according to GPTP protocol(IEEE 802.1AS).According to this the master node send Sync message to slave and the slave will receive the sync message and after a certain period of time, master send follow up message to slave and the slave will receive the follow up message ,the follow up message contain precision origin time stamp. Then the slave correct its local clock based on the information from sync and follow up message and also by calculating the delay.The master get current time from StbM. I find it difficult to understand the purpose of sending Sync message and what are its contents? Can you write the code in C language with the following steps: Structure to represent a PTP timestamp Structure to represent a PTP header Structure to represent a Sync message Check the message type, PTP version, domain number, control field, source port identity, sequence ID Then in the main function: Initialize EthIf Set the expected source port identity and sequence ID Wait for a Sync message Parse the Sync message Validate the Sync message Perform any additional tasks
Close icon
Play audio
Feedback
Powered by NumerAI
Ivan Kochetkov Kathleen Carty
Jennifer Stoner verified

Sri K and 95 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
let-a-and-b-be-two-nodes-in-a-wireless-network-with-access-point-x-assume-that-a-and-b-cannot-hear-each-others-transmissions-but-can-hear-x-at-time-0-x-is-sending-a-packet-to-some-other-node-64118

Let A and B be two nodes in a wireless network with access point X. Assume that A and B cannot hear each other's transmissions, but can hear X. At time 0, X is sending a packet to some other node and it completes sending this packet at time 100 µs. At time 30, a packet becomes available for transmission at A and at time 70, a packet becomes available for transmission at B. Assume that A needs 200 µs to send its packet and B needs 100 µs to send its packet. Let tA be the initial value of the backoff timer for A and let tB be the initial value of the backoff timer for B. Can A and B transmit their packets without colliding if |tA - tB| = 130? Explain. A is assigned a backoff timer of 100 and B is assigned a backoff timer of 50. For each of the access point and hosts, what time do they start sending their packets? You may ignore the inter-frame spacing and the time required for acks. Of the packets sent, which are successfully delivered on the first attempt? For each packet that is not successfully delivered on the first attempt, approximately when does the sending host learn that the packet was lost and must be sent again? Now, suppose RTS/CTS is enabled. In this case, approximately when does each host send its data packet? You may assume that the time needed to send RTS, CTS, and ACK packets is negligible.

Sri K.

a-spaceship-travels-past-the-earth-and-the-moon-in-a-straight-line-at-a-constant-speed-of-0600-c-where-c-is-the-speed-of-light-in-a-vaccuum-the-spaceship-passes-the-earth-first-and-then-a-sh-86077

A spaceship travels past the Earth and the Moon in a straight line at a constant speed of 0.600c, where c is the speed of light in a vacuum. The spaceship passes the Earth first and then a short while later passes the Moon. The distance between the Earth and the Moon, as measured in the Earth-Moon frame, is 1.20 light-seconds. (A light-second is defined as the distance traveled by light in one second. To simplify your working, you can do all your calculations in seconds and light-seconds and express speeds as multiples of c; it is not necessary to convert distances and speeds into SI units). Figure 1: Two clocks in the Earth-Moon system are synchronized; one clock on the Earth and one on the Moon. As the ship passes the Earth, a clock on board the ship is compared against the clock on the Earth, and both are seen to read a time of zero seconds. At this moment, a radio signal is sent from the Earth towards the Moon. Some time later, the radio signal arrives at the Moon, having traveled at speed c. An observer A in the spaceship frame, who is traveling ahead of the main spaceship, passes the Moon at the instant the radio signal arrives. Some time after that, the spaceship passes the Moon. (a) Preparation (i) Define the three events described above. Give each a name and list the events in the order in which they occur as seen from the Earth-Moon frame. [3] (ii) Define the two frames involved and draw a labeled diagram showing the frames at the moment of the first event. These should be in standard configuration; a two-dimensional representation (x and y axes only) plus time t is sufficient - you do not need to include a z-axis. [4] (iii) List the position and time (x in light-seconds and t in seconds) coordinates of each of the three events as seen from the Earth-Moon system. [3] (b) Working (i) Using the appropriate Lorentz transforms, transform all three events into the spaceship frame and list their coordinates. [5] (ii) Observer A (who is traveling ahead of the main spaceship at the same speed) has a clock that is synchronized with the clock in the main spaceship within the spaceship frame. According to observer A, what time is shown on the Moon clock when the radio signal arrives? What time is shown on observer A's clock at the same instant? [2] (iii) As seen by an observer in the spaceship itself, what are the times showing on the spaceship clock and the Moon clock as the spaceship passes the Moon? [2] (iv) As measured in the spaceship frame, by how much has the distance from the spaceship to the Moon reduced between the emission of the radio signal from the Earth and the arrival of the signal at the Moon? [2] (v) Draw suitable diagrams showing the three events as seen from the spaceship frame. [5] (c) Checking (i) Show how you have checked your working (e.g. units, order of magnitude, etc.) [2] (ii) Comment on whether your results are as you expected.

Lalan P.

this-elementary-problem-begins-to-explore-propagation-delay-and-transmission-delay-two-central-concepts-in-data-networking-consider-two-hosts-a-and-b-connected-by-a-single-link-of-rate-r-sup-53134

This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, A and B, connected by a single link of rate R. Suppose that the two hosts are separated by m meters, and suppose the propagation along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. Express the propagation delay, dprop, in terms of m and s. Determine the transmission time of the packet, dtrans, in terms of L and R. Ignoring processing and queuing delays, obtain an expression for the end-to-end delay. Suppose Host A begins to transmit the packet at time t=0. At time t=dtrans, where is the last bit of the packet? Suppose dprop is greater than dtrans. At time t=dtrans, where is the first bit of the packet? Suppose dprop is less than dtrans. At time t=dtrans, where is the first bit of the packet? Suppose s=2*10^9, L=1024 bits, and R=256. Find the distance m so that dprop equals dtrans.

Adi S.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,799 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,520 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,381 solutions

*

Transcript

-
00:01 Here we need to answer all the questions.
00:03 So things which is true for mass and gravity, here we can say option number b is correct that says the greater the mass of the object, the lesser, the pull of gravity.
00:36 Now, 6 .1, that is, what is the direction of frictional force that act on object which moves left? so option number c is correct that says to the left.
00:54 Now, question number 7, that is which of the following statement is not true about friction? so here we can say option number a that says acts upward opposing the pull of gravity...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever